Forum Discussion

akhilduvvuru's avatar
akhilduvvuru
Helper IV
3 years ago

Single Conditional formatting measure based on multiple columns

Hi Team, I have a requirement to create ONLY ONE conditional formatting measure that should check values in around 10-15 Class fields (Class1, class2, class3, class4..... Class10) and format Student (Student1, Student2, Student3, Student4 ..... Student10) fields accordingly.

 

Here is how my data looks like 

Students1Class1Students2Class2Students3Class3Students10Class10
S1C1S1C1S1C1  
S2C2    S2C2
S3C3S3C3    
S4C4  S4C4  
  S5C5  S5C5
S6C6      

 

So my measure should work like, out of these 10 or 15 class fileds, wherever I find

C1 then my corresponding S1 value should be in "Red"
C2 then my corresponding S2 value should be in"Green"

C3 then my corresponding S3 value should be in"Amber"
C4 then my corresponding S4 value should be in"Grey"

C5 then my corresponding S5 value should be in"Blue" etc.,

 

Note: I strictly don't want to create one measure for each class.

Can someone please help me with the same? Thanks!

3 Replies