Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Too few arguments were passed to the IF function. The minimum argument count for the function is 2.
Was working, now DAX is displaying the error.
How can this be resolved?
The condition is
if LONG TERM PLACEMENTS <>
N/A
AND Blank
AND NO PLACEMENT
Then
Count remainder
CountPlacements = if(AND(Table_DATA[LONG TERM PLACEMENTS] <>"N/A", ISBLANK(Table_DATA[LONG TERM PLACEMENTS])) && (Table_DATA[LONG TERM PLACEMENTS]<>"NO PLACEMENT"))
TIA
Solved! Go to Solution.
Hi @dd88 ,
The key is that you only provided the logical test part of the IF function and didn't include the TRUE result, meaning the part after THEN is missing. Please try:
if(
AND(
Table_DATA[LONG TERM PLACEMENTS] <>"N/A",
ISBLANK(Table_DATA[LONG TERM PLACEMENTS])
) &&
(Table_DATA[LONG TERM PLACEMENTS]<>"NO PLACEMENT"),
"Count remainder"
)
Best Regards,
Bof
Hi @dd88,
Use this updated measure to achieve your goal:
CountPlacements =
IF(
(Table_DATA[LONG TERM PLACEMENTS] <> "N/A" &&
Table_DATA[LONG TERM PLACEMENTS] <> "NO PLACEMENT" &&
NOT(ISBLANK(Table_DATA[LONG TERM PLACEMENTS]))),
"Count Reminder"
)
Hi @dd88,
Use this updated measure to achieve your goal:
CountPlacements =
IF(
(Table_DATA[LONG TERM PLACEMENTS] <> "N/A" &&
Table_DATA[LONG TERM PLACEMENTS] <> "NO PLACEMENT" &&
NOT(ISBLANK(Table_DATA[LONG TERM PLACEMENTS]))),
"Count Reminder"
)
Hi @dd88 ,
The key is that you only provided the logical test part of the IF function and didn't include the TRUE result, meaning the part after THEN is missing. Please try:
if(
AND(
Table_DATA[LONG TERM PLACEMENTS] <>"N/A",
ISBLANK(Table_DATA[LONG TERM PLACEMENTS])
) &&
(Table_DATA[LONG TERM PLACEMENTS]<>"NO PLACEMENT"),
"Count remainder"
)
Best Regards,
Bof
Hi,
Try this
CountPlacements = if(Table_DATA[LONG TERM PLACEMENTS] <>"N/A"||ISBLANK(Table_DATA[LONG TERM PLACEMENTS])||Table_DATA[LONG TERM PLACEMENTS]<>"NO PLACEMENT"
If this does not work, then try replacing || with &&
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!