Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I'm trying to create a rolling 7 day average. I've created a calendar table, linked that to one of my tables (I'm using data from 3 tables in the chart). The calculation I'm using is:
SUMMARIZE (
Where "Issues" is a calculated measure. The actual calculation seems to work fine, however, in a chart the last day that is being displayed is 7 days ago. I need the chart to show a rolling 7 day period upto and including today.
Regards
Steve
Hi @sh001 ,
Your dax formular seems ok, could you pls first test whether below expression returns correct values?
SUMMARIZE (
Your Max ( 'CALENDAR'[Date] ) computation needs to happen outside the CALCULATE() to escape the filter context.
var md = calculate(Max ( 'CALENDAR'[Date] ), <desired scope>)
desired scope could be ALL(Calendar) or ALLSELECTED() etc.
Then use that variable in your DATESBETWEEN statement.
Hi @lbendlin
Many thanks for you reply, what have I done wrong, the below is not calculating anything now. Sorry, I'm new to Power Bi.
Hi @sh001 ,
No ,you cant create a variable as below:
VAR md=CALCULATE(max('CALENDAR'[Date]),all('CALENDAR'))
It means you are finding out the maximun date in the calendar table.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.