Power BI | Dynamic connections exercise | Use parameters to decide which Excel workbook playlist to load

This exercise is provided to allow potential course delegates to choose the correct Wise Owl Microsoft training course, and may not be reproduced in whole or in part in any format without the prior written consent of Wise Owl.

Software ==> Power BI  (111 exercises)
Version ==> Latest update
Topic ==> Dynamic connections  (2 exercises)
Level ==> Average difficulty
Subject ==> Power BI training
Before you can do this exercise, you'll need to download and unzip this file (if you have any problems doing this, click here for help).

You need a minimum screen resolution of about 700 pixels width to see our exercises. This is because they contain diagrams and tables which would not be viewable easily on a mobile phone or small laptop. Please use a larger tablet, notebook or desktop computer, or change your screen resolution settings.

Create a new Power BI Desktop file, and load data from the Anyone.xlsx workbook in the above folder.  After a bit of tidying, you should be able to create this table:

Playlist for anyone

A playlist surely acceptable to anyone?


In Power Query Editor, create two parameters:

Name Contents
FilePath The folder path to where your Excel files are stored (so you can choose to move the workbooks containing your data to any folder, and your report will still work).
Playlist The name of the Excel workbook to load (including file extension).

Note that the rest of this exercise only works because the 3 workbooks in the above folder have got identical worksheet names and column headings.

Now edit the settings for your first (Source) query step so that it loads data from a file whose path and name are contained in your parameters:

Advanced load options

You'll need to choose Advanced, as here, and then complete the rest of the dialog box.


Set the value of your two parameters to the path and name of the Toddlers workbook.  When you go back to your report, you should see an altogether classier playlist:

Toddler playlist

The purple dinosaur wows them every time with this little number.


Save this workbook as Wiggle room, then close it down. 

You can unzip this file to see the answers to this exercise, although please remember this is for your personal use only.
This page has 0 threads Add post