Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
jlix
New Member

Week number based on month start date and month end date

Good morning Community, 

 

I've trying to get the year week number based on the start and the end of the month date. I have the following columns: start, end, month. The start and end date indicate the range date for the column month. For instance there are ending dates that end in the next month but belong to January for example. here is an example of the table. However, if the week number is based on the date column I will end up with week 53 when the month reference is January so I want the week number to mach the month column so it is consistent. I hope I made sense 🙂 

jlix_0-1713278420596.png

 

I  appreciate any help you might be able to provide.  Also if you have any other idea how to approach this please share them the column that are required tho are month, start and end

 

2 REPLIES 2
dufoq3
Super User
Super User

Hi @jlix, could you provide sample data in usable format (if you don't know how - read note below please) and also expected result based on sample data?


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

lbendlin
Super User
Super User

I've trying to get the year week number based on the start and the end of the month date. 

Those things are violently incompatible.  Use an external Calendar tabe that has all the required details.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors
Top Kudoed Authors