Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
harirao
Post Prodigy
Post Prodigy

Four weeks sliding average

Hi All,

 

 

Looking for suggestions/help. I have to created % measure column by using two separate measures for weekly metric, now need to create another column as four week sliding average. 
Condition is “N/A” to be ignored, should consider only earlier week which is having numbers as well as 0% to be included for Average Calculation.
required an average over the last four available weekly results.
 

 

Existing Column for weekly reporting

existing_weekly_%measure.JPG

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Below example for reference

If I am selecting current week i.e 11/11/2019

Avg for WW:

11%+20%+34%+33%= 97% !! Avg will be (97%/4)=24%

where as Avg for Latin America should be:

50%+100%+0%+N/A+N/A+33%=183%!! Avg should be (183%/4)=45.75%

 

 

4wkAvg.JPG

 

 

 

 

 

 

 

 

 

 

 

 

Thanks & Regards,

 

1 REPLY 1
V-lianl-msft
Community Support
Community Support

Hi @harirao,

 

You can try to remove "N/A" and select the top four values to calculate the average and set the expression of filter.

 

Best Regards,

Liang 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.