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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
EaglesTony
Post Prodigy
Post Prodigy

Need help to filter down a table based on date fields on another table

Hi,

 

  I need help in Power BI M query to filter down a 2nd table based on the 1st table dates.

 

1st table (only will have one row):

tbl1StartDate: 1/31/2024

tbl1EndDate:  2/13/2024

 

2nd table:

Item1

tbl2StartDate: 1/17/2024

tbl2EndDate:  1/30/2024

 

Item2

tbl2StartDate: 1/31/2024

tbl2EndDate: 2/13/2024

 

Item3

tbl2StartDate: 1/31/2024

tbl2EndDate: 2/13/2024

 

In the above scenerio, I want to filter table2 to only have Item2 and Item3 and NOT contain Item1

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@EaglesTony , Just add any filter on date using the filter option on column down arrow

 

and then later go and replace those date with

List.Min(Table1[Date]) 

 

List.Max(Table1[Date])

 

Use these in place of date selected in filter

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@EaglesTony , Just add any filter on date using the filter option on column down arrow

 

and then later go and replace those date with

List.Min(Table1[Date]) 

 

List.Max(Table1[Date])

 

Use these in place of date selected in filter

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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