Forum Discussion

harshadrokade's avatar
harshadrokade
Post Partisan
4 years ago
Solved

Conditional formatting on row level data of matrix table

Hi

 

I have below data which is converted into a Matrix table in power bi-

I want to apply conditional formatting on the visual where the data bars should compare the specific subject value for all the students. As of now, the cnditional formatting option of power bi allows me to compare the Specific student value of all the subjects. I want to apply row specific conditional formatting & not on column level.

 

How can I achieve the same?

 

Visual-

 

 

Data-

SudentSubjectValue
AX111
AX29
AX315
AX419
AX58
AX65
BX110
BX25
BX38
BX48
BX510
BX611
CX19
CX27
CX313
CX45
CX517
CX614
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi  harshadrokade ,

    Here are the steps you can follow:

    1. Create calculated column.

    rank_column =
    
    RANKX(FILTER(ALL('Table'),'Table'[Subject]=EARLIER('Table'[Subject])),'Table'[Value],,DESC)

    2. Format  -- Background color – Advanced controls

    3. Enter the Background color –Value interface.

    Format style – Gradient

    What field should we based this on --- Sum of [rank_column]

    Check Add a middle color to generate a custom middle color

    4. Result:

     

    Best Regards,

    Liu Yang

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

2 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi  harshadrokade ,

    Here are the steps you can follow:

    1. Create calculated column.

    rank_column =
    
    RANKX(FILTER(ALL('Table'),'Table'[Subject]=EARLIER('Table'[Subject])),'Table'[Value],,DESC)

    2. Format  -- Background color – Advanced controls

    3. Enter the Background color –Value interface.

    Format style – Gradient

    What field should we based this on --- Sum of [rank_column]

    Check Add a middle color to generate a custom middle color

    4. Result:

     

    Best Regards,

    Liu Yang

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