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 need help with moving average of measure. I am attaching excel file with data and output and also pbix file which have all the data imported
Thanks in Advance.
Solved! Go to Solution.
Hi @Anonymous ,
You need to make the following two measures below:
4week avg =
VAR temp_table =
SUMMARIZE (
FILTER (
ALL ( 'fiscal week' );
'fiscal week'[Date].[Date] <= MAX ( 'fiscal week'[Date] )
&& 'fiscal week'[Date].[Date]
>= MAX ( 'fiscal week'[Date] ) - 28
);
'fiscal week'[Fiscal Week];
"@bookRation"; [Book to Bill Ratio]
)
RETURN
IF(COUNTX(temp_table;[@bookRation]) < 4; BLANK(); AVERAGEX ( temp_table; [@bookRation] ))
13week avg =
VAR temp_table =
SUMMARIZE (
FILTER (
ALL ( 'fiscal week' );
'fiscal week'[Date].[Date] <= MAX ( 'fiscal week'[Date] )
&& 'fiscal week'[Date].[Date]
>= MAX ( 'fiscal week'[Date] ) - 91
);
'fiscal week'[Fiscal Week];
"@bookRation"; [Book to Bill Ratio]
)
RETURN
IF(COUNTX(temp_table;[@bookRation]) < 13; BLANK(); AVERAGEX ( temp_table; [@bookRation] ))
Check PBIX file attach.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Looking at your pbix, which measure are you working on?
Nathaniel
Proud to be a Super User!
Hi @Anonymous ,
You need to make the following two measures below:
4week avg =
VAR temp_table =
SUMMARIZE (
FILTER (
ALL ( 'fiscal week' );
'fiscal week'[Date].[Date] <= MAX ( 'fiscal week'[Date] )
&& 'fiscal week'[Date].[Date]
>= MAX ( 'fiscal week'[Date] ) - 28
);
'fiscal week'[Fiscal Week];
"@bookRation"; [Book to Bill Ratio]
)
RETURN
IF(COUNTX(temp_table;[@bookRation]) < 4; BLANK(); AVERAGEX ( temp_table; [@bookRation] ))
13week avg =
VAR temp_table =
SUMMARIZE (
FILTER (
ALL ( 'fiscal week' );
'fiscal week'[Date].[Date] <= MAX ( 'fiscal week'[Date] )
&& 'fiscal week'[Date].[Date]
>= MAX ( 'fiscal week'[Date] ) - 91
);
'fiscal week'[Fiscal Week];
"@bookRation"; [Book to Bill Ratio]
)
RETURN
IF(COUNTX(temp_table;[@bookRation]) < 13; BLANK(); AVERAGEX ( temp_table; [@bookRation] ))
Check PBIX file attach.
Regards,
MFelix
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCheck 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!