Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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 have a table where each row has a status. The status can be one of five: 1-Submitted, 2-Approved, 3-Rejected, 4-Scheduled, 5-Created. I would like to conditionally color the background row color based on the value of the Status column. So have a blue for Submitted, Green for Approved, Red for Rejected, Yellow for Scheduled, Black for Created.
When I got into Conditional Formatting for the table, it only lets me use 'Count' of a value. What am I missing here or is this not possible? Thanks
Solved! Go to Solution.
You will want a numeric measure like this:
Measure 5 = VAR __value = MAX(Table11[Column2]) RETURN SWITCH(TRUE(),__value = "Submitted",1,__value = "Approved",2,__value = "Rejected",3,__value = "Scheduled",4,__value = "Created",5)
go to your table.
right click for conditinal formatting.
format by rule.
select here you new measure wich only get numbers as result.
and then make the good rules wich numer gets wich color. maybe play a little bit with this combination
You will want a numeric measure like this:
Measure 5 = VAR __value = MAX(Table11[Column2]) RETURN SWITCH(TRUE(),__value = "Submitted",1,__value = "Approved",2,__value = "Rejected",3,__value = "Scheduled",4,__value = "Created",5)
Got it! I had to change to Rules. Thanks
Then in conditional formatting how would I apply the value of the ___value variable?
go to your table.
right click for conditinal formatting.
format by rule.
select here you new measure wich only get numbers as result.
and then make the good rules wich numer gets wich color. maybe play a little bit with this combination
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
82 | |
62 | |
45 | |
41 | |
40 |