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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AWP
Regular Visitor

Help with calculating median stores sales...

Hello

I'd like some assistance please, I have sales data at a transaction level and therefore calculating the median transaction value was straight forward.

I'd now like to calculate the median store value sales. I think I need to summarise/group the data to the store level and then perform a median calculation. I've spent a lot of time researching and made exactly zero progress.

Could I please have some assistance with methodology and a DAX calculation?

Thank you

Andrew

 

 

1 ACCEPTED SOLUTION
AWP
Regular Visitor

This worked for me...

 

Median Store Sales Sell (inc GST) =
MEDIANX(
SUMMARIZE(FCT_RETAIL_SALES,
DIM_STORE[ADDRESS_ID]
),
[Sales Sell (inc GST)]
)

View solution in original post

2 REPLIES 2
AWP
Regular Visitor

This worked for me...

 

Median Store Sales Sell (inc GST) =
MEDIANX(
SUMMARIZE(FCT_RETAIL_SALES,
DIM_STORE[ADDRESS_ID]
),
[Sales Sell (inc GST)]
)

cjayaneththi
Helper I
Helper I

Can you share data tables or pbix file?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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