Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

unable to set the filter in my customize report...

(0) ShareShare
ReportReport
Posted on by 387

Dear Experts,


In my customize report, find the data from last one month based on creation date and time field and send by job queue on every first day of current month..

Please suggest me the best to apply it.

  • navision begginers Profile Picture
    navision begginers 387 on at
    RE: unable to set the filter in my customize report...

    Dear Sir,

    I want to see report on every first day of the following month and same report shall be auto run from job queue. 

    Example- Report to be auto run on 1stJan,1st Feb, 1st March………….like that

    Report run on 1st Jan- Data should be between 1st Dec to 31st Dec.

                       For 1st Feb- Data should be between 1st Jan to 31st Jan.

    I have write the below code:

    {
    //dtstart:=CALCDATE('-1W',TODAY);
    //dtend:=CALCDATE('+1W',dtstart);

    //dtstart:=CALCDATE('<-1M>',TODAY);
    //dtend:=CALCDATE('<+1M>',dtstart);
    StartDt:=EVALUATE(CALCDATE('<-1M>',TODAY));
    dt1:=CREATEDATETIME(dtstart,0T);
    dt2:=CREATEDATETIME(dtend,0T);

    SETFILTER("Creation Date Time",'%1|%2',dtstart,dtend);
    }
    StartDt:=DT2DATE("Dimension Value"."Creation Date Time");

    IF "Dimension Value".FINDSET THEN
    BEGIN
    // REPEAT
    txtData[1] := FORMAT(txtRNDType);
    txtData[2] := FORMAT("Dimension Value".Code);
    txtData[3] := FORMAT("Dimension Value".Description);
    txtData[4] := FORMAT("Dimension Value".Name);
    txtData[5] := FORMAT("Dimension Value"."Budgted Amount");
    txtData[6] := FORMAT("Dimension Value"."Master Project No.");
    txtData[7] := FORMAT("Dimension Value"."Enquiry No.");
    txtData[8] := FORMAT("Dimension Value"."Project Title");
    txtData[9] := FORMAT("Dimension Value".Timeline);
    txtData[10] := FORMAT("Dimension Value"."Expected Date");
    txtData[11] := FORMAT("Dimension Value"."Extended Date");
    txtData[12] := FORMAT("Dimension Value".Blocked);
    //UNTIL("Dimension Value".NEXT=0);
    END;

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,656 on at
    RE: unable to set the filter in my customize report...

    Which table are you using for your report? and how are you applying the filter? Provide more details.

  • Suggested answer
    Andy Sather Profile Picture
    Andy Sather on at
    RE: unable to set the filter in my customize report...

    I found a blog that covers this.  Here it is:

    www.archerpoint.com/.../how-add-report-filters-dynamics-business-central-or-nav

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,407 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans