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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
jagostinhoCT
Post Partisan
Post Partisan

Format cells in Table whose value do not match the max value in the same column

Hello,

 

Is it possible to format the cells whose value does not match the max value found in the same table?
In the example below, I would like to format all the cells highlighted in yellow if they do not match the max value above (marked with the green tick). The Max value is dynamic and will change over time.

 

Thank you in advance.

jagostinhoCT_0-1699959822071.png

 

2 REPLIES 2
jagostinhoCT
Post Partisan
Post Partisan

Thank you, @dk_dk 

I realised I may have left out an important detail. My apologies. I need to calculate the MAX SubVersionNumber for each VersionNumber. This table below may help explain it better.
I have also copied a table with all the values in CSV format, if it helps.

 

Thank you

 

jagostinhoCT_0-1700041580047.png

RevitVersionNumber,RevitSubVersionNumber
2024,2024.0
2024,2024.1.10
2024,2024.2
2023,2023.0
2023,2023.0.1
2023,2023.1.10
2023,2023.1.20
2023,2023.1.30
2022,2022.0
2022,2022.1.2
2022,2022.1.3
2022,2022.1.4
2022,2022.1.5
2021,2021.2
2020,2020.2

  

dk_dk
Super User
Super User

Hi @jagostinhoCT ,

Here is my solution, please check if it works for you. The name of my test table is "MaxFormat".

Measure:

MaxValueBuild = IF(MIN(MaxFormat[Build]) = CALCULATE(MAX(MaxFormat[Build]),ALL()), 1, 0)


This should show 1 in every row where the build is the max build and 0 everywhere else.

Then you can configure conditional formatting like this:

dk_dk_0-1699980769791.png

Let me know if you have any questions or issues.




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

Proud to be a Super User!





Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!