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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
butterscotch
Helper II
Helper II

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

Hello Everyone !
I am quite new to power bi and im facing an issue when im creating new measure , this is my DAX formula 

Completion = IF(AND(VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24]) && VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24])), TRUE || FALSE).

the error is Too few arguments were passed to AND function. the minimum argument count for the function is 2

Thank you !
2 ACCEPTED SOLUTIONS
gmsamborn
Super User
Super User

Hi @butterscotch 

 

Is this what you meant?

 

 

Completion = 
IF(
	AND(
		VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24]),
		VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24])
	), 
	TRUE,
	FALSE
)

 

 

When using AND(), a comma is used to separate the 2 clauses instead of &&.  It could also be written as:

Completion = 
IF(
	VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24])
		&& VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24]),
	TRUE,
	FALSE
)

 

(I didn't try to fix anything else.)

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

View solution in original post

PijushRoy
Super User
Super User

Hi @butterscotch 

Adding to @gmsamborn 
Use simple && in DAX

Completion = 
IF(
		VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24]) &&
		VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24]), 
	TRUE,
	FALSE
)



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





View solution in original post

3 REPLIES 3
butterscotch
Helper II
Helper II

Thank you guys, it helps to resolve the issue by adding VALUES() 

PijushRoy
Super User
Super User

Hi @butterscotch 

Adding to @gmsamborn 
Use simple && in DAX

Completion = 
IF(
		VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24]) &&
		VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24]), 
	TRUE,
	FALSE
)



Did I answer your question? Mark my post as a solution!
Appreciate your Like/Kudos

Proud to be a Super User!





gmsamborn
Super User
Super User

Hi @butterscotch 

 

Is this what you meant?

 

 

Completion = 
IF(
	AND(
		VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24]),
		VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24])
	), 
	TRUE,
	FALSE
)

 

 

When using AND(), a comma is used to separate the 2 clauses instead of &&.  It could also be written as:

Completion = 
IF(
	VALUES(Master[Start Date].[Date]) <= VALUES(Master[Jan-24])
		&& VALUES(Master[End Date].[Date]) >= VALUES(Master[Jan-24]),
	TRUE,
	FALSE
)

 

(I didn't try to fix anything else.)

 



Proud to be a Super User!

daxformatter.com makes life EASIER!

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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