Microsoft’s Power BI is a data analytics tool that can be used for interactive data visualization, using data from various sources such as relational and NoSQL databases, flat files, web servers, etc.

Power BI visualizations are easy to plot and come with a variety of formatting options. Power BI comes in two flavors: Power BI Desktop and Power BI Service, which is a cloud-based Power BI Interface. See this article on Power BI licenses for more details.

In this article, you will learn how to plot Power BI Desktop visualizations and how to format them.

You will study the following formatting options:

Note: You can download Power BI Desktop using this link.

Creating a Power BI Desktop Visualization

Before you apply formatting to a Power BI Desktop Visualization, you have to create a visualization.

Once you run the Power BI Desktop application on your computer, you should see the following dashboard. The first thing you need to do is to import the dataset.

On the above dashboard, click on the “Get Data” tab from the top menu. In the dropdown list that appears, click on “Web”. You should see the following dialogue. In the URL field, enter the following URL: https://raw.githubusercontent.com/aniruddhgoteti/Bank-Customer-Churn-Modelling/master/data.csv.csv. Click the “OK” button.

You will see the following window. Here you can see some of the columns in the dataset. You can scroll horizontally to see the remaining columns. The dataset basically contains information about bank customers.

The data for the “Exited” column of the dataset was recorded 6 months after the data had been recorded for the rest of the columns. The “Exited” column basically shows the information based on customers from 6 months ago, regardless of whether or not the customers left the bank 6 months after that. A value of 1 in the “Exited” corresponds to the case where the customer left the bank, while “0” belongs to the customers who stayed.

Click the “Load” button to load the data into your Power BI application without manipulating the data.

You should see the following window. Here, on the right side, you can see a pane named “Fields” where you can see all your column names.

On the extreme left, you can see three options. The option at the top, which is highlighted in yellow, is named “Report” and is used to open reports view. Click on it.

To create a new visualization, you have to select a visualization from the “Visualizations” window, as shown in the following screen. For the sake of this article, we will create a “Clustered column chart”, a “Pie chart”, and a “Donut chart”. First, click the “Clustered column chart”, which is highlighted in the following screenshot.

Next, drag the “Exited” column from fields into the Value field. For the Legend field, drag and add the “Gender” column. Finally, for the Axis field, add “HasCrCard”, as shown in the following screenshot.

You should see the following graph created in the Report view. The plot contains columns that show the total count for the male and female customers who exited and who stayed in the bank. The columns are further grouped into two parts: those with credit cards and those without credit cards.

From the following graph, you can see that for both customers with and without credit cards, the number of female customers who left the bank is larger compared to male customers.

Let’s add another plot. This time, a pie chart. Click on the “Pie chart” option from the visualizations. Add a “Balance” column to the Values field, and a “Geography” column to the “Legend” field. You will see a “Pie” chart that shows the total balance of the customers belonging to different geographical locations.

Now you should see the two following visualizations in the reports window.

If you click on the area for the French customer in the Pie chart (the one defined by yellow square), the column chart is updated to highlight the values only for the French customer. The rest of the chart is made semi-transparent.

Formatting Power BI Desktop Visualizations

We created Power BI desktop visualizations in the previous section. Let’s now see how to format them.

To open formatting options, click on the graph that you want to format. Below the Visualizations options, you should see three options. The option in the middle, which is highlighted in yellow in the following screenshot, is the “Format” option. Click on it.

You should see formatting options that appear as shown in the following screenshot.

Changing Colors

Let’s first change the color of the clustered column chart. Click the chart and then click the “Format” option. Next, click “Data colors”. Since you only have two types of column charts, one for male and one for female, you will see two color boxes: one for each column type, as shown below.

Change the color as per your liking. The following figure shows the updated colors for the clustered column chart.

In the same way, you can change colors for the Pie chart, as shown below.

#microsoft power bi #data formatting #power bi #power bi reports #visualization

Formatting Data in Power BI Desktop Visualizations
1.25 GEEK