Read our blogs, tips and tutorials
Try our exercises or test your skills
Watch our tutorial videos or shorts
Take a self-paced course
Read our recent newsletters
License our courseware
Book expert consultancy
Buy our publications
Get help in using our site
546 attributed reviews in the last 3 years
Refreshingly small course sizes
Outstandingly good courseware
Whizzy online classrooms
Wise Owl trainers only (no freelancers)
Almost no cancellations
We have genuine integrity
We invoice after training
Review 30+ years of Wise Owl
View our top 100 clients
Search our website
We also send out useful tips in a monthly email newsletter ...
Software ==> | Power BI (160 exercises) |
Topic ==> | Dropdown parameters (1 exercise) |
Level ==> | Average difficulty |
Subject ==> | Power BI training |
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.
Rather than give an input box for parameters, we instead want to create a drop down for filtering. Like this in fact:
Choosing a treatment will filter the data brought through into the data model.
Load the data from the Excel sheet in the above folder, removing nulls and promoting headers to get something like this:
The first couple of rows and first 3 columns of your final query.
Before we create our drop-down parameter we first need to create the drop down list for it. To do this, start by right-clicking on the Usual Treatment column:
At the bottom of the list choose Add as New Query.
This will create an additional query. Remove any duplicates from this list of usual treatments, and sort it:
This list will contain each value multiple times, so right-click on it and choose Remove Duplicates (then sort the items into ascending order, as here).
You now have a query to use for populating a drop down. Create your parameter:
Irritatingly you still must choose an initial Current Value (and even more annoyingly it doesn't even give you the drop down you made to help you choose!).
Filter your data to show only customers who have had the specified treatment:
Only show treatments which match the one set as the parameter value.
Try changing the value of your parameter to verify that it changes the rows returned from your query, then save your report as Dropping usual treatments.
You can find other training resources for the subject of this exercise here:
Kingsmoor House
Railway Street
GLOSSOP
SK13 2AA
Landmark Offices
99 Bishopsgate
LONDON
EC2M 3XD
Holiday Inn
25 Aytoun Street
MANCHESTER
M1 3AE
© Wise Owl Business Solutions Ltd 2024. All Rights Reserved.