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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
harib
Post Patron
Post Patron

Average of months

I want show 3 months average in my table. 

 

SAP BO report they have used below formulas to get the out put

 

Main formula : ERI 3MRA Rate % =If [Report Month]<[3MAverageStart] Then 0 Else [ERI Average Rate 3 Months]*100

 

  • ERI Average Rate 3 Months= ((RunningSum([ERI Ratio(%)]) - RunningSum(Previous([ERI Ratio(%)]; 3))) / 3)+0
  • 3MAverageStart =FormatDate(RelativeDate(ToDate(Min([Report Month]) In Report;"yyyy-MM");2;MonthPeriod);"yyyy-MM")

 

This formula for your reference to get ERI Ratio :  ERI Ration(%) = DIVIDE([ERI_Return_Qtys],[ERI_Ship_Qtys]))

 

6.PNG

Sample Data

https://drive.google.com/file/d/1brZTsnfqx0mTryREYkTrb5PreaC5mO8a/view?usp=sharing

 

If possible can u please provide sample PBIX file. 

 

Thanks in Advance

 

1 ACCEPTED SOLUTION
v-chuncz-msft
Community Support
Community Support

@harib ,

 

You may view the code generated by Quick measure Rolling average and take a look at this post.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-chuncz-msft
Community Support
Community Support

@harib ,

 

You may view the code generated by Quick measure Rolling average and take a look at this post.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.