Creating a Bubble Chart in Power BI
In this blog, we build a bubble chart by making use of Power BI’s scatter chart. Thereafter we will implement clustering to get a quick overview of the structures within the data. Scatter charts show the correlation between two variables while clustering can assist by grouping your data into different subsets that are less detailed. Furthermore, the bubbles in a scatter chart, are simply a third data dimension showing the size of a specific data point in the scatter chart.
For the purposes of this example, we will look at Sales data from the Adventure Works dataset. The aim is to answer some questions related to profit and revenue. Such as, what products have high profit but low revenue?
So, without further ado, let’s jump into the steps and look at the output:
(Step 1) Select the Scatter chart visual from Power BI and drag in the required field visuals
This step is pretty straightforward, we will be looking at Sales data so we need to have product level detail in the chart. We have our revenue and profit on our axes, and the cost of the product will be the size of the bubble.
(Step 2) Let Power BI do the clustering for you
Once you have a scatter chart, you can simply click the ellipsis and select the “Automatically find clusters”
(Step 3) Specify the number of clusters for your visual
After selecting the “Automatically find clusters” option, you will see a pop-up window. This is where you can specify the number of clusters for the visual. You can also change the default Description for this field.
The new fields list will now have a Legend that contains the ProductName(clusters) that result from the automatic clustering.
Your final visual with the clustering should look something like this (depending on your data):
Interpreting the Clusters:
The data points in this cluster are coloured green and contain products that have relatively greater revenue and a relatively average profit margin.
The data points in this cluster are coloured black and contain products that have the lowest revenue, but the profit margin is quite dispersed. This cluster should be investigated in more detail. Because data points where you have very high profit and low revenue, mean low cost and high revenue. Which is good for the company.
The data points in this cluster are coloured red and contain products that have high revenue and high profits.
The data points in this cluster are coloured yellow and contain products that have lower revenue and average profit margins.
(Step 4 (Optional) ) Add a column chart from the clusters field to view individual cluster detail
You can add a column chart that will allow you to view your individual clusters. To do this, select the following fields for your column chart:
The resultant output will be a Bubble chart that will change based on the column that you select from the column chart
For further detail, you can probably also create a table and select your clusters to see the exact products that fall in each cluster.
Clustering in Power BI by using a Bubble chart is a very effective visual indicator of how your data is grouped together. In the case of Sales analysis, it can give good insights into the performance of your products.
For other interesting blogs, you can also visit our blog site at: https://databear.com/blog/
Official Microsoft information pertaining to this topic: https://docs.microsoft.com/en-us/power-bi/visuals/power-bi-visualization-scatter
Our training courses: https://databear.com/power-bi-training/
Leave A Comment