Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
In matrices, is it possible to have conditional formatting based on more than one rule?
Ie based on column value (cabin) and aggregation value sum(seats remaining)
(Note I am not talking about formulaic statements - this is to do with formatting cells)
Eg
If Cabin = 'Business' and Seats between 10 and 40 then format Green
If Cabin = 'Economy' and Seats between 10 and 40 then format Orange
etc etc
Cabin | Seats | Colour |
Business | 30 | Green |
Business | 10 | Orange |
Economy | 30 | Orange |
Economy | 10 | Red |
Solved! Go to Solution.
Hi @Anonymous
Can you try this?
Create a measure
Condition = MAXX(Ex_Format, IF(Ex_Format[Cabin]="Business"&& Ex_Format[Seats] >10, 1, IF(Ex_Format[Cabin]="Business"&& Ex_Format[Seats] <=10,2, IF(Ex_Format[Cabin]="Economy"&& Ex_Format[Seats] <=10, 3, IF(Ex_Format[Cabin]="Economy"&& Ex_Format[Seats] >10 && Ex_Format[Seats]<=40, 2)))))
Here, 1 -> Green. 2-> Orange, 3-> Red.
and then do the conditional formatting like this:
your result will be like this:
Hope this is what you are looking for.
Thanks
Raj
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |