Coloring in tables, cross tables, and heat maps
For tables, cross tables, and heat maps, coloring is always configured using coloring groups (called color scheme groupings in the Visualization properties dialog). A coloring group functions as a container for one or more columns or axis values on which you want to apply the same coloring. In tables and cross tables, coloring can be applied either to the background of the cells, or to the cell text.
About this task

Adding coloring groups using the contextual visualization properties panel
About this task

Procedure
Results
You can also add color rules for even more specific coloring.
Coloring in tables
Example

In the table above, the legend shows the two color schemes separated by a horizontal line. The upper color scheme belongs to the group that is called "Category and type" which contains the two columns "Category" and "Type". Both columns have string values, which is indicated by the icon next to the name of the group in the panel. The lower color scheme belongs to the group "Cost and Sales" which contains the two columns "Sales" and "Cost", both with numeric values. The columns "Year" and "Month" are not included in any group, and therefore have no coloring applied to them.
In the panel, the coloring group "Cost and Sales" is expanded, and its color configurations are shown. Under Columns in this group, the two columns "Sales" and "Cost" are listed. The color scheme is in gradient color mode, and the two columns share the same color scheme, but the scaling is separate for them. This means that the three color points Min, Average, and Max are calculated per column. If you want to use a common scale for the columns in the group, select the alternative (None) in the One scale per drop-down list. In the example above, coloring is applied to the background of the cells in the table, and there are no rules.
If you want to see details about what this example would look like when configuring it from the visualization properties dialog instead of the contextual panel, see a previous version of the user guide.
About this task
Coloring in cross tables and heat maps
About this task
If you want to see details about what these examples would look like when configuring it from the visualization properties dialog instead of the contextual panel, see a previous version of the user guide.
Example (one coloring group):
The cross table below shows the sum of sales (Sum(Sales)) for fruits and vegetables for the years 2021, 2022, and 2023. The horizontal axis has the two columns "Category" and "Type". The column Category contains the two axis values "Fruit" and "Vegetables", and the column "Type" contains the values "Apples", "Bananas", "Pears", "Cucumber", "Lettuce", and "Tomatoes".

When you create a new cross table or heat map, one default coloring group is created for each column represented on an axis in the visualization. The Default group contains all the axis values in that column. Select a column under Define coloring for in the contextual properties panel to see its default coloring group. In the example above, a cross table and a part of the Colors card for the visualization is shown. The column "Category " was selected in the Define coloring for drop-down list, and its default coloring group ("Default group (Numeric)") has been expanded to show the two axis values "Fruit" and "Vegetables", as well as the current color configurations for the group.
The current color mode used is "Gradient". The two axis values "Fruit" and "Vegetables" share the same color scheme, but the scaling is separate for them. This means that the three color points, Min, Average, and Max, are calculated per axis value. If you want to use a common scale for the axis values in the grouping, select the alternative "(None)" in the One scale per drop-down list.
Example (separate coloring groups):



The two groups Fruits and Vegetables are still visible, but there will not be any items in them unless you change Define coloring for back to the column Type.
Color scheme based on another expression in a cross table
About this task
Typically, the color schemes for groups in a cross table are based on the actual values that are shown in the cross table cells. However, it is possible to let a color scheme for a group reflect another column or expression than the one used for calculating the cell values.


Sum([Budget] - [Actual])' is used, which
returns a negative result if the budget is exceeded. A color rule is added that
applies a red cell background, if the result of the expression is less than 0.


Coloring groups in heat maps
About this task


If you want to see details about what these examples would look like when configuring it from the visualization properties dialog instead of the contextual panel, see a previous version of the user guide.