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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Brechtzi
Frequent Visitor

Find value of Previous Row in same column (Weighted Rolling Average (Future Outlook with Percents)

Hello,

I am looking to make a rolling weighted avg in Dax. The calculation will always start with today and if before just 0. If today it will be column c. Otherwise the calculation as shown will depend on the average from the day before combined with the average of what came in today.

Brechtzi_0-1647018217097.png

Column H = IF(A9=I$1,C9,H8*E9+D9*C9)) Is the Excel formula

3 REPLIES 3
v-xiaotang
Community Support
Community Support

Hi @Brechtzi 

You need to use Power Query to calculate that, and please read this article, it will help you

https://community.powerbi.com/t5/Community-Blog/Exponential-Moving-Average-in-Power-Query-EMA/ba-p/1...

 

 

Best Regards,

Community Support Team _Tang

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

Brechtzi
Frequent Visitor

Date           Index  

3/11/202273.879786037    013.879786037
3/12/2022810.0658600960.9341399043.690123052
3/13/202291.9282349570.0909372990.9090627013.529901708
3/14/2022101.1310917880.1053563170.8946436833.277171929
3/15/20221110.0178805410.9821194593.236454863
3/16/2022122.4660164370.0658291390.9341708613.185737565
3/17/2022131.3127161370.2126162490.7873837512.787502775
3/18/2022141.9639325050.1993462540.8006537462.623327127
3/19/2022151.725414760.1345719790.8654280212.502493282
3/20/2022161.4395894840.0932649440.9067350562.403361619
3/21/2022171.0827382580.1649068480.8350931522.185581783
3/22/20221860.1611928810.8388071192.800438845
lbendlin
Super User
Super User

Please provide sanitized sample data that fully covers your issue. If you paste the data into a table in your post or use one of the file services it will be easier to work with. Avoid posting screenshots of your source data if possible.

Please show the expected outcome based on the sample data you provided. Screenshots of the expected outcome are ok.

https://community.powerbi.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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