Power BI Scorecard Examples

By:   |   Updated: 2019-03-11   |   Comments (6)   |   Related: > Power BI Charts


Problem

In any business process, analytical reporting plays a vital role to make data-driven decisions based on analytics and evaluation of a business strategy. Reporting and scorecards, with their drill-down abilities, go side-by-side in determining how a business is doing overall. Scorecards are commonly used by top management to assess performance and summary of business statistics. Sometimes, when there is a requirement to deal with large datasets, with too much detailed information that needs to be presented, it is always a good practice to show visualizations with details as precisely as possible in the overview display. If we show graphs, charts, tables, etc. in the same scorecard to have a one-page overview of business improvement goals, the screen space is not efficiently used in this case and can get crowded. We want something that would provide a compact view that is able to give immediate details about the overall structure. The expectation is to have visualizations with summary and details of the big dataset in one grid with a simple implementation.  Let's see how can we address this problem.

Solution

VitaraCharts-MicroChart is one of the best approaches for analytical reporting especially required by executive management. With MicroCharts, we can quickly build scorecards and dashboards. It supports a comprehensive technique that is easy to use and works with more than one metric in a compact grid design. We will show compact visual representation of metrics in different chart formats available with MicroCharts.

In order to get started, we need to ensure we have Power BI Desktop installed. It is free to download from here.

Let's move forward and see how this custom visual can be used.

Importing Custom Visuals - Vitaracharts - Microchart in Power BI Desktop

To import this visual in Power BI Desktop, we will have to download it first. You can download it from here.

Once it is downloaded, open Power BI Desktop and click the ellipses from the bottom of the Visualizations pane. Select Import from file as shown below.

Importing custom visual in Power BI Desktop

You will get this screen then click the Import button.

Click Import button to import custom visual in Power BI Desktop

Navigate to newly downloaded custom visual file vitaracharts-microchart.1.0.2.0.pbiviz and click Open. You will see the below screen after opening the file.

Click OK to import the custom visual in Power BI Desktop

Once you click OK, the visual VitaraCharts – MicroChart is imported successfully in the report and a custom visual icon is added on the bottom of the visualizations pane. Hover over this icon and you can see the tooltip VitaraCharts – MicroChart.

VitaraChart - MicroChart visual is imported in Power BI Desktop

Getting Sample Data to Work with MicroCharts and Power BI

Click Get Data on the Home ribbon, select Excel and press the Connect button.

Connecting to data in Excel file in Power BI Desktop

We will navigate to a sample Excel file that we created to demonstrate the functionality of VitaraCharts in this tip. You can download this Excel file from here. Click on the SalesPerYear file and select Edit button. You can see the preview of this spreadsheet on the right side of this navigator screen.

Select an excel file and click edit button in Power BI Desktop

This will open the Power Query Editor window, click the ActualSales column and specify Fixed decimal number as the data type in the Data Type drop down in the top of the query editor. Basically, we intend to select Decimal(19,4) as the data type of this column to avoid rounding of its values.

Changing data type in Power Query Editor in Power BI Desktop

Click on the Replace current button to implement this data conversion.

Selecting data type of column in Power BI Desktop

Click on Close & Apply on the left top corner of Power Query Editor to import these changes into the Power BI report.

Saving changes to Power BI report

Once these changes are saved, data in the Excel file is loaded in the Fields pane. In order to work with MicroCharts, let's bring this visual into the report. To do so, simply click on this custom visual icon on the bottom of the visualization pane, right next to the ellipses. You can expand or resize the chart by grabbing its bottom right corner and dragging towards the right in the report.

VitaraCharts-MicroChart in Power BI Desktop in Power BI Desktop

Working Example using MicroCharts in Power BI Desktop

MicroCharts allows the use of one field as Category Axis and one field for trending. Select Microchart on the report and drag and drop the attribute Country on the Category Axis and attribute Calendar Year on Trend By on the Visualizations pane. Next, we will bring column ActualSales to the Value section. Once, this ActualSales column is added, the sales trend for all countries is seen in the report.

Adding fields to the MicroCharts in Power BI Desktop

Line Chart in MicroCharts with Power BI

Expand the Country to see Sales per year from 2011 through 2018 for the country. By default, a Line Chart is shown as the trendline Charts and you can hover over this chart to look at the details.

Working on MicroCharts in Power BI Desktop

Basically, MicroCharts supports three Trendline Charts (Line, Bar and Bullet Chart) and many more formatting options are available with each type of these charts. Hover over the header column ActualSales and click on the three lines icon next to it. Choose Trendline Charts and hit More Options… as shown below.

Line Chart in MicroCharts in Power BI Desktop

We can format Line Chart Trend for the given field and for different color combinations like line color and colors for different spots.

Formatting Line Chart Trend in Power BI Desktop

Bar Chart in MicroCharts in Power BI

We can also select Bar Chart as Trendline Charts and choose color options to show it on the report. One such example is shown below.

Bar Chart Trend in MicroCharts in Power BI Desktop

Now coming back to the data that we imported into the Power BI designer, we have a few more fields like TargetSales, Green Rag, Yellow Rag and Red Rag in the table. We intend to show a scorecard type of report here that compares a country's actual sales (ActualSales) against projected sales (TargetSales) using simple visualizations. Also, we would like to evaluate how a country is doing over a period of time using RAGs (Red, Amber and Green). We are using arbitrary values in the RAG columns for the sake of simplicity, generally they are calculated based on several key performance indicators and vary from project to project.

Bullet Chart in MicroCharts in Power BI

It's time to introduce a Bullet Chart to the report and see how it is implemented with the data we have on hand. Let's quickly bring in columns (TargetSales, Green Rag, Amber Rag and Red Rag) into the report by checking them on the Fields pane.

Using Rags in the MicroChart in Power BI Desktop

We want to measure a country's sales performance against TargetSales with different RAG information and will be displaying it using a Bullet Chart visualization. If you notice, if we drag and drop ActualSales a second time in the Value section, MicroCharts will not allow us to use this column more than once in the chart, so we will have to add one new column (named ActualSalesPerformance) to create a Bullet Chart. This new column will have the save value as ActualSales. Right click on the table name under the Fields list and choose New column.

Adding New column to the report in Power BI Desktop

Provide ActualSalesPerformance as the name for this new column and assign the value as ActualSales. Click the tick mark icon that will commit these new column changes into the table.

Assigning value to newly added column in Power BI Desktop

Once, this new column is added, it can be seen under the Fields list. Let's drag and drop it into the Value section to see this on the report as well. Since, we don't need RAGs columns as separate column headers in the report and we are going to use them in the Bullet Chart, we will go ahead and hide them. To do so, hover over the Red Rag column header, click on three black lines next to the column header name, and select Hide Column option. We will do this for all the three RAGs columns.

Hiding column in MicroCharts in Power BI Desktop

In case you want to bring the column back to the report or you accidently hid the column and want to show it again, there is a way to do so. Right click on the main column header section, select Show/Hide Columns and you can see the list of all the columns that are shown or hidden on the report. Select the column(s) that you want to display in the report.

Show/Hide Columns in MicroCharts in Power BI Desktop

Let's switch to creating a Bullet Chart visual now. Go to ActualSalesPerformance column header and click the three lines on the right side of the column and choose Trendline Charts and select Bullet Chart.

Selecting Bullet Chart visual in Power BI Desktop

On selecting the Bullet Chart option, it will make this column ActualSalesPerformance as Bullet Chart as shown below. As of now, it is showing the Bullet Chart visual based on the default/random values. Let's go ahead and design this chart more suitably.

Bullet Chart in MicroCharts in Power BI Desktop

In order to configure the Bullet Chart appropriately, hit three lines on the top right corner of the column header once again, choose Trendline Charts and select More options… and a small configuration screen popped up with numerous options to select column name, Chart Type, set color pattern, metric name and aggregate values.

Configuring Bullet Chart visual in Power BI Desktop

We will assign TargetSales as the Target measure and associate Green Rag, Amber Rag, Red Rag with Band 1, 2 and 3 respectively. Also, we will adjust the colors for the Bands and aggregations as shown below. Feel free to alter the configurations and see how the outcome of the chart varies.

Bullet Chart Configuration in Power BI Desktop

When pressing the Apply button, you can see the changes made to the Bullet Chart in the background. Close the pop-up to get back to the report. The report looks like the example below with Line Chart visual on ActualSales & TargetSales and Bullet Chart for the ActualSalesPerformance attribute.

Line Chart and Bullet Chart in VitaraCharts in Power BI Desktop

Click on the + sign next to Australia to see the detail view of the report as shown below. You can also hover over the Chart to see the values.

Line Chart and Bullet Chart using VitaraCharts in Power BI Desktop

Aggregated Value Columns in the MicroCharts in Power BI

Let's say we want to show TargetSales as a single value instead of displaying as a Line Chart. This can be done very quickly by the pressing the three lines next to the column header TargetSales and selecting Value Aggregation. We are selecting Max as the aggregate number here.

Assiging aggregated value to a column in MicroCharts in Power BI Desktop

We can see a single value (Max) calculated at individual levels by drilling down on each country.

Single Aggregated value being assigned to TargetSales in Power BI Desktop

Grand Totals, AutoSize and Grid Theme in MicroCharts with Power BI

With this, we come to the last leg of this tip. Once any kind of value aggregation is implemented on a column, MicroCharts provides Grand Totals by default at the bottom of the report. You can choose not to show the Grand Totals by right clicking the main column header section and selecting the Hide option under Grand Totals.

Show/Hide Grand Totals in MicroCharts in Power BI Desktop

MicroCharts also allows us to auto size the scope and dimensions of the chart. We can determine from two given options, Fit to Content and Fit to Grid Width. With size adjusting to content, it will resize the chart based on the content we have in the columns and with size adjusting to grid width, it will expand it to all the way to the size of the grid.

AutoSizing MicroCharts in Power BI Desktop

Additionally, these charts provide users an option to change the Grid Theme. You can set a theme of your choice by right clicking the main header section and selecting the Grid Theme option and selecting themes from the given list. You can also customize a theme by using the Edit Theme choice.

Choosing Grid Theme for the MicroCharts in Power BI Desktop

Summary

This tip demonstrated a compact grid visualization to provide basic knowledge of essentially how VitaraCharts work in Power BI Desktop. Also, we observed how each attribute in the Microchart can be presented as a different visual like Line, Bar and Bullet Charts with various formats and aggregation selections.

Next Steps
  • Try importing the VitaraCharts-MicroCharts visual in Power BI Desktop and implement visualizations on various metrics on the report.
  • For more information on Power BI, refer to these other Power BI Tips.

Learn more about Power BI in this 3 hour training course.


Click here to start the Power BI course






sql server categories

sql server webinars

subscribe to mssqltips

sql server tutorials

sql server white papers

next tip



About the author
MSSQLTips author Gauri Mahajan Gauri Mahajan is very passionate about SQL Server Reporting Services, R, Python, Power BI, the Database engine, etc. and enjoys writing.

This author pledges the content of this article is based on professional experience and not AI generated.

View all my tips


Article Last Updated: 2019-03-11

Comments For This Article




Thursday, February 6, 2020 - 7:07:36 AM - Capybara Back To Top (84211)

Hi! Could you please help with the issue: the visual is not responsive to the date slicer (for slicer i use exactly the same date column as for visual)?! I mean when I choose the date without data, nothing is displayed, it's ok. Then I choose date with data, data is displayed. Super! Then I choose another date with another (I'm sure) data and nothing changes. Also if I create this visual before creating a slicer it doesn't respond to slicer changes... Are there any tips to fix this? Cause I had spent a lot of time for this design and then failed the simpliest testing. Thank you!


Tuesday, December 3, 2019 - 7:26:40 AM - Gauri Back To Top (83263)

Hi Ramnath,

If you notice in the post, we are trending the data for each Country based on the Calender Year, so we are plotting our data with respect to the Year here. In regards to your query to display one-level down Microcharts, since we cannot use a column more than once in the chart, you can create one new column that has the same value as Calender Year and use this field to have the visualization. 

Let me know if you have any further questions.

Thanks.


Thursday, November 28, 2019 - 6:55:40 AM - Ramnath Divakaran Back To Top (83214)

Hi,

Is there a way to have similar charts for 1 level below like year under Country?

Regards, Ramnath


Tuesday, May 14, 2019 - 7:51:17 PM - Gauri Back To Top (80077)

Thanks Abhijith for stopping by this post. As far as I could recall, Microcharts can be filtered with slicers or other visuals like donut, pie charts etc. too. For instance, you can set Page level filters under Fields pane to all the visuals including Microcharts on the Power BI report canvas and filter your dataset. Let me know if you have more concerns on this.

- Gauri


Saturday, May 11, 2019 - 12:03:09 AM - Abhijith DSouza Back To Top (80048)

Thank you, this is a great post and works well for my scenario ! I do find that the microcharts cannot be filtered by other visuals or slicers. Is this the case with you as well ?


Monday, March 11, 2019 - 9:46:27 PM - Abie Back To Top (79263)

 Wow!















get free sql tips
agree to terms