Forum Discussion
rhashhab
3 years agoFrequent Visitor
How to get Week Ranges in Power BI ?
Hi Power BI Community, I need to get week ranges like this way : 1Jan-8Jan 9Jan-16Jan 17Jan-24Jan 25Jan-31Jan ( If it's until 30th of Jan then get me until 30th) How to write this kind of ...
- 3 years ago
something like this?
WeekNumber =VAR _day = DAY(Data[Date])RETURNSWITCH(TRUE,_day >= 1 && _day <= 8, "1-8",_day >= 9 && _day <= 16, "9-16",_day >= 17 && _day <= 24, "17-24","24 onwards")