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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Throw_11
Frequent Visitor

Calculating Median of a column filtered by row

I have data whose sample looks like this. There are many more rows here, with -ve and zeroes in AM-PM column

 

LocActual MarginPlan MarginAM-PM
Factory 11000600400
Factory 1200010001000
Factory 1300700-400
Factory 220001500

500

Factory 21000750

250

Factory 2100400

-300

...

I create a 'KPI card' for (AM-PM) which will show the median using for any location filtered. Using the method below, i only get '0' as answer.

Throw_11_3-1649741612080.png

 

How to actually resolve this? I'm new to PBi, and i tried to create a measure with Median DaX function but the result is completely different than what i see from excel. Appreciate any help

 

1 REPLY 1
MFelix
Super User
Super User

Hi @Throw_11 ,

 

With the sample data you provided I'm getting values for the median.

 

Can you please elaborate a little more?Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



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.