MIP Logo

How to create Parameters in Power BI?

This post was originally published on The Data School blog between 2018 and July 2025, before our program was renamed to MIP’s Analytics Career Accelerator. References throughout this article to “The Data School” or “DS” all refer to what is now MIP’s Analytics Career Accelerator. The program, its people, and its commitment to launching outstanding analytics careers remain the same – just under a new name.

If you are having trouble viewing this article, please report it here

1. Introduction

This week’s challenge requires us to build an interactive dashboard using parameters to select between key metrics in Power BI. The data contains performance measures of two baseball batters (Cabrera and Pujols) including the number of games played, hits per game, hits, home runs, and at bat per home run.

 

2. The Solution

First, let’s create a “Card” visualisation to display the key metrics for the two batters, as summarised in the screenshot.

Copy and paste the card and filter the data to the batter Pujols and adjust the format.

Now let’s create the parameter. To do this, select the Modelling tab, click on New Parameter, and select the appropriate fields as summarised below.

Click on the parameter, go to the format visual, select visual, slicer settings, and select the tile as the style. Rearrange the parameter to be displayed on top of the screen as shown below.

Now let’s create a line chart to observe the trends in these metrics by player and year. Select the line chart and choose the following setting as summarised in the screenshot, with the key step in placing the created Parameter in the Y-axis.

Now we have the interactive dashboard, where the user can select the key metrics to explore which will be displayed on the line chart.

Share this post