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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Custom rolling average formula help

Hi Power BI community,

 

I am having an impossible time creating a measure I need.

 

The goal is to create a rolling average of customer volume with these parameters:

- Numerator = number of customers who came into the store during the last 5 open days (excludes customers who came in on closed days)

- Denominator = number of days that I had customer volume during the last 5 open days (excludes days with customer volume if the store was closed)

 

Using this, I want to create a rolling average accross my three stores. This rolling average should be calculated for each store and then added together. In other words, the sum of each store's rolling average should equal the sum of the stores' rolling averages.

 

Finally, I need these in a measure format, because I will begin to add filters to my customer volume measure (age, gender, loyalty program member, etc).

 

I've created an excel file that captures the rolling average line and a Power BI that has the data.

 

Can anyone please help?

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , refer if this blog to travel across working days can help you

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Thanks! This is helpful in validating my logic for some other measures, but unfortunately it doesn't help with my rolling average problem (at least that I can see).

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.