Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join 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/...
| User | Count |
|---|---|
| 24 | |
| 22 | |
| 22 | |
| 21 | |
| 13 |
| User | Count |
|---|---|
| 66 | |
| 56 | |
| 45 | |
| 45 | |
| 30 |