Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello,
I am not sure if I misunderstood the Microsoft Document (https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting), which says it can be a measure. If it means the terminology "Measure" in Power BI, I don't have the luck to get this to work on a "Measure", which is preferred from my point of view, instead of creating calculated column. Did anyone succeed in using a "Measure"? My experience is it is simply not selectable.
You can use a measure or a column that specifics a color, either using a text value or a hex code, to apply that color to the background of font color of a table or matrix visual. You can also create custom logic for a given field, and have that logic apply the desired color to the font or background.
Regards
Solved! Go to Solution.
Hi @Anonymous ,
One sample for your reference. Please check the following steps as below.
1. Create a measure as below.
Measure = VAR a = SUM ( 'Table'[value] ) RETURN SWITCH ( TRUE (), a <= 12, "#143DFF", a <= 14, "#FD09DE", "#DE8F12" )
2. Format the visual by thea measure as below.
The dropdown menu did not allow me to add this measure.
Hi @Anonymous ,
One sample for your reference. Please check the following steps as below.
1. Create a measure as below.
Measure = VAR a = SUM ( 'Table'[value] ) RETURN SWITCH ( TRUE (), a <= 12, "#143DFF", a <= 14, "#FD09DE", "#DE8F12" )
2. Format the visual by thea measure as below.
Thanks. The dropdown menu didn't show up the measure at the begining until I draged and dropped the measure to the visual then it was able to locate it. Of course I then dropped the unwanted measure later. It's a bit strange as I don't have to perform the additonal step to find the measure.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
104 | |
69 | |
49 | |
41 | |
34 |
User | Count |
---|---|
164 | |
111 | |
62 | |
53 | |
38 |