Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
akhilduvvuru
Helper IV
Helper IV

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 3
akhilduvvuru
Helper IV
Helper IV

@amitchandak @Greg_Deckler - Appriciate if you have any inputs here. Thanks!

Idrissshatila
Super User
Super User

Hello @akhilduvvuru ,

 

In the feb 2023 update, they've changed in the conditional formatting so you could set it based on the fields,

 

check it out https://powerbi.microsoft.com/en-us/blog/power-bi-february-2023-feature-summary/#post-22137-_Toc1269...

 

If I answered your question, please mark my post as solution so it would appeare to others, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Thanks for your response @Idrissshatila - But my requirement is I only show student fileds in the visualization but my conditional formatting for student fields should be based on class fields.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.