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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
marcp2
Frequent Visitor

Can't compute a median

Hi everyone

 

I need to compute a median

This is a sample of data

YearMonthDayItemPrice
201711A5
201712A6
201713A6
201713B10
201714B7

 

I wish to obtain this result

YearMonthDayTotalMedian
20171155
20171266
201713168
20171477

 

I tried some ideas found in this forum but I can't adapt them to my use case

All my measures give an equal result for total and median 😞

 

Could you help me ?

Kind regards

Marc

3 REPLIES 3
HotChilli
Super User
Super User

In Power Query editor:

 

use Group By as follows

Enter GroupMedian.PNG

Hi HotChilli

 

Thanks for you help

It would be easier for me to do it in DAX because my data are in direct query mode and I'm not sure I can proceed with your method ?

 

And also it needs to be a measure because the result will change, depending on filters selected by final user

 

Kind regards

Marc

What DAX measures do you have?

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.

Top Solution Authors