Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
maurcoll
Helper II
Helper II

Financial Year Title

Hi

I have created a column in my date table for fiscal/financial year. I want the label to show as 22/23 etc. at the minute it is only showing 2023. Is there a way of doing this please. Calculation as below

 

VAR FirstFiscalMonth = 4
RETURN
    IF (
        'Calendar'[ MonthNo] >= FirstFiscalMonth,
       Calendar'[Year] + 1,
       Calendar'[Year]
    )
1 ACCEPTED SOLUTION
_AAndrade
Super User
Super User

Hi @maurcoll,

Please try this code:

 

VAR FirstFiscalMonth = 4
VAR FicalYear =
    IF (
        'Calendar'[ MonthNo] >= FirstFiscalMonth,
       RIGHT('Calendar'[Year],2) &"/"& RIGHT('Calendar'[Year] + 1,2),
       RIGHT('Calendar'[Year]-1,2) &"/"& RIGHT('Calendar'[Year],2)
    )
RETURN
   FicalYear 

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




View solution in original post

2 REPLIES 2
_AAndrade
Super User
Super User

Hi @maurcoll,

 

Can you tell me if my message solved your problem? If so, could you mark my message as the answer to this problem?
I'd be very grateful. Thank you very much





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




_AAndrade
Super User
Super User

Hi @maurcoll,

Please try this code:

 

VAR FirstFiscalMonth = 4
VAR FicalYear =
    IF (
        'Calendar'[ MonthNo] >= FirstFiscalMonth,
       RIGHT('Calendar'[Year],2) &"/"& RIGHT('Calendar'[Year] + 1,2),
       RIGHT('Calendar'[Year]-1,2) &"/"& RIGHT('Calendar'[Year],2)
    )
RETURN
   FicalYear 

 





Did I answer your question? Mark my post as a solution! Kudos are welcome.

Proud to be a Super User!




Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.