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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Slicing date interval on weeks

Hello everyone.

I have a problem filtering date interval on weeks when the date interval is more than 1 week.

 

I have multiple activities trough out the year. I want to be able to select a specific week and see what activies have dates in that week. Even if its just 1 day (Start or end date).

 

Following is pictures of my problem.

 

I've set up two sliders to select year (år) and week (uge).

 

When week 7 is choosen I see the below activity, which starts 08-02-2023 ( Wednesday, week 6) and ends 01-03-2023 (Wednesday, week 9).

 

AndreasBjrn_1-1670935087384.png

 

When I slice week 8 (or 6 and 9) on the slider it doesent show up:

 

AndreasBjrn_2-1670935175039.png

Can anyone help with this issue?

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I fixed it by turning every date in the interval from start to end into a new line in power query.

 

Following link provides a quide to do so.

https://apexinsights.net/blog/convert-date-range-to-list

View solution in original post

4 REPLIES 4
v-yalanwu-msft
Community Support
Community Support

Hi, @Anonymous ;

You could create a flag measure.

flag = 
IF(MAX('Table'[start date])<MAX('Date'[Date])&&MAX('Table'[end date])>=MIN('Date'[Date]),1)

Then apply it into filter.

vyalanwumsft_0-1670983093433.png

 

The final show:

vyalanwumsft_1-1670983107333.png


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Anonymous
Not applicable

Hey @v-yalanwu-msft 

Thanks for the answer!

Is there a way to make this work with a relation to the time table? It only works if I remove the relation, but that will ruin other visuals.

Anonymous
Not applicable

I fixed it by turning every date in the interval from start to end into a new line in power query.

 

Following link provides a quide to do so.

https://apexinsights.net/blog/convert-date-range-to-list

Anonymous
Not applicable

@amitchandak - Do you have a solution for this? 😉

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.