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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Anonymous
Not applicable

Find categorical value based on maximum value of corresponding metric

I'm comparing industry benchmark data. For each industry, I have values for different aspects of their operations. I can then show how one industry compares with another. For example:

Remote workforce

Retail: 25%

Government: 33%

 

For a given metric, I'd like to also display the industry with the maximum value for that metric, along with the value. I want to do this using an explicit measure so I can use the current filter context.

 

I have a measure that correctly finds the maximum value:

 

 

Overall Maximum = 
CALCULATE(MAX('fact_metrics'[Value]), ALL('dim_Industry'[Industry]))

 

 

How do I find and display the industry that corresponds to the value of Overall Maximum for a given attribute (e.g., median, 25th percentile, 75th percentile)?

 

The metrics table looks like this: 

Metric CategoryMetricIndustryAttributeValue
Go to marketNew product introductionFinancial ServicesMedian10.5
Go to marketNew product introductionFinancial Services75th Percentile15
Go to marketNew product introductionFinancial Services25th Percentile25
Operational excellenceUse of data & analyticsConsumer ProductsMedian10
Operational excellenceUse of data & analyticsConsumer Products25th Percentile8.5
Operational excellenceUse of data & analyticsConsumer Products75th Percentile20
Ways of workingProcess automationConsumer Products25th Percentile2
Ways of workingProcess automationConsumer ProductsMedian5
Ways of workingProcess automationConsumer Products75th Percentile14.25
Ways of workingWork-From-HomeFinancial ServicesMedian63.5
Ways of workingWork-From-HomeFinancial Services75th Percentile90
Ways of workingDigital EnablementManufacturingMedian10
Ways of workingDigital EnablementManufacturing25th Percentile5
Ways of workingDigital EnablementManufacturing75th Percentile19.25
6 REPLIES 6
lbendlin
Super User
Super User

Your sample data is insufficient for percentile calculations. Please provide statistically significant samples.

Anonymous
Not applicable

@lbendlin I don't have the raw data, only the quartile values.

That said, I'm looking for the Industry(s) that correspond to the maximum value of the Median attribute.
For example, for the Metric "Work-From-Home", which Industry has the highest Median value?

Does that make sense?

I was trying to create a TOPN or possibly RANKX measure, but I haven't gotten it to work.

I don't think that's the right data or the right approach.  I hope someone else can help you further.

Anonymous
Not applicable

I can appreciate that my approach is incorrect. But how am I supposed to reply when you say it's not the right data? It's the data I have. You must live in a very rarified world if you can always get access to the data you want.

I am trying to protect you from making decisions based on insufficient data. I am sure you are familiar with concepts like statistical significance.  If this is the data you have then you should not try to make decisions from it.

Anonymous
Not applicable

You don't know me or my data. Your condescension is not appreciated.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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