Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
i have a table with different measure using a switch formula. I need to show the conditional formatting only for one measure under the switch. when i say conditional its a color coding based on the number. Is there any option to create conditional formatting for measure under switch measure
Example :-
SlicerSelection = VAR Selection = SELECTEDVALUE ( 'Selection Table'[Selection] ) RETURN SWITCH ( TRUE (), Selection = "Domestic", [Domestic], Selection = "International", [International], CALCULATE ( SUM ( 'financials'[Profit] ) ) )
under this measure i want to only color code the financial profit based on number like -0, red between 0-5 yellow above 5 green. Please suggest
Solved! Go to Solution.
Hi, @Aysh_2104
You can add a measure like:
Color = SWITCH(TRUE(),[SlicerSelection]<=0,"red",[SlicerSelection]>0&&[SlicerSelection]<=5,"yellow",[SlicerSelection]>5,"green")
Then apply it to conditional formatting of field background color:
Reltead tutorial:
Apply conditional formatting in tables and matrixes
Best Regards,
Community Support Team _ Eason
Hi, @Aysh_2104
You can add a measure like:
Color = SWITCH(TRUE(),[SlicerSelection]<=0,"red",[SlicerSelection]>0&&[SlicerSelection]<=5,"yellow",[SlicerSelection]>5,"green")
Then apply it to conditional formatting of field background color:
Reltead tutorial:
Apply conditional formatting in tables and matrixes
Best Regards,
Community Support Team _ Eason
@Aysh_2104 Have a look at this:
Min/Max Color Formatter - Microsoft Power BI Community
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
39 | |
20 | |
19 | |
16 | |
15 |
User | Count |
---|---|
49 | |
26 | |
22 | |
17 | |
16 |