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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
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êsJoin us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 29 | |
| 23 | |
| 18 | |
| 18 | |
| 15 |
| User | Count |
|---|---|
| 51 | |
| 44 | |
| 43 | |
| 39 | |
| 33 |