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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Till__
Helper I
Helper I

Individual Season Calendar if date is in range

Hi all, 

 

I want to split my finaincal year, which is going from 01.10.YYYY until 30.09.YYYY+1, into two different Seasons. To be more precise into "Summer 21/22" and "Winter 21/22".
The Code which gives me the finanical years like FY 21/22 works quite well.  

Financial Year =
VAR fy =
    IF (
        MONTH ( 'Calendar'[Date] ) <= 9,
        VALUE ( FORMAT ( 'Calendar'[Date], "YY" ) ) - 1,
        VALUE ( FORMAT ( 'Calendar'[Date], "YY" ) )
    )
RETURN
    CONCATENATE ( "FY", CONCATENATE ( fy, CONCATENATE ( "/", fy + 1 ) ) )


My Question is now, how do I split the Code to get also an additonal season parameter? That is I want to have it like this if the date is in the range 
FW 21 = 01.09.21 - 28.02.22
SS 22 = 01.03.22 - 31.08.22 
FW 22 = 01.09.22 - 28.02.23 
SS 23 = 01.03.23 - 31.08.23 
FW 23 = 01.09.23 - 28.02.24
 

Thank you in advance! 
1 ACCEPTED SOLUTION
FreemanZ
Super User
Super User

hi @Till__ 

try like:

Season = 
VAR fy =
    IF (
        MONTH ( 'Calendar'[Date] ) <= 3,
        VALUE ( FORMAT ( 'Calendar'[Date], "YY" ) ) - 1 ,
        VALUE ( FORMAT ( 'Calendar'[Date], "YY" ) )
    )
VAR _season
IF (
    MONTH ( 'Calendar'[Date] ) >=3&& MONTH ( 'Calendar'[Date] )<=8,
    "SS ", "FW "
)
RETURN
_season&fy

View solution in original post

2 REPLIES 2
FreemanZ
Super User
Super User

hi @Till__ 

try like:

Season = 
VAR fy =
    IF (
        MONTH ( 'Calendar'[Date] ) <= 3,
        VALUE ( FORMAT ( 'Calendar'[Date], "YY" ) ) - 1 ,
        VALUE ( FORMAT ( 'Calendar'[Date], "YY" ) )
    )
VAR _season
IF (
    MONTH ( 'Calendar'[Date] ) >=3&& MONTH ( 'Calendar'[Date] )<=8,
    "SS ", "FW "
)
RETURN
_season&fy

Thank you! This perfectly works 🙂 
For me to work there is only one minor mistake as your code includes march but it should stop in feburary to be FW as written above but this is not important! 

 

MONTH ( 'Calendar'[Date] ) ‌‌< 3

 

 Thank you so much 🙂 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors