Forum Discussion

binayjethwa's avatar
binayjethwa
Helper V
1 year ago

Backgroung gradient color conditional formatting for Row comparison for Matrix visual.

Hi,

 

I have a matrix visual which has following items,.

Rows : Domain 

Columns : Name

Values : Measure

 

Column Name has multiple values like , total completions , completion % , Novice , Aspiring , Developing ,Proficient and advanced etc.

 

Below is the matrix view i am having. Now i want to make the comparision based on row level for Novice , Aspiring , Developing ,Proficient and advanced fields only and change background  as Gradient color based on %.

 

For Example in below , For Cisco , Highest is Proficient , so it will have darker background color and similarly the gradient will get to lower color for corresponding lower % for Novice , Aspiring , Developing ,Proficient and advanced only. something like below screenshot.

 

Is there any wasy we can achieve this using dax to compare row level data and change background color as gradient.

 

Measure = VAR Selected = SELECTEDVALUE(Benchmark[Name])

return

SWITCH(TRUE(),

selected = "Skill Benchmark Accesses",ROUND([Skill Benchmark Accesses],0),

selected = "Skill Benchmark Completed %",FORMAT([Completions % for Skillbenchmark],"0%"),

selected="Novice",FORMAT([Novice],"0%"),

selected="Aspiring",FORMAT([Aspiring],"0%"),

selected="Developing",FORMAT([Developing],"0%"),

selected="Proficient",FORMAT([Proficient],"0%"),

selected="Advanced",FORMAT([Advanced],"0%"))

 

 

Thanks in Advance.

 

 

 

 

2 Replies