Forum Discussion

JC2022's avatar
JC2022
Helper III
3 years ago

Fiscal Year To Date Flag

My Fiscal year starts the 1st of October. I have the formula below for my YTD flag, but I would also like to create a Fiscal YTD Flag.
How do I do this?

= Table.AddColumn(#"Inserted Day of Year", "Flag_YTD", each if Date.DayOfYear([Date]) <= Date.DayOfYear(CurrentDate)

8 Replies

  • Migasuke's avatar
    Migasuke
    Memorable Member

    Hi JC2022 ,
    Can you specify your expected outcome? What do you mean by YTD flag?

     

    • JC2022's avatar
      JC2022
      Helper III

      Migasuke 
      For example:
      It is the 1st of April then every date <= 1st of April gets "YTD" else "null".  But this is for YTD. So 22nd of November gets a "null".
      I would like to create this for Fiscal YTD. My fiscal year starts 1st of October, so for Fiscal YTD flag it should return a "FYTD" for 22nd of November.