Wednesday 12 December 2018

Dynamic Custom Group in Dashboard/Dossier

You can dynamically cluster attribute elements by using a table with range classification. This table can be imported from Excel file or can be a table in relational database

Let's assume you have a table that clusters your Employees by the Cost brackets. Based on those brackets a Rating is defined (like A, B, C...). This table can be imported from Excel file or from a table in relational database.
Please notice there is a Flag column that contains value '1' for each row. If you don't have this column in your data don't worry! Just use Upper column instead in the formula (see formula of 'Rating Metric' below).
User-added image

Currently, your Dashboard/Dossier displays Cost per Employee, but it is missing Rating information.
User-added image

As a first step import your Rating table. Import Rating as an attribute.
User-added image

Create a metric 'Rating Metric' with the following formula:
Max(IF(((Cost>Lower)And(Cost<Upper)),Flag,0)){~+}
User-added image

Create a grid that contains Employee, Rating (attribute) and Cost. The data comes from two unrelated data sets so you will get a cross join of data.
User-added image

Add "Rating Metric" to Filter Pane and set a filter 'Greater than or Equal to" 1. You will see a proper Rating assignment and you don't even need to display 'Rating Metric" on the grid.
User-added image

This assignment is dynamic, meaning that if you change the Rating brackets in your data set the new Rating rules will be applied automatically (assuming, you are using a live connection to a database).
You may need to change Level of your metrics if there are more attributes in your initial data set.

1 comment: