This is best Fabric, Power BI, SQL and AI community event. How do we know? The last event sold out! Save €200 with code FABCMTY200.
Register nowA new Data Days event is coming soon! This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. Don't miss out.
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êsCheck out the May 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 29 | |
| 27 | |
| 25 | |
| 20 | |
| 14 |
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 22 | |
| 19 | |
| 19 |