Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
May I write ONE dax to do the Conditional Formatting applying to Columns A,B,C like that
Color_DAX =
var _Darkgreen = " #34A853"
Return
if(Table[A] = 5, _Darkgreen)
Table
| A | B | C |
| 1 | 5 | 3 |
| 5 | 58 | 4 |
| 12 | 2 | 5 |
| 5 | 4 | 1 |
I may need a DAX rather than using Rules in Conditional Formatting.
Appreciated if any helps
Solved! Go to Solution.
@ngct1112 , as long as conditional is needed column A or combination column A, b, and C you can use that for any values /columns.
If you need pass measure to condition check for calculation groups
@ngct1112 , better to create this on a measure like and use in conditional formatting with field value option
Color_DAX =
var _Darkgreen = " #34A853"
Return
Switch(true(),
sum(Table[A]) = 5, _Darkgreen
sum(Table[A]) = 3, "#FF0000"
"#00ff00"
)
refer for steps
https://www.youtube.com/watch?v=RqBb5eBf_I4
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
@amitchandak , thanks but could I also apply this DAX to columns B & C as well without modifying?
What I am hoping is this DAX can cover all colums A,B,C rather than create 3 different DAX.
Great thanks.
@ngct1112 , as long as conditional is needed column A or combination column A, b, and C you can use that for any values /columns.
If you need pass measure to condition check for calculation groups
@amitchandak , sorry, I may not explain my question very well and I will open an new topic to make it clear.
However, thanks for your answer and it helps a lot
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 |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |