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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
MissNewbie258
New Member

Help needed: Having trouble calculating the rolling average

Hi

 

I've grouped my dates and created a separate table to show the values I need per day however, my rolling average is in the original format my dates were in prior to grouping so I am not getting the value I need. Tis is my table below and the values popping up in my rolling average column

 

MissNewbie258_0-1721053678676.png

 

This is the formua I used in DAX:

MissNewbie258_1-1721053733429.png

 

2 REPLIES 2
Anonymous
Not applicable

Hi @MissNewbie258 

 

Actually I can't understand what is your target outcome.

Could you please provide the expected result and its logic.

It would be helpful to find out the solution. You can refer the following links to share the required info:

How to provide sample data in the Power BI Forum

How to Get Your Question Answered Quickly

 

Best Regards

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

HotChilli
Super User
Super User

It's not the Date that you want in the sum.  It will be a numeric field required.

There's other problems too (I don't think this is a rolling average and you should use a dates table if you are using DATESINPERIOD)

Try this to help :

https://www.sqlbi.com/articles/rolling-12-months-average-in-dax/ 

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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