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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
timward10
Helper II
Helper II

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

Hi, 

 

Can someone help me with the below formula

 

Assay Count Jan'25 = if(CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jan 24]))+0+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Feb 24]))+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Mar 24]))+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Apr 24]))+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay May 24]))+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jun 24]))+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jul 24]))++CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Aug 24]))++CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Sep 24]))++CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Oct 24]))+CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Nov 24]))++CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Dec 24])=12,BLANK(),if('EXENT Funnel - by Product'[Assay Dec 24]<>BLANK(),'EXENT Funnel - by Product'[Assay Dec 24],if('EXENT Funnel - by Product'[Assay Rev Start Date]="Jan 25",[Assay Revenue Split],BLANK()))))
 
It is returning Too few arguments were passed to the IF function. The minimum argument count for the function is 2
 
Thanks 
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@timward10 , Use this

DAX
Assay Count Jan'25 =
IF(
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jan 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Feb 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Mar 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Apr 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay May 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jun 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jul 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Aug 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Sep 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Oct 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Nov 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Dec 24])) = 12,
BLANK(),
IF(
'EXENT Funnel - by Product'[Assay Dec 24] <> BLANK(),
'EXENT Funnel - by Product'[Assay Dec 24],
IF(
'EXENT Funnel - by Product'[Assay Rev Start Date] = "Jan 25",
[Assay Revenue Split],
BLANK()
)
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

3 REPLIES 3
bhanu_gautam
Super User
Super User

@timward10 , Use this

DAX
Assay Count Jan'25 =
IF(
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jan 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Feb 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Mar 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Apr 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay May 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jun 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jul 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Aug 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Sep 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Oct 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Nov 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Dec 24])) = 12,
BLANK(),
IF(
'EXENT Funnel - by Product'[Assay Dec 24] <> BLANK(),
'EXENT Funnel - by Product'[Assay Dec 24],
IF(
'EXENT Funnel - by Product'[Assay Rev Start Date] = "Jan 25",
[Assay Revenue Split],
BLANK()
)
)
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Hi @bhanu_gautam,

 

When I move the DAX over to the next column to repeat the formula for Feb, it tells me the below;

 

A circular dependency was detected: EXENT Funnel - by Product[Assay Feb'25], EXENT Funnel - by Product[Assay Jan 25], EXENT Funnel - by Product[Assay Feb'25].

 

DAX is just updated in accordance with looking at the new columns. 

 

Assay Feb 25 =
IF(
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jan 25])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Feb 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Mar 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Apr 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay May 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jun 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Jul 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Aug 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Sep 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Oct 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Nov 24])) +
CALCULATE(COUNT('EXENT Funnel - by Product'[Assay Dec 24])) = 12,
BLANK(),
IF(
'EXENT Funnel - by Product'[Assay Jan 25] <> BLANK(),
'EXENT Funnel - by Product'[Assay Jan 25],
IF(
'EXENT Funnel - by Product'[Assay Rev Start Date] = "Feb 25",
[Assay Revenue Split],
BLANK()
)
)
)

Fantastic! Thank you @bhanu_gautam 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.