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
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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.