Forum Discussion
Thorstedt
7 years agoRegular Visitor
Is it possible to have an If function in another If function
Hi I'm interested in moving this DAX formular into Power Query: S1 = IF(IF('STATUS 1'[t2s1q4] >2;1;0)+If('STATUS 1'[t2s1q5] >2;1;0)+If('STATUS 1'[t2s1q11] >2;1;0)+If('STATUS 1'[t2s1q12] >2;...
- 7 years ago
Please note, you can also use "and" "or". An example of a simple one:-
If
(
[Column1] = "A"
and
[Column2] = "B"
)
then "Confirmed A & B"
else if
"not A&B"
else
"something else"
Thorstedt
7 years agoRegular Visitor
Hi Nolock
Thanks, I figured out the different formulation: If((if [a] >x THEN y ELSE z)+(If [b] >x THEN y ELSE z) .... ) >x THEN "True" ELSE "False")
Thanks!
101Mathew
7 years agoAdvocate V
Please note, you can also use "and" "or". An example of a simple one:-
If
(
[Column1] = "A"
and
[Column2] = "B"
)
then "Confirmed A & B"
else if
"not A&B"
else
"something else"
- Thorstedt7 years agoRegular Visitor
That might be a simpler solution than my first attempt. Thanks!