Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
dd88
Post Patron
Post Patron

Too few arguments were passed to the IF function. The minimum argument count for the function is 2

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

2 ACCEPTED SOLUTIONS
Anonymous
Not applicable

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

View solution in original post

Bibiano_Geraldo
Super User
Super User

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"
)

 

View solution in original post

3 REPLIES 3
Bibiano_Geraldo
Super User
Super User

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"
)

 

Anonymous
Not applicable

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

Ashish_Mathur
Super User
Super User

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 &&


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors