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
Anonymous
Not applicable

Adding Weeks to a Month column ?

Hello,

I would like to :  be able to drill down this chart to Month (below) with the weeks associated.

 

111.PNG
But my issue is : How can i import the weeks information ? 

 

I have all the information regarding month and weeks on my table.
But, i only imported the Month : I have filtered only the month so the weeks (S01, S02...S48...) are not there

 

112.PNGzefzeffzefez.PNG

 

Initally, i only had column "Date" "Mois" and "Mois_Majuscule" but i added the last 3 columns to make a correlation with weeks

 

113.PNG

 

How can i add the weeks information so my Drill Down function with Month and Weeks work ?

 

Mathieu

 

 

3 REPLIES 3
PhillipB
Frequent Visitor

Hi @Anonymous 

 

When you are in PowerQuery you can select the date column you have and use the Add Column menu, Date Options and select "Week of year"

 

With this new column you can place this under your month on the x-axis and use it for the drill down.

 

Weeknr.png

Anonymous
Not applicable

Hi,

I onlt have weeks from 1 to 45 which so it don't work

azaaaaa.PNG

 

Probably because there is only the first of each month at the colum Month ?

azz.PNG

Hi @Anonymous 

 

If you use the Debut_Semaine column to make the week numbers then you should get what you need. 

 

The other option is you can create a calendar table:

 

Calendar = CALENDAR(FIRSTDATE([Debut_Semaine]),TODAY())
Then use these dates to create week numbers in the new calendar table and then create a relationship between this date to get the weeknumbers
 

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