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 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 DAX formula considering 30th and 31th case?
I want it for each month like this way without weeks interfering from 1 month with another month
Solved! Go to Solution.
something like this?
Week Number |
1Jan-8Jan |
9Jan-16Jan |
17Jan-24Jan |
25Jan-31Jan ( If it's until 30th of Jan then get me until 30th) |
something like this?
you may create a new column with WEEKNUM function, then refer to the added column in your new measures or visuals.
About WEEKNUM
@FreemanZ I don't want to use week number. I want date to be the same format I mentioned above.
could you depict your expected result with a table?