Forum Discussion
VikramAdi
Helper II
3 years agocummilative line graph using Rolling 30 days
Hi All, Currently i have calculated Rolling 30 days average , i want to display Rolling 30 days cummilitive amount. Thanks, VAdi
Jihwan_Kim
Super User
3 years agoHi,
I am not sure if I understood your question correctly, but please check the below and the attached pbix file.
Cumulative Measure =
VAR __Date =
MAX ( 'Date'[Date] )
VAR __Table =
ADDCOLUMNS (
DATESINPERIOD ( 'Date'[Date], LASTDATE ( 'Date'[Date] ), -30, DAY ),
"__30Avg", [Rolling 30 Days Average]
)
VAR __Result =
SUMX ( __Table, [__30Avg] )
RETURN
__Result
VikramAdi
Helper II
3 years agoThanks for the responce