One of the most common types of charts you can build is the classic bar chart! It is one of the many types of graphs that is commonly used to compare and display discrete categories of data.
In the View, charts of this nature are grouped together as Category charts.
Category charts encompass various types of charts used to represent categorical data. They are designed to visualize relationships between different categories of data - making it easier to interpret and analyze large datasets. They are particularly useful for:
Comparing multiple categories of data within a dataset. Tracking performance metrics across different groups. Identifying patterns and outliers within categorical data. Communicating insights and findings to stakeholders in a clear and concise manner.
Let’s say your business user first wants to find out which type of sales makes them the most money 💰. Since you know they’re very concerned with this, you should also save the metric in the Knowledge Model so that it becomes reusable knowledge!
To that end, create a bar chart using the following information:
Dimension
PQL Query: "o_celonis_SalesOrder"."SalesDocumentTypeText"
Name: Type of Sales
Format: Standard (no format)
Metric - Save to Knowledge Model
PQL Query: SUM ( "o_celonis_SalesOrder"."NetAmount" )
Name: Net Order Value
Format: Abbreviated (##.#k)
Unit: €
Just place the chart at the top left corner of the View.
This is how you'd do it...
The video has no sound.
See how you can immediately click “+” in the PQL Editor preview to add columns. You can only do that in chart and table components!
Alternatively, you could also edit the metric itself - but remember that this will impact all other assets using that Knowledge Entity.
All Knowledge Entities will show up in the knowledge sidebar. Hover over the info icon to look at the details of the knowledge entity.
Now back to your bar chart - it seems that direct sales bring in the most revenue for your business user!
While that’s very clear, the other three types of sales can hardly be differentiated - you can’t tell which type of sales is better than the other apart from direct sales being the highest. Suppose your business user returns after seeing the bar chart, expressing the additional interest of pinpointing the type of sales requiring reassessment - with 60 million € being their cut-off point as the minimum amount each type of sale should be making overall.
To that end, you can either add an annotation line or conditionally color the bars.
Generally speaking, an annotation line is a fantastic tool to add a threshold to the chart, but its visibility would be poor in this instance since the max scale (in the y-axis) is huge and the differences between the other three types of sales are hardly visible. Coloring the bars that don’t meet the threshold would be a better idea since visually, the different colored bars would stand out.
In technical terms, thresholds are singular values indicating particular contexts. They can be static numbers or dynamically generated as an aggregated value.
So let’s fix the bar chart by doing these 2 things:
Sort the bars based on their net order value - in descending order (from highest to lowest)
Color map the bars based on the net order value - with any type of sales below 60M having the color shade of Context 40 (“mid” grey). The type of sales above 60M should remain Primary 20 (blue). Name it 60M Threshold.
Hint : In Coloring, under bar coloring, go to color mapping. You’d want to add a custom visual mapping, based on thresholds!
Take your time and explore the chart Settings. If you need guidance, just have a look at the solution below.
This is how you'd do it...
The video has no sound.
Note: If your bar charts don't have sorting configured, they'll default to sorting based on the dimensions' values in alphabetical order.
Look at that beauty.
Your business user can now immediately compare the performance of each type of sales based on their net order value and which type of sales requires reassessment at just a glance. That’s proper data visualization!
You configure most category charts similarly - adding a dimension, metrics, and then configuring the component settings so that it visualizes the data based on the requirements of your business users.
In Celonis, categorical bar charts are horizontal so that they can accommodate longer category labels without overcrowding. Generally, we tend to read from left to right, which makes charts such as line and column (i.e., vertical bar) charts more suited for time-based visualization. These charts are known as Time Series Charts.
_Media:_
- https://fast.wistia.net/embed/iframe/05836w72hd?seo=true&videoFoam=true
- https://fast.wistia.net/embed/iframe/6w0py07pjo?seo=true&videoFoam=true