Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All
Im looking for some help in creating a column in my date table that will allocate the season the date is in.
I need the information to be created regardless of year - but to include the year in the output....so
If the date is between 1st May '21 and 30th October '21 = "S21"
If the date is between 1st November '21 to 30th April '22 = "W21/22"
and so on.
Without going through each date in my table - whats the best way to do this please?
TIA
Solved! Go to Solution.
Hey @LizardBoi ,
yes, you can do that with a calculated column. Try the following approach:
Season =
VAR vMonth = MONTH(myDateTable[Date])
VAR vYear = YEAR(myDateTable[Date])
RETURN
SWITCH(
TRUE(),
vMonth >= 5 && vMonth <= 10, "S" & RIGHT(vYear, 2),
vMonth <= 4, "W" & RIGHT(vYear-1, 2) &" /" & RIGHT(vYear, 2),
vMonth >= 11, "W" & RIGHT(vYear, 2) & "/" & RIGHT(vYear+1, 2)
)
Hey @LizardBoi ,
yes, you can do that with a calculated column. Try the following approach:
Season =
VAR vMonth = MONTH(myDateTable[Date])
VAR vYear = YEAR(myDateTable[Date])
RETURN
SWITCH(
TRUE(),
vMonth >= 5 && vMonth <= 10, "S" & RIGHT(vYear, 2),
vMonth <= 4, "W" & RIGHT(vYear-1, 2) &" /" & RIGHT(vYear, 2),
vMonth >= 11, "W" & RIGHT(vYear, 2) & "/" & RIGHT(vYear+1, 2)
)
Excellent - Thank you this worked a treat
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 69 | |
| 46 | |
| 44 | |
| 28 | |
| 19 |
| User | Count |
|---|---|
| 199 | |
| 129 | |
| 102 | |
| 69 | |
| 55 |