Home and Learn: Power BI 2023


Add a Chart Visual in Power BI

In the previous two lessons, you opened a CSV dataset and created a Table visual from the data. In this lesson, you'll learn how to add a chart to your dashboard.

 

Power BI 2023 Charts

Click anywhere in a white area on your dashboard. This will deselect the current visual. If you don't deselect a visual then, when you try to add a new one, it will just replace the selected visual. In other words, if you have the table selected and try to insert a chart, the chart will replace the table.

So, insert a new chart visual. Select the Clustered Column Chart from the Insert grid at the top of Power BI (on the Home ribbon):

Arrow pointing to the chart item on the Insert ribbon in Power BI 2023.

The Clustered Column Chart is the fourth one along from the left, highlighted by the red arrow, in the image above. You should see an empty chart appear on your dashboard:

The default chart visual in Power BI 2023.

(You can move a visual around by pressing and holding down your left mouse button on the visual. Keep it held down and move it to a new location.)

To add bars to your chart, from the flyout, click the Add Data button under the X-Axis heading. Then select the Pet item again:

Adding data for the X-Axis in a Power BI 2023 chart

Click the Add Data button for the Y-axis and select the OwnerAge item:

Adding data for the Y-Axis in a Power BI 2023 chart

Your chart will then spring to life and look like this:

Chart with bars in Power BI.

Again, though, Power BI is using Sum to add up all the age totals of the pets. Change it to Average, just like you did with the table. It should look like this:

Power BI chart using averages instead of sum.

(Incidentally, the icon under the data flyout is for formatting. We'll do chart formatting in another lesson.)

Now click on any of the bars in your chart. Watch what happens to the tables. They will update to show the information for just that selected bar:

A selected bar updating the Power BI table.

To get all the values back, click a white area of the chart:

Restoring all the bars and table data in the chart

And that's it for this quick lesson on Power BI charts. If you enjoyed it, and would like to learn more, click the next lesson below where you'll learn about the card visual.

<--Back to the Power BI Contents Page

 


Email us: enquiry at homeandlearn.co.uk