Forum Discussion
Conditional formatting based on multiple conditions
- Anonymous8 years ago
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
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
Hey Raj,
Thank so much for your suggestion, it inspired my final solution which gives a load factor %.
I ended up going with the below:
Formatting Measure = maxx(TABLE_1,
if( TABLE_1[cabin] = "Economy", TABLE_1[SEG_SEATS_AVAILABLE] / 250 *max seats in Y,
if( TABLE_1[cabin] = "Business", TABLE_1[SEG_SEATS_AVAILABLE] / 50 *max seats in Y,
1)
Thanks so much!
- Anonymous8 years agoNot applicable
Hi Anonymous
Glad that it solved your problem . Please mark the solution as accepted solution, so that the thread can be closed and it will help others as well.
Thanks
Raj- nmck868 years agoPost Patron
Hey Raj,
maybe you can assist with this as it is very similar.
- Anonymous8 years agoNot applicable