Forum Discussion
Dynamic Month value while using calculate and filter
- 2 years ago
Hi 619SK
I hope from measure, you will get Idea to create Dynamic value and as per your requirement you can update it. I am taking dynamic value as Current Month, Current Qtr and Current Year= VAR _CurrentQuarterYearMonth = "Q"&QUARTER(Today())&"-"&YEAR(TOday())&" "&FORMAT(Today(),"Mmm") VAR _CurrentQuarterMonth = FORMAT(Today(),"Mmm")&"-"&YEAR(TOday()) VAR _CurrentMonth = FORMAT(Today(),"Mmm") RETURN Calculate([Distcoun tofnumberMarid],Filter('Global',[mmyy]= _CurrentQuarterYearMonth ,'Global',[Std]="Yes",Global',[Month]=_CurrentQuarterMonth,'Global",[Testing month]=_CurrentMonth))))
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION โ๏ธ and help other users find the solution quickly. Please hit the Thumbs Up ๐ button if this comment helps you.
Thanks
Pijush
Linkedin
Hi 619SK
I hope from measure, you will get Idea to create Dynamic value and as per your requirement you can update it. I am taking dynamic value as Current Month, Current Qtr and Current Year
= VAR _CurrentQuarterYearMonth = "Q"&QUARTER(Today())&"-"&YEAR(TOday())&" "&FORMAT(Today(),"Mmm")
VAR _CurrentQuarterMonth = FORMAT(Today(),"Mmm")&"-"&YEAR(TOday())
VAR _CurrentMonth = FORMAT(Today(),"Mmm")
RETURN
Calculate([Distcoun tofnumberMarid],Filter('Global',[mmyy]= _CurrentQuarterYearMonth ,'Global',[Std]="Yes",Global',[Month]=_CurrentQuarterMonth,'Global",[Testing month]=_CurrentMonth))))
Let me know if that works for you
If your requirement is solved, please mark THIS ANSWER as SOLUTION โ๏ธ and help other users find the solution quickly. Please hit the Thumbs Up ๐ button if this comment helps you.
Thanks
Pijush
Linkedin