Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Prior Fiscal YTD Total

I want to create a report that calculates the current fiscal year to date quantity and compare that to the previous fiscal year total   so the current fiscal year would be July 1 2021 to Dec 6 2021...
  • Anonymous's avatar
    Anonymous
    4 years ago

    I did solve the problem one other way.  I created a second date column in my time table YTD_Date_DT and it is populated for all dates from July 1 (start of the fiscal year) until yesterday and then is null after that.  

    I then summed my measure on that date 

    CALCULATE( SUM('DW Sales_Purchase_Fact'[Quantity_50LB]), 'DW Time_DIM'[YTD_Date_DT] )

    so as long as I can accurately keep this column in the time table up to date, it should work fine.

    also allows the user to select 2, 3, 4, 5, 6 years to compare.

     

    I just figured this out this morning, but thanks for all your help.  will try your solution as well.