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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

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