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
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
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.