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
ffan
Regular Visitor

Migrating Excel Project to PowerBi. SumProduct Formula used for 4 week moving average. [Expert req]

Hi,

 

I run an Excel report. I then populate a chart using a 4 week weighted moving average,

 

To do this I use this formula: SUMPRODUCT(AO3:AR3, AO4:AR4)/SUM(AO4:AR4)

 

A03 would be the average for Week 27. AP3 would be the average for Week 28.

AQ4 would be the count for Week 27. AP4 would be the count for Week 28.

 

How would I replicate this 4 week weighted moving average in PowerBi?

 

Many thanks for your help

 

 

2 REPLIES 2
Ashish_Mathur
Super User
Super User

Hi,

 

The SUMX() function should work.  To get specific help, share some data and show the expected result.

 

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
v-danhe-msft
Employee
Employee

Hi @ffan,

Due to I could not figure out your data structure, could you please post me some sample data or picture and offer me your desired result?

 

Regards,

Daniel He

Community Support Team _ Daniel He
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.