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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
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/...
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 51 | |
| 42 | |
| 25 | |
| 22 |
| User | Count |
|---|---|
| 139 | |
| 116 | |
| 54 | |
| 37 | |
| 31 |