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.
I want to write a dax function with "IF" condition basis following logic;
Red | Amber | Green | |
T1 | <= 20 | >20 and <=50 | > 50 |
T2 | <=90 | >90 and <=120 | >120 |
So if Value falls in either of 3 categories (Red, Amber or Green); accordingly IF condition to calculate. my biggest problem occurs in 'Amber' column where a range of values need to be written in DAX.
Any help please?
@Zubair_Muhammad @Greg_Deckler
Solved! Go to Solution.
I think this should do it.
=if(T1 <=20, "Red", if(T1 <=50, "Amber", "Green"))
=if(T2 <=90, "Red", if(T2 <=120, "Amber","Green"))
You can try the below
1. IF(K11<=20,"red",IF(K11>50,"Green","Amber"))
2. IF(K11<=90,"red",IF(K11>120,"Green","Amber"))
Nandri
I think this should do it.
=if(T1 <=20, "Red", if(T1 <=50, "Amber", "Green"))
=if(T2 <=90, "Red", if(T2 <=120, "Amber","Green"))
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 |
---|---|
110 | |
109 | |
89 | |
76 | |
66 |
User | Count |
---|---|
125 | |
111 | |
100 | |
83 | |
71 |