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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
andreazambon
Helper V
Helper V

Show data with the month of a filtered week

Hi there. 

Second question of the day... 

I need to filter a week, for example WK49, and in a view I need to see data with the month of the filtered week. 

In this case, If I choose WK49, I need to see the whole data with month = December. 

Possible?

 

Still, I don't know how to manage cases as WK48, which is both in November and December. I have to ask informations to my colleagues 😛

 

Thanks

2 REPLIES 2
v-stephen-msft
Community Support
Community Support

Hi @andreazambon ,

 

Here's my solution.

Sample data

vstephenmsft_4-1670911595159.png

Steps:

You can create a calendar with the week numbers. The [sort] column is to sort the [WeekNum] column.

Calendar = ADDCOLUMNS(CALENDAR(DATE(2022,1,1),DATE(2022,12,31)),"WeekNum","W"&WEEKNUM([Date],2),"sort",WEEKNUM([Date],2))

vstephenmsft_0-1670911360425.png

The relationship is as follows.

vstephenmsft_1-1670911398341.png

The week number column of the slicer comes from the calendar table, the main table is the date and value, and when you filter W49, the 49th week of November and December is displayed.

vstephenmsft_2-1670911431824.png

vstephenmsft_3-1670911497231.png

You can check more details from my attachment.

 

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks for your answer. 

I need to see the total data from the month. Suppose to have a 

DateWeekValue
06/11/202249100
12/12/202250150
25/11/202247300

 

 

Suppose to choose the WK 49. 

I need to see "December" and value = 250.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

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

Top Solution Authors