Forum Discussion

Basbitter's avatar
Basbitter
New Member
6 years ago
Solved

Power Query max date from other table

Hi All,   What I want is to create a paramater in PowerQuery with the max date of a certain column in one of the powerQuerytables. This way I can use that parameter to filter out only the dates aft...
  • edhans's avatar
    6 years ago

    Hi, I do exactly this in creating date tables in Power Query. Basically you create a reference to your original table, click on the Date column, then in the Transform tab, select the Date dropdown and select Earliest or Latest. It creates a scalar value.

     

    You cannot use it as a parameter as a parameter dropdown, but if you create a filter, just tell the filter to day "date > Jan 1, 2020" then after the filter is created, change the #date(2020,1,1) to varStartdate (or whatever you called the value.

     

    See my full article on the date table here, which has info on how to create these dynamic values to use in other places.