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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Store Sales Average calculation help request

Dear Experts.

 

I have a Store slicer with the single selection option in it. My report displays the sales information of that Store week wise. I was asked to get the average sales for each week.

 

Average Sales = Total Sales(for all the stores) / Total Sales of the store(selected on the slicer) for that period.

 

Please can someone help me with your valualble input to achieve this.

 

Thanks
Mahad

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

Average Sales =
VAR StoreSales =
    SUM ( Sales[Sales] )
VAR TotalSales =
    CALCULATE ( SUM ( Sales[Sales] ), ALL ( Stores[Store Name] ) )
RETURN
    DIVIDE ( TotalSales, StoreSales )

View solution in original post

1 REPLY 1
tamerj1
Super User
Super User

Hi @Anonymous 
Please try

Average Sales =
VAR StoreSales =
    SUM ( Sales[Sales] )
VAR TotalSales =
    CALCULATE ( SUM ( Sales[Sales] ), ALL ( Stores[Store Name] ) )
RETURN
    DIVIDE ( TotalSales, StoreSales )

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.