Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
2 years ago
Solved

How do you add a Fiscal Year Column to a date table

  @ links to members, content I have a gift_date field in my table.  I created a calendar table with calendarauto(), how do I add a column with fiscal year to that calendar table?  My fiscal year s...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi Anonymous ,

    Thanks for sharing lbendlin , you can also try Ashish_Mathur 's formula.

    I have also create a simple sample, please refer to.

    Create a column.

    Fiscal Year =
    VAR CurrentDate = 'Table'[Date]
    VAR FiscalStartMonth = 6
    RETURN
        IF (
            MONTH ( CurrentDate ) >= FiscalStartMonth,
            YEAR ( CurrentDate ) & "/"
                & YEAR ( CurrentDate ) + 1,
            YEAR ( CurrentDate ) - 1 & "/"
                & YEAR ( CurrentDate )
        )
    

     

    How to Get Your Question Answered Quickly - Microsoft Fabric Community

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Rongtie

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.