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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

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
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.