Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi,
I am trying to create a measure so that I can calculate a rolling 4 interval average (I only have interval # and no date). However when trying to use an index to order the intervals, I receive this error:
My data table looks like the following:
Thank you for any help!
Solved! Go to Solution.
@Anonymous
Inside FILTER, instead of 'Rolling Table', use ALL ( 'Rolling Table' ),
Hi @Anonymous
You need to wrap Index with SELECTEDVALUE
I am unfamiliar with SELECTEDVALUE and am not sure what to enter for the alternate result in the function. Could you provide more detail?
@Anonymous
Like this
VAR MyIndex = SELECTEDVALUE ( 'Rolling Table'[Index] )
Thank you. I tried that, however instead of calculating the average over the number of specified intervals the measure just returns the total for each. See below:
@Anonymous
Inside FILTER, instead of 'Rolling Table', use ALL ( 'Rolling Table' ),
@Anonymous
Would you please copy/paste the code here so I can edit it
Thank you so much! Posting final DAX expression should anybody need to reference it:
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!