Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago

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.

 

2 Replies

  • Hi Anonymous ,

    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:

    Let me know if you have any questions or issues.

  • Anonymous's avatar
    Anonymous
    Not applicable

    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

     

    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