Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi,
just want to know formula for below logic how to write
plese help on above logic
Solved! Go to Solution.
@sprao ,
Assume YTD and YEP are measures you have. Create a measure and use that in conditional formatting using the field value option
Switch ( True() ,
[YTD] <= [YEP] , "Green" ,
[YTD] <[YEP] *1.05 , "Amber",
[YTD] >=[YEP] *1.05, "Red"
)
Conditional formatting the Pie Visual: https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
@sprao ,
Assume YTD and YEP are measures you have. Create a measure and use that in conditional formatting using the field value option
Switch ( True() ,
[YTD] <= [YEP] , "Green" ,
[YTD] <[YEP] *1.05 , "Amber",
[YTD] >=[YEP] *1.05, "Red"
)
Conditional formatting the Pie Visual: https://community.powerbi.com/t5/Community-Blog/Power-BI-Conditional-formatting-the-Pie-Visual/ba-p/...
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 35 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 134 | |
| 96 | |
| 78 | |
| 67 | |
| 65 |