Forum Discussion

dapperscavenger's avatar
5 years ago
Solved

Fiscal Year To Date calculations

I have a date table, it rus in monthly buckets from 01 July 2019 to 01 June 2022 (4 fiscal years, 48 rows)   My fiscal Year starts on 01 July and ends 30th June.   I have created a YTD measure:  ...
  • Angith_Nair's avatar
    Angith_Nair
    5 years ago

    dapperscavenger  use SAMEPERIODLASTYEAR i.e 

    YTD Sales Outlook = TOTALYTD([Sales Outlook], DimDate[LongMonthYear], "06/30" )
    YTD Sales Outlook last year = 
    CALCULATE ( 
                [YTD Sales Outlook],
                 SAMEPERIODLASTYEAR ( DimDate [Date] )
    )