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
DMV
New Member

Highlight max value in a column of a table

Hello!

 

I am looking to highlight the max value of a column in a table 

 

When I use this formula...

MaxValue =
VAR _MaxValue = MAX('Table Name'[Source.Name])
RETURN
   IF(_MaxValue, "Green")
 
And add it as a condition...
DMV_0-1675369041985.png

I get every number in the column highlighted.

 

Since each number in the column is listed multiple times, ultimately I would like to end up with the max number highlighted so I can see all the rows with that number.

 

Appreciate any input. 

 

Thanks!

 

 
5 REPLIES 5
Callet74
Frequent Visitor
FreemanZ
Super User
Super User

hi @DMV 

try like:

MaxValue =
VAR _MaxValue = 
CALCULATE(
    MAX('Table Name'[ValueColumn]),
    ALL('Table Name'[Source.Name])
)
RETURN
   IF(_MaxValue, "Green")

@FreemanZ,

 

Thank you for your response. I tried the solution you provided and I am getting the same results as before. 😕 

hi @DMV 

what would you get if you try:

MaxValue =
VAR _MaxValue =
CALCULATE(
MAX('Table Name'[ValueColumn]),
ALL('Table Name')
)
RETURN
IF(_MaxValue, "Green")

@FreemanZ,

 

Still getting the same thing. This is really a tricky one!

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.