Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

highlight weekends in matrix

Hi Dear Community,  I have a Matrix like below, with Days as column and usernames as rows and count on the value.  Now, my end user asked me to highlight the weekends on this matrix. Because he nee...
  • mahoneypat's avatar
    mahoneypat
    6 years ago

    Here is one way I found to work.

     

    On your Date table, add a column with this expression

     

    Day Color = IF(WEEKDAY('Date'[Date])=1, "Red")

     

    Then, concatenate the expression in your measure that goes in the values area with & " "

    Measure = SUM(Table[Column]) & " "

     

    Then add conditional format to that measure in the matrix, choose Field Value, and your Date[Day Color] field (it will default to First aggregation).

     

    Here is an example I what I saw when I did the above (note one value is blank but still show red).

     

     

    If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

    Regards,

    Pat