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! Get ahead of the game and start preparing now! 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êsThe Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 41 | |
| 39 | |
| 37 | |
| 29 | |
| 24 |
| User | Count |
|---|---|
| 122 | |
| 110 | |
| 83 | |
| 69 | |
| 68 |