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! It's time to submit your entry. Live now!
I would like to give different conditional formatting for product bakery
while others should remain the same
Solved! Go to Solution.
Hi @Evanooruvan ,
For this you need to create a metric that refers explicity to the bakery products something similar to:
Formatting =
SWITCH (
TRUE (),
SELECTEDVALUE ( Table[product_category] ) = "Bakery"
&& SUM ( Table[current_retail_price] ) < 10, "green",
SELECTEDVALUE ( Table[product_category] ) = "Bakery"
&& SUM ( Table[current_retail_price] ) < 20, "red",
SELECTEDVALUE ( Table[product_category] ) = "Bakery"
&& SUM ( Table[current_retail_price] ) < 50, "blue"
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Evanooruvan ,
For this you need to create a metric that refers explicity to the bakery products something similar to:
Formatting =
SWITCH (
TRUE (),
SELECTEDVALUE ( Table[product_category] ) = "Bakery"
&& SUM ( Table[current_retail_price] ) < 10, "green",
SELECTEDVALUE ( Table[product_category] ) = "Bakery"
&& SUM ( Table[current_retail_price] ) < 20, "red",
SELECTEDVALUE ( Table[product_category] ) = "Bakery"
&& SUM ( Table[current_retail_price] ) < 50, "blue"
)
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsThe Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 43 | |
| 31 | |
| 27 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 114 | |
| 58 | |
| 39 | |
| 35 |