Forum Discussion

mvgust's avatar
mvgust
Icon for Helper III rankHelper III
6 years ago
Solved

Current FY page filter

I have a date table which includes a fiscal year column - "FYXX" as well as a standard date column.  I need to set a page filter on a report so it is displaying FYTD date on my visuals.  I need this to automatically switch to the next fiscal year when we switch from FY20 to FY21.

 

I'm guessing I need to add some sort of flag column but I can't wrap my head around how I would do this?

 

Thank you.

 

 

  • mvgust , Try like

    Is FY = if(startofyear('Date'[Date],"3/31")<=TODAY() && endofyear('Date'[Date],"3/31")>=TODAY(),1,0)

4 Replies

    • mvgust's avatar
      mvgust
      Icon for Helper III rankHelper III

      I don't know if I explained myself clearly.  I need to add a flag column, possibly to the date table?  I need to compare today's date and determine based on today's date is it in the current fiscal year (based on my fiscal year column in the date table).  If it is then it's a 1 if not then it's a 0.

      • amitchandak's avatar
        amitchandak
        Icon for Super User rankSuper User

        mvgust , Try like

        Is FY = if(startofyear('Date'[Date],"3/31")<=TODAY() && endofyear('Date'[Date],"3/31")>=TODAY(),1,0)