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

Posted on by 184

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 59,139 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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans