Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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,
User | Count |
---|---|
8 | |
7 | |
2 | |
2 | |
2 |
User | Count |
---|---|
6 | |
5 | |
4 | |
4 | |
4 |