Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin 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.
I am trying to shade the background color Red on any cells in a table that contain the text value = "No" and green for any values = "Yes".
Is there a simple way to do this with a single expression that will apply to all cell values?
Solved! Go to Solution.
Hi @stuross1129,
If you use a Table visual to show data, you have to set conditional background colors for each column one by one. For example, to set conditional formatting for Step1, please create a measure first. If you have N columns, then, you need N mesaures.
Measure for step1 = IF(SELECTEDVALUE(Table2[Step1])="Yes",1,0)
As a workaround, you can unpivot table first in Query Editor mode, then, use a Matrix to analyse data.
Measure 2 = IF(SELECTEDVALUE('Table2 (2)'[Value])="Yes",1,0)
Best regards,
Yuliana Gu
Hi @stuross1129,
If you use a Table visual to show data, you have to set conditional background colors for each column one by one. For example, to set conditional formatting for Step1, please create a measure first. If you have N columns, then, you need N mesaures.
Measure for step1 = IF(SELECTEDVALUE(Table2[Step1])="Yes",1,0)
As a workaround, you can unpivot table first in Query Editor mode, then, use a Matrix to analyse data.
Measure 2 = IF(SELECTEDVALUE('Table2 (2)'[Value])="Yes",1,0)
Best regards,
Yuliana Gu
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
71 | |
57 | |
38 | |
36 |
User | Count |
---|---|
81 | |
67 | |
61 | |
46 | |
45 |