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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
KriZo
Resolver II
Resolver II

Training file for Wide World Importers

Heya, 

Does anyone know about a pbit file for Wide World Importers database. 

I need it for internal training in Query optimization, specifically focusing on Query Folding. 
So ideally the file has some bad but realistic applied steps, that doesn't fold but where moving around, doing other stuff etc. would improve and make as much of the query fold. 

 

Does such a file exists? I tried using ChatGPT, but the applied steps it creates are just unrealistic, like changing Qty to Text in transactions table, doubt that would ever happen in a real life setting. 

 

___________________________________________________________________________________________________________________________

Did I solve your question? Mark my post as a solution! Kudos are appreciated as well as LinkedIn endorsements.

 

174857.png

2 REPLIES 2
v-heq-msft
Community Support
Community Support

Hi @KriZo ,

Based on your description, the goal of query folding in the first place is to offload or push most of the work of query evaluation to a data source that can compute query transformations.
The query folding mechanism accomplishes this goal by converting the M script into a language that the data source can interpret and execute. It then pushes the evaluation to the data source and sends the results of that evaluation to Power Query.
So, in order to do more query folding, you can delegate as much of the processing to the data source as possible. If you can't collapse all the steps of a Power Query query, look for steps that prevent the query from collapsing. Whenever possible, advance subsequent steps in order to include them in query folding.
Meanwhile, with native SQL queries, you can use the Value.NativeQuery function to do this

Value.NativeQuery - PowerQuery M | Microsoft Learn

You can refer to these documents
The first is an introduction and optimization guide for query folding in Power Query

Query folding guidance in Power BI Desktop - Power BI | Microsoft Learn

Understanding query evaluation and query folding in Power Query - Power Query | Microsoft Learn

Then there are examples for the three query folding cases,It uses the Wide World Importers database you mentioned. 

Query folding examples in Power Query - Power Query | Microsoft Learn

Lastly, Query folding indicators.The query folding indicators feature is available only for Power Query Online.Look up the folding indicator to help you understand the steps for folding or not folding.

Query folding indicators in Power Query - Power Query | Microsoft Learn

 

Best regards,
Albert He


If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

 

Thanks for the input @v-heq-msft 

 

But I am personally fully aware of what and how query folding works, i just need a file that's bad so i can train others, with examples. And I was thinking I could use Wide World Importers demo database, cause then we each can have a local installed demo, a bad pbit file and we can have some interactive training me and my coworkers. 

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.