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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Avg/day/store

Hi All,
I'm trying to calculate Avg/day/store but, my number are not coming out correctly. Is anything wrong with my DAX. 

Iklizo_0-1656691204078.png

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Please refer this measure:

Measure =
AVERAGEX ( ALLEXCEPT ( 'dim', 'dim'[store] ), [units sold] ) / 7

If it doesn't work, please share some sample data.

 

Best Regards,

Jay

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi @Anonymous ,

 

Please refer this measure:

Measure =
AVERAGEX ( ALLEXCEPT ( 'dim', 'dim'[store] ), [units sold] ) / 7

If it doesn't work, please share some sample data.

 

Best Regards,

Jay

daXtreme
Solution Sage
Solution Sage

Hi @Anonymous

 

You've given too little context to answer this question. And the DAX is not correctly formatted, hence hard to read. No idea why you'd like to add Dim[Store] as a filter to CALCULATE. CALCULATE only takes tables as filters, not columns. But you could try this:

Avg Per Day =
averagex(
  values( 'Date'[calendar_date] ),
  [Units Sold] / 7 -- why divide by 7?
)

If you slice by Store, this should give you what you want in the current context. I also understand that [Units Sold] is a measure...

Anonymous
Not applicable

@daXtreme   I'm trying to calculcate Avg per day per store. Then Week Number on the column. 

I'don't want the store slicer. it works with the store slicer.

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.