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
Anonymous
Not applicable

Too many arguments were passed to the DATE function. The minimum argument count for the function is

I am receiving an error as below, but couldn't see the error, can someone please advise?

I am trying to mesure results of hiring in between May 01 of year reference to May 1st of year refererence + 1, so that year after year, I only need to change the reference year. Any other ways of getting this result or any extra tips, please feel free to recommend,

 

Thanks in advamce.

 

NatKremer_0-1724774375681.png

 

3 ACCEPTED SOLUTIONS
Greg_Deckler
Community Champion
Community Champion

Just use 

 

DATE( _anoFiscalRerferencia, 5, 1 ) and DATE( _anoFiscalRerferencia + 1, 5, 1 )



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

check this

 

 

 

Contagem contratações ano fiscal =

VAR _anoFiscalReferencia = 2024

RETURN CALCULATE(
    SUM('Full Report'[Number of Applications In State: Hired]),
    FILTER(
        'tableName',
        'tableName'[Hired Position Hire Date] >= DATE(_anoFiscalReferencia, 5, 1) &&
        'tableName'[Hired Position Hire Date] < DATE(_anoFiscalReferencia + 1, 5, 1)
    )
)

 

 

 

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

@Anonymous  I don't see any problem in your formula. Please delete and rewrite the measure.

View solution in original post

8 REPLIES 8
Idrissshatila
Super User
Super User

Hello @Anonymous ,

 

check this

 

 

 

Contagem contratações ano fiscal =

VAR _anoFiscalReferencia = 2024

RETURN CALCULATE(
    SUM('Full Report'[Number of Applications In State: Hired]),
    FILTER(
        'tableName',
        'tableName'[Hired Position Hire Date] >= DATE(_anoFiscalReferencia, 5, 1) &&
        'tableName'[Hired Position Hire Date] < DATE(_anoFiscalReferencia + 1, 5, 1)
    )
)

 

 

 

 

 



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




shafiz_p
Super User
Super User

Hi @Anonymous  You have passed too many arguments inside date function. It would be Date (_anoFiscalReferencia,5,1). Remove Year, Month, Day function from Date Function. Just provide value.

Hope this helps!!

If this solved your problem, please accept it as a solution!!

Anonymous
Not applicable

Hi @shafiz_p Appreciate you taking the time to assist,

It still shows the error unfortunatelly.

NatKremer_0-1724775624360.png

 

@Anonymous  I don't see any problem in your formula. Please delete and rewrite the measure.

Anonymous
Not applicable

OMG 

Can't believe it solved! 🤓

I guess I made so many changes that Power BI could not keep track lol 🤣

 

Thanks again!

And thanks everyone else for taking the time, it was super fast!

@Anonymous  I don't suppose you have a language turned on that needs ; instead of , for DAX?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Hi @Greg_Deckler ,

Not sure if that is what you meant, but I also tried traslated, and it shows the same error. Regardless, my Power BI set up is in English anyways, so not sure how to fix it

NatKremer_0-1724776237644.png

 

Greg_Deckler
Community Champion
Community Champion

Just use 

 

DATE( _anoFiscalRerferencia, 5, 1 ) and DATE( _anoFiscalRerferencia + 1, 5, 1 )



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

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!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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