Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
May 10, 2022 3:23:50 PM
Jun 25, 2015 2:54:42 AM
There is no setting to affect chart legend sort order.
For example, in the below legend the dimension values are expected to be sorted according to their numerical ranges.
Qlik Sense Enterprise on Windows
Qlik Cloud
Qlik Sense Business
In Qlik Sense the chart legend is sorted by alphabetical order or numerical order.
Dimension values with no underlying numerical value will be sorted alphabetically. The dimension sort order does not affect the legend.
Chart legend sort order can be customized by enumerating the dimension values.
The interval values can be enumerated by using the Dual() function. In this example, the lower limit of the intervals could make for suitable numerical values. With a mapping table, the legend enumeration only needs to be maintained in one place.
DimIntervals:
Mapping Load * Inline [
TextValue, NumValue
100-999 , 100
1k-9999 , 1000
10k- , 10000
];
Load
Dual(Dim1, ApplyMap('DimIntervals', Dim1)) AS Dim1
Inline [
Dim1, Expression1
100-999 , 2321
1k-9999 , 412
10k- , 454
100-999 , 23
1k-9999 , 4142
10k- , 4464
];