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!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi all,
New to Power BI. I'm trying to chart Growing Degree Days (which is a temperature/weather related thing), by crop growing season.
I'm in the the southern hemisphere, so our growing season is September - April. I would like to have a "Season" colum in the date table. And as an example Season20-21 would indicate any date between 1 September 2020-30 April 2021.
I've read a bit about doing date tables in DAX vs M or others, I think I'm happy to do this in DAX.
I have found plenty of examples using financial periods, but not sure how to best to go about doing this based on the above.
Any ideas or staring pointers appreciated.
thanks
@sossie07 , In your date table create a new column like
season =
var _year = Switch(True(), month([date]) >=9 ,year([Date]) ,
month([date]) <=4 ,year([Date]) -1 )
return
if(month([date]) >=9 && month([date]) <=4,"Switch " & _year & "-" & (_year +1) , blank())
Thanks Amitchandak,
I couldn't actually get your solution to work, but it got me started.
I ended up with this:
User | Count |
---|---|
15 | |
9 | |
8 | |
6 | |
5 |
User | Count |
---|---|
30 | |
19 | |
12 | |
7 | |
5 |