web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Flowfield for last six months

(0) ShareShare
ReportReport
Posted on by

Hi,

I'm trying to put together a flowfield that will calculate whether a customer has purchased in the last 6 months.

I have tried many variations of the below CalcFormula below but keep getting "CALCDATE... is not a valid date"

Exist("Cust. Ledger Entry" WHERE (Posting Date=FILTER(> CALCDATE(<-6M>) ),Document Type=FILTER(Invoice),Customer No.=FIELD(No.) ) )

Another one I'd like to do is this for the previous financial year:

Posting Date=FILTER(-CY-1Y..CY-1Y)

*This post is locked for comments

I have the same question (0)
  • KTA Profile Picture
    1,200 on at

    EndDate:=TODAY;

    InitDate:=CALCDATE('<-6M>',EndDate);

    SETRANGE("Posting Date",InitDate,EndDate);

  • Verified answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at

    You need to do that using a flow filter and then apply your 6M filter to the FlowFilter to Calculate it.  Check for example Inventory field on Item, it uses various flow filters.

  • Community Member Profile Picture
    on at

    Thanks KTA.

    Where would I put that code?

  • Community Member Profile Picture
    on at

    Thanks Suresh. It does look like a FlowFilter is the way to go.

    I would like the filter set by default though, and I notice on our system (not sure if it is a standard thing) on the Customer List the page loads with "Limit totals to: Where Date Filter is 01/01/18..31/12/18". Do you know where this gets done? Is it C/AL code on the page? Unfortunately I'm not a developer so can't see the code.

  • KTA Profile Picture
    1,200 on at

    In the button or the action do you want to perform that filter

  • Suggested answer
    Suresh Kulla Profile Picture
    50,269 Super User 2026 Season 1 on at

    Yes, during the opening of the page you will set the flowfilter which will indeed calculate your flowfield.

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > 🔒一 Microsoft Dynamics NAV (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans