Forum Discussion
Constrain date range in a Measure
- 4 years ago
Hi, Anonymous ;
Your parentheses are not in the right place. You are missing ") "where I made up the notes.
Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. - 4 years ago
Hi, Anonymous;
Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we could close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.
Best Regards,Community Support Team_ Yalan WuIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Anonymous
Try this:
Var _A = calculate(COUNT(Incident[Date]),filter(Incident,Incident[Date]<=today()))
return
Measure = IF(isblank(_A),0,_A)
Or set a filter on the filter pane to show filter before today.
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/
- Anonymous4 years agoNot applicable
- VahidDM4 years agoSuper User
Hi Anonymous
Not sure why my formula changed :-D, Try this:
Measure =
Var _A = calculate(COUNT(Incident[Date]),filter(Incident,Incident[Date]<=today()))
returnIF(isblank(_A),0,_A)
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
LinkedIn: www.linkedin.com/in/vahid-dm/