Forum Discussion
Anonymous
2 years agoNot applicable
Dynamic Rolling 3 Month Sum
Hi all, Having the below table, I want to be able to filter by month and have the 3 month rolling sum automatically update as a card visual. month lead_cnt total_3month 202312 0 600 ...
- 2 years ago
Hi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file whether it suits your requirement.
total 3 months measure: = CALCULATE ( [lead cnt measure:], DATESINPERIOD ( date_table[Date], LASTDATE ( date_table[Date] ), -3, MONTH ) )
Jihwan_Kim
Super User
2 years agoHi,
I am not sure how your semantic model looks like, but I tried to create a sample pbix file like below.
Please check the below picture and the attached pbix file whether it suits your requirement.
total 3 months measure: =
CALCULATE (
[lead cnt measure:],
DATESINPERIOD ( date_table[Date], LASTDATE ( date_table[Date] ), -3, MONTH )
)
Anonymous
2 years agoNot applicable
Thank you, this is exactly what I needed.