Skip to main content

Notifications

Announcements

No record found.

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

How to filter Flow Field in range of date

(0) ShareShare
ReportReport
Posted on by 29

i want to get the number of invoices that are posted this month. so i created flow field but I can not figure out how to apply the date filter.

I tried to create flow filter field and on open page I tried this 

Evaluate(rec."Date Filter", Format(CalcDate('CM', Today)) + '..' + Format(CalcDate('CM-1D+1M', Today)));
but it only give the last date, I also tried to create two flow filters one for starting date and the other for ending date but how can I apply them on the calcFolrmula 
it gives error when I write it like this  CalcFormula = count("Sales invoice Header" where("Posting Date" = filter(> field("Date Filter"))));
Is there any way I can achieve this using flowField;
  • Suggested answer
    Mohana Yadav Profile Picture
    Mohana Yadav 60,054 Super User 2024 Season 2 on at
    RE: How to filter Flow Field in range of date

    what about

    Rec.SetFilter("Date Filter", '%1..%2', CalcDate('<CM>', WorkDate()), CalcDate('<CM-1D+1M>', WorkDate()));

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

Congratulations 2024 Spotlight Honorees

Kudos to all of our 2024 community stars! 🎉

Meet the Top 10 leaders for December

Congratulations to our December super stars! 🥳

Start Your Super User Journey

Join the ranks of our community heros! 🦹

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,735 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,466 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans