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!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
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.
Solved! Go to Solution.
Just use
DATE( _anoFiscalRerferencia, 5, 1 ) and DATE( _anoFiscalRerferencia + 1, 5, 1 )
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)
)
)
Proud to be a Super User! | |
@Anonymous I don't see any problem in your formula. Please delete and rewrite the measure.
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)
)
)
Proud to be a 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 I don't see any problem in your formula. Please delete and rewrite the measure.
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?
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
Just use
DATE( _anoFiscalRerferencia, 5, 1 ) and DATE( _anoFiscalRerferencia + 1, 5, 1 )
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.