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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
cflynn_29
Helper I
Helper I

Filter Date Table by "Other Table" to be less than or equal to the Max Date of the "Other Table

Hi.

I have a Date Table which goes from 1990-2050 and i have another table of of values and dates "Other Table" which has a MaxYear of 2020 I've run the MaxDate in Power Query to get that Max date. This is because as values are added to  more years 2021..2022...etc i want it to automatically to update that MaxDate.

 

I want to be able to filter the Date Table up to the MaxDate in the "Other Table" which right now is 2020, so between 1990-2020.

 

Is there any way to do this?

1 ACCEPTED SOLUTION
AntrikshSharma
Community Champion
Community Champion

@cflynn_29 In th date table you can create a new step Table.SelectRows ( PreviousStep, each [Year] <= List.Max ( OtherTable[Year] ) ) 

View solution in original post

1 REPLY 1
AntrikshSharma
Community Champion
Community Champion

@cflynn_29 In th date table you can create a new step Table.SelectRows ( PreviousStep, each [Year] <= List.Max ( OtherTable[Year] ) ) 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors