Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I am trying to create a measure of Amount YTD.
The date of end fiscal year is dynamic( it used 4-4-5 and/or 4-4-6 rule).
In Dates table, each row of date had FiscalStartDate and FiscalEndDate.
My question is I careted the Measure Amount YTD like
"Measure Amount YTD = CALCULATE([Measure Amount],DATESYTD('Dates'[Date], FiscalEndDate ))".
The power bi showing:"Only constant date value is allowed as a year end date argument."
I understand it is not right to create the Measure Amount YTD like this. Is there anyone have any sucessfull solution?
Best Regards,
Solved! Go to Solution.
Hi @QHY ,
Creating a column that contains the number of days elapsed in a year (or the running total of days in the year, if you prefer) makes it easy writing the FILTER required to use the right set of days in each calculation.
Please check if below links are helpful.
https://www.sqlbi.com/articles/week-based-time-intelligence-in-dax/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @QHY ,
Creating a column that contains the number of days elapsed in a year (or the running total of days in the year, if you prefer) makes it easy writing the FILTER required to use the right set of days in each calculation.
Please check if below links are helpful.
https://www.sqlbi.com/articles/week-based-time-intelligence-in-dax/
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Liang,
Following the approaches that you provided, the problem was successfully solved. Thank you so much. Your prompt response saved us a lot of time.
Best Regards,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
9 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |