Forum Discussion
Anonymous
7 years agoNot applicable
DAX Date Sorting
Hi, I am sorting NBA data into season and season type. For the 2012-2013 season. Season Type = SWITCH(TRUE(),
'Merge1'[Date] >= DATE(2012,10,5) && 'Merge1'[Date] <= DATE(2012,10,29), "Pr...
- 7 years ago
Hi Anonymous,
Would I have to copy and alter this code for each of the 8 seasons .
Or is there an alternative?
I think you may have to copy and alter this code for each season data.
Regards,
Yuliana Gu
tarunsingla
7 years agoSolution Sage
Not sure what all data you have, but you can dump the season metadata like season, season type, start date and end date in another dataset and then create a relationship between your actual datset and the season metadata. You wont need to duplicate this dax then and can work with season start date and end date alone.