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.
Hello Community
I was trying to use the Excel formula IF(AND(M7="GP01",AI7<>""),"",IF(OR(D7={"Q1",""},M7={"GV01","GL02","GL03","GL07","GF01"}),"",1))
in DAX where curly brackets showing error "A table of multiple values was supplied where a single value was expected."
What are the other ways to use the same formula in DAX?
Solved! Go to Solution.
Hi @Varinder ,
For this you need to use the in statement rewrite the measure has:
IF(AND(M7="GP01",AI7<>""),"",IF(OR(D7 in {"Q1",""},M7 in {"GV01","GL02","GL03","GL07","GF01"}),"",1))
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHey @Varinder ,
you might try to replace this
M7={"GV01","GL02","GL03","GL07","GF01"}
with this
M7 IN {"GV01","GL02","GL03","GL07","GF01"}
Use th IN operator if a certain value is one of many values.
Hopefully, this provides what you are looking for.
Regards,
Tom
Hey @Varinder ,
you might try to replace this
M7={"GV01","GL02","GL03","GL07","GF01"}
with this
M7 IN {"GV01","GL02","GL03","GL07","GF01"}
Use th IN operator if a certain value is one of many values.
Hopefully, this provides what you are looking for.
Regards,
Tom
Hi @Varinder ,
For this you need to use the in statement rewrite the measure has:
IF(AND(M7="GP01",AI7<>""),"",IF(OR(D7 in {"Q1",""},M7 in {"GV01","GL02","GL03","GL07","GF01"}),"",1))
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsCovering 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 |
---|---|
108 | |
106 | |
87 | |
77 | |
69 |
User | Count |
---|---|
124 | |
112 | |
94 | |
84 | |
75 |