Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Guys,
Just need help on adding the conditional formatting on my matrix that has text value. The value is a measure that I created.
I already tried using switch or creating a helper column to do formatting but it only captures one value.
Below is the measure I used:
Status_Measure =
IF(
MAX(Submission[ReStatus]) = BLANK(),
IF(
SELECTEDVALUE('Date Reference'[DAY NAME]) = SELECTEDVALUE(RestDay[Day]),
"Out of Office", "No Entry"),
MAX(Submission[ReStatus]))
Below is my matrix:
Also, below is how I related each table:
@krixtsup3r , I am not clear what help you need. Is the measure correct and you want to color group.
If Measure is correct and you want to color group. Then Create a similar measure which will now return color instead of status. And use that in conditional formatting after choosing field option.
Example
color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)
Refer for steps
https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-num...
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
Hi Sorry 'bout that.
It's adding colors to each status. I first created something like this:
Conditional Color =
SWITCH(
[Status Measure],
"SUBMITTED", "GREEN",
"ABSENT", "RED" .... But it doesn't work, also I have many status that I need to have colors as well.
Power bi Conditional format doesn't support Text in any default visuals. As a workaround, you may try the Card with States Custom Visual. See the similar posts:
https://community.powerbi.com/t5/Desktop/conditional-font-color-in-card/td-p/223172
Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous, thank you! but I am looking for something in Matrix not in Card 😞
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 38 | |
| 35 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 65 | |
| 58 | |
| 28 | |
| 27 | |
| 25 |