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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
ValeriaBreve
Post Partisan
Post Partisan

Looping through folder files

Hello,

I am looking for guidance here...

I have a folder with actual and forecast data files, for the same products, each one containing the same columns but one will be stamped Aug, the other one Sept, etc with revised actual/forecast figures.

ValeriaBreve_0-1665755223627.png

 

I need establish forecast accuracy and stability, so read the same forecast (e.g. Product A for Jan 2023) on every file and compare them. (n, n-1, n-2, n-3, etc)

 

Now, from PowerQuery I am able to get to the folder, rank the files, but then? What's best? Is it OK to have 1 query per file with the related file creation date and then make the relationships in the report? Or is there another way of handling this type of situation?

 

Thanks a lot!

Kind regards

Valeria 

 

1 ACCEPTED SOLUTION
ImkeF
Community Champion
Community Champion

Hi @ValeriaBreve ,
you should keep them in one query and use the Index column in your DAX measures to distinguish between them. 
Use the Combine Binaries method to create the consolidated query: New Combine Binaries Experience - Excelguru

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

View solution in original post

3 REPLIES 3
ImkeF
Community Champion
Community Champion

You are welcome @ValeriaBreve  🙂

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

ValeriaBreve
Post Partisan
Post Partisan

Thank you so much Imke!!!!!!! It is the first time I have this type of data, I was more used to production data, so thanks for pointing me to the right direction! 

ImkeF
Community Champion
Community Champion

Hi @ValeriaBreve ,
you should keep them in one query and use the Index column in your DAX measures to distinguish between them. 
Use the Combine Binaries method to create the consolidated query: New Combine Binaries Experience - Excelguru

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.