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
IPGeorgiev
Helper III
Helper III

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:

 

IPGeorgiev_0-1601978403274.png

 

IPGeorgiev_1-1601978480827.png

 

Any suggestions?

 

Many thanks in advance!

 

Best regards,

ivan 

 

1 ACCEPTED SOLUTION

Quick update:

 

I have managed to resolve this by following this:

 

https://www.poweredsolutions.co/2019/02/26/parameters-and-functions-in-power-bi-power-query-combine-...

 

and using the transformations from the first post.

 

View solution in original post

3 REPLIES 3
FrankAT
Community Champion
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.

 

06-10-_2020_13-33-18.png

 

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)

Hi @FrankAT ,

 

many thanks for the response!

 

Not sure if I got it wrong or didnt summarize my request correctly.

 

If I go with this solution this will work for the file I have uploaded today, however if it tries to filter a file from the 2nd of October (there we will have data only until the 1st of October) this wont work , I assume?

 

Many thanks!

 

Best regards,
Ivan 

Quick update:

 

I have managed to resolve this by following this:

 

https://www.poweredsolutions.co/2019/02/26/parameters-and-functions-in-power-bi-power-query-combine-...

 

and using the transformations from the first post.

 

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.