Forum Discussion

suchomelb's avatar
suchomelb
Helper I
3 years ago
Solved

Conditional formatting on a matrix based on duplicate values on multiple other columns

I cannot seem to find an answer to my exact issue anywhere. Hopefully somebody here will be able to help.   I have a matrix with the counts of user reviews as the values, user is rows and dates is ...
  • suchomelb's avatar
    3 years ago

    Well I managed to finally figure it out myself. I assumed this would be an easy one for the pro's on here, but most likely I didn't explain it properly, as I have a tough time laying out all the correct details. Unfortunately I don't even understand fully why it only worked for me this way, but here is what I did:

     

    Instead of doing it all with one measure, I created a calculated column first like so... 

    Calc Column1= Calculate(countrows(Table), allexcept(Table, Table[Last Reviewer],[ID],[Review Status],[Submitted Date]))

     

    Then I did a separate measure that looks at that column...
    Measure1 = Calculate(Countrows(Table1), Table1(Calc Column1) > 1

    Last I did a conditional formatting measure to make anything greater than 1 red...
    IF ( Measure1 > 1, "Red", Blank () )

     

    Once again, I wish I fully understood why it took a column and a measure. And maybe there is a way to do it all in a measure by itself, but I could not figure it out for the life of me. Any help I could find was very similar to the first reponse above.