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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
sandeep_potturi
New Member

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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

Top Solution Authors