The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello
I am getting error "Argument '3' in if function is required" in following measure
MissingCertificationengineerBrasil =
IF (
AND (Merge1[Items.Level-2]="Certification issued by Engineer",Merge1[Classifications.Country]="BRASIL" ),
1,
IF (
AND (Merge1[Items.Level-2]="Certification issued by Engineer",Merge1[Classifications.Country]="NAFTA"),
0,
if
(
AND (Merge1[Items.Level-2]="Certification issued by Engineer ",Merge1[Classifications.Country]="europe"),
0,
)
)
)
Solved! Go to Solution.
Delete the comma on your last 0.
Pat
Hello ppm1,
As you suggested, I removed the comman, see below code but it is now giving me another error, we just want to return 1 or 0 depending on condition. Am I missing anything?
"single value for column 'Items.Level-2' in table 'Merge1' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."
IF (
AND (Merge1[Items.Level-2]="Certification issued by Engineer",Merge1[Classifications.Country]="BRASIL" ),
1,
IF (
AND (Merge1[Items.Level-2]="Certification issued by Engineer",Merge1[Classifications.Country]="NAFTA"),
0,
if
(
AND (Merge1[Items.Level-2]="Certification issued by Engineer ",Merge1[Classifications.Country]="europe"),
0
)
)
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
112 | |
80 | |
75 | |
52 | |
50 |
User | Count |
---|---|
132 | |
124 | |
78 | |
64 | |
61 |