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 am trying to create an If Statement to create/group a column in the following order.
If Probability < 50 then it is "Early"
If Probability >= 50 or < 75 then it is "Warm"
If Probability is > 75 then it is "Late"
So far I have
Solved! Go to Solution.
Hi @actzikas
i dont think you need the last statement
IF(Opportunity[Probability] >= 75, "Late"
because you have already described any of possible values.
so, you could leave just
Piepline Probability Stage = IF(Opportunity[Probability] < 50, "Early", IF(Opportunity[Probability] >= 50 || Opportunity[Probability] < 75, "Warm", "Late"))
Hi actzikas,
If you want to create calculated column, you could try to follow above suggestions. Or you also could use below expression
Column = SWITCH(TRUE(),'Table'[Column1]<50, "a", 'Table'[Column1]<75, "b", 'Table'[Column1]>=75 ,"c")
Best Regards,
Zoe Zhi
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @actzikas
i dont think you need the last statement
IF(Opportunity[Probability] >= 75, "Late"
because you have already described any of possible values.
so, you could leave just
Piepline Probability Stage = IF(Opportunity[Probability] < 50, "Early", IF(Opportunity[Probability] >= 50 || Opportunity[Probability] < 75, "Warm", "Late"))
Thanks I just had to replace the || with && and it worked
Thank you for the conditional column advise, but I wanted to do this via an IF Statement so I marked the other one as the solution but as you stated both work!
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 | |
99 | |
80 | |
64 | |
57 |
User | Count |
---|---|
145 | |
111 | |
92 | |
84 | |
66 |