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
sandeep_potturi
Frequent Visitor

date filter skipping date!

So i have dates in a table which is basically fridays. Today im noticing that 6/20 somehow isnt being recognized when im doing this filter:

sandeep_potturi_0-1750548569722.png

 

 

'is latest' works and picks up 6/27 which exists as the max date in my table. But the 'in the previous 5 weeks' is missing 6/20. Any ideas? I see 6/20 just fine in the database.

 

sandeep_potturi_1-1750548657739.png

 

1 ACCEPTED SOLUTION
PwerQueryKees
Super User
Super User

Add in the formula bar the following to your SelecxtRows():

or Date.IsInCurrentWeek([WEEK_END_DATE])

I could not find a way to create the full filter using the dialog boxes: The advanced filter does not support Last 5 weeks and the basic filter does not support this week...

View solution in original post

5 REPLIES 5
PwerQueryKees
Super User
Super User

Add in the formula bar the following to your SelecxtRows():

or Date.IsInCurrentWeek([WEEK_END_DATE])

I could not find a way to create the full filter using the dialog boxes: The advanced filter does not support Last 5 weeks and the basic filter does not support this week...

that was totally it. 

 

Didnt realize i was in the current week and that it wouldnt get picked up under "previous" and "latest". Thank you!

lbendlin
Super User
Super User

I am not familiar with the filter dialog you are showing. Is that used in on-object interaction?

 

Cannot reproduce the missing value

 

lbendlin_0-1750554683550.png

 

hi,

 

use this file as your source.

 

in the power query editor, click 'in the previous'

 

sandeep_potturi_0-1750558724922.png

 

type 3 and pick weeks then do or 'is latest'

 

sandeep_potturi_1-1750558806278.png

 

click ok

 

and then for me, 6/20 disappears...cant figure it out.

 

sandeep_potturi_2-1750558834700.png

 

@sandeep_potturi 

You filter condition in the above screenshot is, "IS IN PREVIOUS 3 WEEKS" OR "LATEST"

so, as per "IS IN PREVIOUS 3 WEEKS" - 13th June, 6th June and 30th May

"LATEST" : 27th June i.e the max date in your data. Results are correct.

 

20th June is current week, NOT the PREVIOUS week.

even if you select next 3 weeks you will not see 20th June, you can test and check 

 

Hope this answers your question

 

 

 

Connect on LinkedIn

 

 

 








Did I answer your question? Mark my post as a solution!
If I helped you, click on the Thumbs Up to give Kudos.

Proud to be a Super User!


PBI_SuperUser_Rank@2x.png

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.

Top Solution Authors