Forum Discussion

IPGeorgiev's avatar
IPGeorgiev
Helper III
5 years ago
Solved

Get only specific data from each file

Hi All,

 

I am facing the following issues I cant solve.

 

I have a folder with multiple excel files which have the same data but for different data ranges. So as a data source I have the folder.

 

Each file has data for the previous 5 to 14 days. What I want is to have Power Query take only the data for yesterday (List.Max[Date])

 

Heres what I have, but it doesnt do the job:

 

 

 

Any suggestions?

 

Many thanks in advance!

 

Best regards,

ivan 

 

3 Replies

  • FrankAT's avatar
    FrankAT
    Community Champion

    Hi IPGeorgiev 

    create a query that holds the date of yesterday (see figure). Check your import data and filter it against this query.

     

     

    Don't bother about the date format it's localized.

    With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
    FrankAT (Proud to be a Datanaut)