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!Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register 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 &&