Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

Conditional formatting in Matrix Table

  I have a matrix visual showing data of 4 months. Computers name in row field, dates of 4 months in Column field and CPU average of every computer in Value field. I want to change background colour...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous 

     

    Based on your needs, I have created the following table.

     

    First, you should create a measure like this:

     

    Measure = 
    VAR select_company = SELECTEDVALUE('Table'[Company])
    VAR max_value = MAXX(FILTER(ALL('Table'),'Table'[Company]=select_company),'Table'[CPU])
    RETURN
    SWITCH(TRUE(),SELECTEDVALUE('Table'[CPU])=max_value,"blue")

     

     

    Then click the background color conditional formating:


     

     

     

    Result:

     

     

     

     

     

     

    Best Regards,

    Jayleny

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.