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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
cmckernan93
Frequent Visitor

choosing date filters for a visual

Hi for the below query, i need advice.

 

I want to make the highlighted filter show me the total of the week befoew last (i.e. days 8-14) so it gives a week on week comparison in the report. Just wondering how can i do this?

 

should i make a measure for the below visual to sort the data

or can i set the filter by going to the filters tab ---- add date field ---go to advanced filtering and settign the dates to previous days 8-14?

power query.jpg

 

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
Community Support

Hi @cmckernan93 ,

 

Based on your description, you just need to apply the date field as a filter condition to the corresponding visual level filter.

V-lianl-msft_0-1613116312510.png

But the default is Sunday as the first day of the week,You can also create a condition column.

Iscurrent_week = 
var week_today = WEEKNUM(TODAY(),2)
var week_date = WEEKNUM('Table'[date],2)
return IF(YEAR(TODAY())=YEAR('Table'[date])&&week_today=week_date,1)

V-lianl-msft_1-1613116593786.png

V-lianl-msft_2-1613116600948.png

Sample .pbix

 

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

View solution in original post

2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hi @cmckernan93 ,

 

Based on your description, you just need to apply the date field as a filter condition to the corresponding visual level filter.

V-lianl-msft_0-1613116312510.png

But the default is Sunday as the first day of the week,You can also create a condition column.

Iscurrent_week = 
var week_today = WEEKNUM(TODAY(),2)
var week_date = WEEKNUM('Table'[date],2)
return IF(YEAR(TODAY())=YEAR('Table'[date])&&week_today=week_date,1)

V-lianl-msft_1-1613116593786.png

V-lianl-msft_2-1613116600948.png

Sample .pbix

 

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

amitchandak
Super User
Super User

@cmckernan93 , refer if my wow week blog can help you

 

Power BI — Week on Week and WTD
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...
https://www.youtube.com/watch?v=pnAesWxYgJ8

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors
Top Kudoed Authors