Dashboard Tutorial
Dashboard Tutorial
Contents
Introduction.........................................................................................................................3
Purpose........................................................................................................................3
Excel Dashboards..............................................................................................................4
Data Preparation .........................................................................................................5
Launch Dashboard Software and Connect ...............................................................6
Create Dashboard and Table portlet .........................................................................8
Add Calculations .......................................................................................................12
Add Date Hierarchy Columns...................................................................................14
Create Year and Category Parameters...................................................................17
Create Date Filter and Parameters..........................................................................20
Create Bar Chart .......................................................................................................25
Create Pie Chart........................................................................................................32
Finish the Dashboard Design ...................................................................................36
Share the Dashboard with other users ....................................................................46
Appendix...........................................................................................................................49
Define Named Ranges in Excel...............................................................................49
Introduction
Purpose
Complete guide on building dashboards using Excel, Access and any other
Database as the data source.
The tutorial will start with instructions on building a dashboard using Excel
Files.
The purpose is not just to build any dashboard but a good and useful
dashboard that is modular in design and easy to maintain and scale it.
Excel Dashboards
Lot of the online tutorials and Dashboard e-books teach you to build
dashboard in Excel file. They provide you with templates, you fill in the
information and build the dashboard using Excel charting techniques.
If you use Excel Templates for your real dashboarding needs then you may
end up with any of the below problems.
Undocumented Macros
How? – Use Excel only for storing your data. Nothing more. Do not
build any visualization in the same place where your Data resides.
Increased productivity – When you have fresh data just refresh the
dashboard, no redevelopment needed
Save Time - Just build the dashboard presentation layer only once
and automate the refreshes.
Data Preparation
There are certain rules to be followed when you get the data in Excel files.
First row is
column names
Provide a name
to the
worksheet,
Avoid white
space in the
name. Replace
blank character
with “_”
If you inherit an Excel file with pivots and charts all over the places then try
to copy just the raw data in another worksheet in the same file or create
another file. If it is not possible to keep the first row as the column names
then you could define “named ranges”. In the dashboard designer it is
possible to access the data using Cell ranges but then future updates to the
Excel file could break the dashboard, for e.g if the data goes beyond the
Cell range.
NOTE: Make sure column names do not have any funky characters.
Just keep it to simple alpha-numeric column names.
Launch InfoCaptor Dashboard Software on your Desktop and click on the connect button
on the toolbar
The connection wizard has items that simplify connecting to different data sources.
Once you click, it automatically selects the appropriate Driver for you.
Click on the “Access/Excel File” button. Select the order_raw.xls file. It populates the connect name
for you. But you can change this name. Connect Name is for your reference
NOTE: Make sure that the order_raw.xls file is not open in MS Excel. The Excel file is locked
once you connect to it. If the file is open in MS Excel, you may get connected but not able to
query and may get unpredictable results.
Upon successful connection, the connection wizard disappears and a new action wizard
pops up.
Once connected, it will show you a list of action items to pick from
Click OK.
It will present you with a table browser showing all the available worksheets as tables
In this example file, we just have one worksheet named “order_data”. Note how, it attaches a $ sign
at the end, which indicates this is an Excel Worksheet. So make sure you do not have any dollar
sign when naming the Excel worksheet and no other special characters and no white or blank
characters. Replace blank characters with “_” underscore character
Click on the “* alias=ord” item at the very top to select all the items
You may change the name of any column or any other property such as sort and group by.
We will use Qlet as our basic building block for the following exercise.
Add Calculations
Since this is a raw extract of actual transactions, it may need to add additional calculations and
columns to create useful metrics.
For e.g in our sample file, we have the “Unit Price” and “Quantity” columns. We will create
calculation to derive the “Amount” column
Right click on the Quantity Column, Navigate to Popup Menu Create Create Calculation
3. Click on Quantity
As you see, the “Amount” column is added right next to the Quantity column
Most of the data, has some form of date information. Now date is very granular information. Very
often, to generate trending information, you need to derive year and month columns.
In the dashboard designer, you can easily generate Date hierarchy columns for any kind of
reporting.
In our example, we have order date, so we will generate the Year, Quarter, Month, Day , Week and
other flavors of the same information for better representation.
Right click on the “Order Date” column and navigate to Create “Add Year, Quarter, Months
column
Click on “Add” and it will add the following columns to the right of the primary column “Order Date”
You may not need all of the date derived columns but it is worth understanding what they stand for.
The derive columns, have a prefix of “Or” which are the first two letters of the primary date column
“Order Date”. The remaining part explains the actual part of the date.
1. Year : represents the year component of the date
2. Mth N : represents the numerical month.
3. Mth Disp: represents the month number but padded with zero on the left
4. Mth NN: represents month number and 3 letter month name
5. Yr Mth : represents the year and month number
6. Qtr: represents the quarter number
7. Week : represents the week of year
8. Dy: represents day of year
9. … and so on.
The concept of date hierarchy even though simple to implement is very powerful. Within few
minutes you can derive important “Insight” into your data. We will now begin the process of
deriving intelligence out of boring data. Now begins the fun part.
Remember, we have not built any charts yet. It is very important that we build our foundation Qlet
and its corresponding parameters so that all of the drop down parameters can be leveraged in the
charts.
It definitely helps to plan your dashboard development. Since the dashboard tool is easy to work
with, we should still make an attempt to always plan so that we don’t duplicate our effort.
During the development, it may happen that you will get lots of ideas on implementing different
ways. I would suggest to save the base dashboard definition once you have frozen all the
parameters and Qlets. Before you start building charts, create a copy of the dashboard file as
backup.
In our data, we have details about items that are sold on a particular date. We have the unit price,
and quantity information. We also have the category for each item that they belong to. So it makes
sense to include a parameter for the item category so that we can select only the items belonging
to a particular category.
Similarly, right click on the “Or Year” column and create the parameter
NOTE: Often it does not make sense to have a year drop down and a date range parameter.
Because if the year value and the date ranges fall apart or do not intersect then you will not see
any data output. In this tutorial we provided the year and date ranges only for demonstration so if
you need only one, do not use the other.
If you work with real transaction application, you already know that the amount of data is huge and
the data has some form of date column. This date could be transaction date, invoice date, order
date, payment date etc.
One of the dashboard and reporting best practices is to have some form of date filter and/or
parameters so users can dynamically choose the date range. This helps in narrowing down the
data for analysis.
Right click on the Date column (order date), Navigate to Create Create Date Filter
The detail use of the Date Filter is covered in a separate tutorial. As we have very minimal use of
the date filter for the dashboard that we are building we will just touch the basics.
In the date filter, on the left you see the column name and on the drop down you see different
options such as below
For our purpose we just limited our data to be less than today.
One of the best practice is to avoid hard coding of any values in the Query. For e.g, The dashboard
designer allows you to build drop down list of values as parameters to the query. We will leverage
this option to the fullest so that the dashboard is extremely useful and can respond to data
changes.
Right click on the “Order Date” column, Navigate to Create Create Parameter
Once arranged and formatted, you can type the date or popup the date picker by click on the
button on the side
Change the From and To Date values and refresh, the Qlet will change the data accordingly.
Bar charts reveal important trend in your data. The very important reason we split the date into
year, quarter, month, week and day components is to see if there is a trend in the sales or order
information.
Right click on the Qlet title (“Name” ), and then click on the “Create Chart”
1. The top drop down contains a list of all the chart types that are supported.
2. The X-Axis drop down has all the available fields from the Qlet
3. The Y- Axis drop down has all the available fields from the Qlet
The process is to pick the base column that will form the X-axis, the Y-axis is the numerical value
column that will be used to plot the bar or appropriate chart type. The y-aggregation is required,
usually we should pick “SUM” but you could use “AVG” or other aggregations as you see fit.
In our case, we want to see a “year over year trend for our sales growth”
4. Select ‘Sum’ as the aggregation (by selecting sum, we are telling it to sum the amount and
group it by year value)
6. It shows the Glet Editor for your review which is a pre-built SQL query.
It creates a bar chart as shown above, you can drag the borders and expand the view, it will scale
automatically.
We just dragged the corners and expanded the view. Do not close the chart wizard yet, we will
create other views like a rubber stamp.
By Quarter
Go back to the chart factory and only change the X-Axis column to ‘quarter’ field
Do not worry about the size and the placement. Just drag by the title “By quarter” and place it in a
position where you can see it. At the end we can re-arrange the portlets on the dashboard canvas.
The column “Or_Qtr_Disp” has Qtr, 2 digit year and the last digit indicates the quarter number.
The reason we chose this value is so that we can order the quarter across multiple years.
As you see, we can clearly see a trend emerging from our data. The Qtr-98-1 has the tallest bar.
Now lets create a month view so we can nail down, which month contributed to that spike
By Month
We go back to the chart factory and select “Or_Mth_Yr_NN” which contains Year, month number
and month name(3 letter).
So far the tallest periods are March and April of 1998. Why is that? Did you do special promotion,
did you get extra word of mouth or publicity?
Similarly you can create slices by Week, or each Day. Note that as you go more granular, the chart
may look more congested.
Click on apply
Change the name to “By Product” and in the SQL query below, type, “Order by 2 Desc” which will
sort the products by the revenue in the descending order
But lets see how each of the products fair well within their own category.
It is nice to know that the revenue distribution is not dominated by a single product.
We can now change the “Category name parameter” to see the product distribution for other
category
By Category = Beverages
Once you are done with all the Qlets (query/table portlet) and Glets (graphic portlets), it is
advisable to save the dashboard file, copy the file and work on the new file for finishing and
polishing the dashboard.
By now, your dashboard is quite chaotic. You have objects all around your dashboard canvas with
different sizes. We will start the process of finishing our design.
Give a name to the file so that you can identify the raw dashboard definition file.
Click on Save.
If you need more backup copies to be created or create different versions of the same dashboard
definition, then go to the File Explorer, select the file and type – Ctrl-C, and then Ctrl-V
Click on Open
Select the “Name” portlet and then click on the “Scissor’ icon on the toolbar
Note, we created the backup copy of the dashboard so don’t worry if you mess up the dashboard.
You can always go back to the original and start again.
During the chart creation if we did not provide names, now is the time to provide them.
Now, scale down the size of each portlet and start arranging them on the canvas as you see fit.
Note, you can drag the corners of each portlet to resize the frames and drag the title name to place
them on the canvas
Screen real-estate is very important when designing any dashboard or web application. For better
space utilization, we will convert the standard pie to a 3D view
Also, while arranging the objects, keep the most important charts on the top and left area. Put all
the detailed portlets at the bottom.
Remember, do not put any objects on the right side of the scroll bar. Always, keep the scrolling to
vertical as it is convienient for viewing.
The above layout will cause for horizontal scrolling and is not a good practice.
Once you do the basic layout of placing the portlets so that they are distinctly visible, it becomes
easy to use the resizing options within the tool.
Once in the resize mode, you can select each object and they are enabled for group resize and
placement.
Select all the parameters on the top and we will align the top edges with respect to the first one.
As you see, each plet is shown in red with a bar on top indicating it is selected for alignment
One more, thing, you can also turn the Grid mode to see a guide for your alignment and placement
Note: Once you are done with resize and align with one set of objects, make sure to deselect them
before working on the next set of objects.
It is best practice to first resize all the objects. All objects on the same horizontal line should have
the same height. Select the optimum height of any object on that particular horizontal line and then
right click on the title and resize the height of all the selected ones. Then apply the alignment ->
Top , deselect the objects and start with the objects in the next horizontal line.
This completes our basic dashboard which is dynamic and extremely informative.
If you need to further customize the look and feel please refer to our online tutorial and reference
section
http://www.infocaptor.com/user_help/bi-dashboard-help.htm
Now that you have built the dashboard, you can share the dashboard in multiple ways.
Create a PDF output of the dashboard and send as email attachment. Click on the PDF icon
on the toolbar as shown below and it will instantly create a PDF output
Create Static HTML output. Click on the HTML icon on the toolbar. This option creates a
static html page that you can put in on the web. Users cannot interact with the dashboard. It
is just a snapshot image of the dashboard at the time the output was generated. It does not
refresh automatically. You will need to regerate the output again when the data is refreshed.
Desktop Sharing. You can put the dashboard definition file (icv) on a file share directory and
other users can view the dashboard through the Dashboard viewer. You may need separate
license for dashboard viewers for desktop.
Web Sharing: In this option, you can publish the dashboard to web and the dashboard is
available real time with all the dashboard parameters and refresh actions.
Go to Menu Create Publish to web and it will generate a file that you can put it where the
dashboard web server is and it will render the output. The look and feel is different with this
option.
The web version is using a flash charting engine to the desktop Java chart engine.
Details of converting the desktop to web version are not covered in the document. Please refer
online at any of our websites for more details
http://www.exceldashboard.org
http://www.infocaptor..com
Appendix
For the given Excel File, if you had to create a Named Range for Income and Expense columns
and rows