cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
harib Member
Member

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

Accepted Solutions
Community Support Team
Community Support Team

Re: Average of months

@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
Community Support Team
Community Support Team

Re: Average of months

@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

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

January 2020 Community Highlights

January 2020 Community Highlights

Make sure you didn't miss any of the things that happened in the community in January!

Difinity Conference

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors