Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
Solved! Go to Solution.
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
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 🙂
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
12 | |
9 | |
9 | |
9 |
User | Count |
---|---|
21 | |
14 | |
14 | |
13 | |
13 |