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
richard_jackson
Frequent Visitor

Highest (MAX) value of a measure over different categories

Hi there!


I have a fact table containing "Value" and "Category" which is (many->one) related to a dimension table of "Category".

 

From those two tables I can create visuals for "Value" by "Category"

i.e. using a "Matrix" visual, with Rows="Category" and Values="Value" I get the following:

 

CategoryValue
Apples3
Bananas7
Cabbage5
Total15

 

I would like to create a measure which would give me the highest value of an individual category - in the above instance it would return 7 as that is the single highest category value.

 

I've been able to create measures which give me the _overall total_ (in the above example this would give 15) but I can't work out how to give me the highest value over all categories.

 

How can I do this?

TIA!

 

Rich

 

1 ACCEPTED SOLUTION
richard_jackson
Frequent Visitor

Solved / Duplicate: https://community.powerbi.com/t5/Desktop/using-MAX-to-identify-the-max-value-calculated-by-a-measure...

In the above instance it would be:

MaxTest = MAXX(VALUES('DimensionTableName'[Category]),[NameOfMeasureWhichSumsTheValues])

View solution in original post

1 REPLY 1
richard_jackson
Frequent Visitor

Solved / Duplicate: https://community.powerbi.com/t5/Desktop/using-MAX-to-identify-the-max-value-calculated-by-a-measure...

In the above instance it would be:

MaxTest = MAXX(VALUES('DimensionTableName'[Category]),[NameOfMeasureWhichSumsTheValues])

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.

Top Solution Authors