Hi,
I want to write a total ytd dax function that allows me to have dynamic year end date.
Previously i was using the following formula:-
test1:=TotalYTD(sum[columnA],Period[Date],All(Period),"31 Mar")
But the problem that i am facing now is that i have been informed that the year 2011-12 till 2012-2013 the financial year cycle starts from july to june and from 2013-14 onwards the financial year changed to april-march cycle.Now i want totalytd of 2011-12 to have year end date as June12 whereas for 2013-14 to consider march 2014 as the year end date and so on.
Please need help on how to work this out.