Power BI Desktop | Parameters 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.

The answer to the exercise will be included and explained if you attend the course listed below!

Software ==> Power BI Desktop  (29 exercises)
Version ==> Latest update
Topic ==> Parameters  (2 exercises)
Level ==> Harder than average
Course ==> Advanced Power BI Desktop
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 BI Desktop, create two parameters:

Name Contents
FilePath The folder path to where your Excel files are stored
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. 

This page has 0 threads Add post