Forum Discussion

smitpau's avatar
smitpau
Icon for Helper I rankHelper I
5 years ago
Solved

Get Current Fiscal Year based on TODAY

Hi,

 

Is there a way to return the current fiscal year based on today's date (so TODAY in DAX).

 

I've got a calendar table as below with the dates and corresponding Fiscal Year column but not sure how to write the DAX code.

 

 

Thanks,

  • HI smitpau 

    Try a measure like this

    Current FY = LOOKUPVALUE('Table'[Fiscal Year],'Table'[Date],TODAY())

    Regards

    Phil

3 Replies

  • HI smitpau 

    Try a measure like this

    Current FY = LOOKUPVALUE('Table'[Fiscal Year],'Table'[Date],TODAY())

    Regards

    Phil

    • smitpau's avatar
      smitpau
      Icon for Helper I rankHelper I

      Great thanks Philip that works.

    • Jacob_Austin's avatar
      Jacob_Austin
      Regular Visitor

      doesn't work, only returns the value into rows with today's date.