---
title: Sorting Visualisations in Qlik Sense
description: Sorting in Qlik Sense is an important part of data visualisation. Our guide to sorting visualisations in Qlik Sense will prevent confusion & boost results.
image: https://ometis.co.uk/hubfs/Sorting.png
---

[![ometis white transparent](https://ometis.co.uk/hs-fs/hubfs/ometis%20white%20transparent.png?width=147&height=65&name=ometis%20white%20transparent.png "ometis white transparent")](https://ometis.co.uk)

- Services 
    - [View all services](https://ometis.co.uk/services-overview)
    - [Data analytics](https://ometis.co.uk/services/data-analytics)
    - [Data engineering](https://ometis.co.uk/services/data-engineering)
    - [Analytics audit](https://ometis.co.uk/services/data-analytics-audit)
    - [Data platform audit](https://ometis.co.uk/services/data-platform-audit)
    - [Qlik training](https://ometis.co.uk/services/training)
    - [Support](https://ometis.co.uk/services/data-support)
- Industries 
    - [Hospitality](https://ometis.co.uk/solutions/hospitality)
    - [Higher Education](https://ometis.co.uk/solutions/higher-education)
    - [Manufacturing](https://ometis.co.uk/solutions/manufacturing)
    - [Financial Services](https://ometis.co.uk/solutions/financial-services)
    - [Other sectors](https://ometis.co.uk/solutions-other-sectors)
- Products 
    - [Tahola-AI](https://ometis.co.uk/product/tahola-ai)
    - [Qlik](https://ometis.co.uk/product/qlik)
    - [Power BI](https://ometis.co.uk/product/power-bi)
    - [Sigma](https://ometis.co.uk/product/sigma)
    - [Inphinity](https://ometis.co.uk/product/inphinity)
    - [Snowflake](https://ometis.co.uk/products/snowflake)
    - [Microsoft Fabric](https://ometis.co.uk/product/microsoft-fabric)
    - [OBackup](https://ometis.co.uk/product/obackup)
    - [Jedox](https://ometis.co.uk/product/jedox)
- About 
    - [About us](https://ometis.co.uk/about-ometis-uk-data-consultancy)
    - [Case studies](https://ometis.co.uk/case-studies)
    - [Partners](https://ometis.co.uk/data-technology-partners)
- Resources 
    - [Events](https://ometis.co.uk/events)
    - [Blog](https://ometis.co.uk/blog-news)

 Contact

![](https://secure.leadforensics.com/80580.png)

 March 14, 2019 By Chris Lofthouse

# Sorting Visualisations in Qlik Sense

Share:

- <https://www.linkedin.com/sharing/share-offsite/?url={url}&title={title}>
- <http://x.com/share?text={title}&url={url}&>

Sorting in Qlik Sense, and by that we mean sorting visualisations in [Qlik Sense](https://www.ometis.co.uk/qlik-software/qlik-sense/) or any other [Business Intelligence tool](https://www.ometis.co.uk/qlik-software/), is more important than you may think.

Sorting in [Qlik Sense](https://www.ometis.co.uk/qlik-software/qlik-sense/) incorrectly can cause confusion and potentially lead people down the wrong path of analysis. It may be possible to sort a visualisation in many different ways but that doesn’t mean you should. The method of sorting is completely dependent on the data you’re analysing.

## Use-Cases

There are two ways you can sort a visualisation in Qlik Sense, either on a dimension or measure. Let’s take a look at the use-cases for sorting on each of these.

Most commonly a dimension will contain three types of data:

- Nominal values, existing in name only with no given sort order.
- Ordinal values have a prescribed order (a natural ranking), such as ‘1, 2, 3, 4’, ‘small, medium and large’ or ‘strongly agree, agree, neither agree nor disagree, disagree and strongly disagree’.
- Interval values are a sequential series of numerical ranges. The most obvious example is time, such as months ‘Jan, Feb, Mar…’ each month represents a duration of time that happens is a consecutive order. Other examples include numerical ranges, for example ‘\>=0 and \<10, \>=10 and \<20..etc’.

Once you determine the type of data you are visualising, sorting that data becomes simple. For the examples in this post I will be using the [Nutrition Facts for McDonald’s Menu found on Kaggle](https://www.kaggle.com/mcdonalds/nutrition-facts).

### Use case - Nominal values

 

![Sorting in Qlik Sense](https://ometis.co.uk/hs-fs/hubfs/Imported_Blog_Media/chrome_2019-03-11_11-27-00-1024x524.png?width=640&height=328&name=chrome_2019-03-11_11-27-00-1024x524.png "Sorting alphabetically in Qlik Sense")

Sorting alphabetically in Qlik Sense

 

The values above represent nominal data, sorted alphabetically on the dimension. Sorting data alphabetically has got to be one of the biggest sins in data visualisation. There is no worse sort order that could be used. Looking at the visualisation above, most users would struggle to obtain all the facts. When the dimensional values have no prescribed order, revert to sorting on the measure.

![Sorting in Qlik Sense](https://ometis.co.uk/hs-fs/hubfs/Imported_Blog_Media/chrome_2019-03-11_11-41-50-1024x517.png?width=640&height=323&name=chrome_2019-03-11_11-41-50-1024x517.png "Sorting in descending order based on the measure.")

Sorting in descending order based on the measure.

 

Sorting numerically on the measure effectively displays the top-to-bottom performers, and vice versa. This provides users with quick access to select the top 10 or 20 values without thought, enabling them to slice and dice the data more efficiently. It’s interesting to note, if the dimensional value is nominal, it is often best practice to present the bar chart horizontally instead. Equally, to focus a user’s attention on the top or bottom values implement a limitation on the dimension:

 

![Sorting in Qlik Sense ](https://ometis.co.uk/hs-fs/hubfs/Imported_Blog_Media/chrome_2019-03-11_11-50-02-1024x513.png?width=640&height=321&name=chrome_2019-03-11_11-50-02-1024x513.png "Sorting numerically with a limitation and presented horizontally.")

Sorting numerically with a limitation and presented horizontally.

### Use case - Ordinal values

Take the example below, we have an ordinal set of values consisting of low calorie, normal calorie and high-calorie food items. This is an ordinal sort as there is a natural sort order of ‘low, normal and high’. Unfortunately, Qlik doesn’t know this order, how could it? It’s not context-aware (at least not yet).

 

![Sorting in Qlik Sense ](https://ometis.co.uk/hs-fs/hubfs/Imported_Blog_Media/chrome_2019-03-11_12-27-15.png?width=355&height=329&name=chrome_2019-03-11_12-27-15.png "Incorrect sort of ordinal values.")

Incorrect sort of ordinal values.

 

We therefore need to create an expression to sort the values correctly. This is achieved using the DUAL statement. The DUAL statement enables developers to assign a numerical value to a text value. The text value is displayed while the numerical value is used for sorting and calculation purposes. To create these buckets, I used the Data Manager to add the following calculated field in the script:

IF(Calories \<= 500, DUAL(‘Low calorie’, 1),

IF(Calories \<= 800, DUAL(‘Normal calorie’, 2),

DUAL(‘High calorie’, 3))) AS \[Meal Type\],

Note: This is easily achievable in the Data Manager using the conditional function group and the Sort Profiling card.

Qlik Sense will now auto-sort the data correctly. It’s important to note that while you can use custom sort expressions in the visualisation, it is best practice to move these expressions to the script where possible.

 

![Sorting in Qlik Sense](https://ometis.co.uk/hs-fs/hubfs/Imported_Blog_Media/chrome_2019-03-11_12-24-05.png?width=383&height=335&name=chrome_2019-03-11_12-24-05.png "Correct sort order using DUAL statement.")

Correct sort order using DUAL statement.

### Use case - Interval values

Remembering that interval values are a sequential series of numerical ranges, whether the data is time or bespoke buckets, we handle them in a similar manner to ordinal values. By that I mean we use the DUAL statement to sort the data correctly based on their numeric equivalent. For example, below I have grouped the calorie ranges into bespoke buckets based. This was achieved by adding the following calculated field:

IF(Calories \< 1, DUAL(‘Zero calories’,0),

IF(Calories \<= 1000,

DUAL(LEFT(REPLACE(REPLACE(Class(Calories,100,’-‘,1),'\<=’,”),'\<‘,”),

LEN(REPLACE(REPLACE(Class(Calories,100,’-‘,1),'\<=’,”),'\<‘,”))-1)&’0′, NUM#(PURGECHAR(Class(Calories,100,’-‘,1),’-\<=’))),

DUAL(‘\>1000’,9999999))) AS \[Calorie range\]

 

![Sorting in Qlik Sense](https://ometis.co.uk/hs-fs/hubfs/Imported_Blog_Media/chrome_2019-03-11_13-16-58-1024x480.png?width=640&height=300&name=chrome_2019-03-11_13-16-58-1024x480.png "Sorting with interval values")

Sorting with interval values

To sort this data in any other order than sequentially, as above, would be meaningless and confusing. Again, Qlik Sense will automatically sort the values correctly, based on the DUAL statement. This enables Qlik users to self-serve with ease and not worry about sorting.

To summarise, when there is no logical or natural sort order, to the dimensional values, sort by the measure (ascending or descending, based on what you’re trying to achieve). If you are visualising ordinal or interval data use the Sort Card in the Data Manager or DUAL statement in the Data Load Editor to achieve the correct sort order.

If you would like to know more about Qlik Sense or stay up-to-date with all things Qlik please remember to follow us on [Twitter](https://twitter.com/ometis_ltd), [LinkedIn](https://www.linkedin.com/company/ometis-limited/) and [YouTube](https://www.youtube.com/channel/UCtroW0Qxu1EDfPH3QLe_PBQ).

 

By Chris Lofthouse  
[Follow @clofthouse89](https://twitter.com/clofthouse89?ref_src=twsrc%5Etfw)

Topic: [Data analytics](https://143260848.hs-sites-eu1.com/data-analytics)

## Comments

#### About Author

[Chris Lofthouse](https://ometis.co.uk/blog-news/author/chris-lofthouse)

Chris boasts more than 12 years’ experience working with Qlik, covering a variety of roles along the way from support and development to consulting, pre-sales and training. He is now Commercial Director at Ometis as well as being a Qlik Partner Ambassador and Qlik Luminary Alumni. He’s also the creator of OmetisToolkit.com and is very vocal on our blog and social channels.

<https://www.linkedin.com/in/chris-lofthouse-49641535/?originalSubdomain=uk>

#### Related Posts

[![](https://ometis.co.uk/hubfs/Screenshot%202025-03-24%20112126.png)](https://ometis.co.uk/blog-news/qlik-talend-cloud-cross-pipeline-projects-guide)

 March 24, 2025

#### [How to use Qlik Talend Cloud Cross...](https://ometis.co.uk/blog-news/qlik-talend-cloud-cross-pipeline-projects-guide)

 Learn how Qlik Talend Cloud's Cross Pipeline Projects feature creates flexible data architectures for more efficient data engineering workflows.

[Go to Post](https://ometis.co.uk/blog-news/qlik-talend-cloud-cross-pipeline-projects-guide)

[![](https://ometis.co.uk/hubfs/1-Mar-18-2025-02-30-13-9762-PM.png)](https://ometis.co.uk/blog-news/2025-data-trends-for-business-leaders)

 February 3, 2025

#### [Data analytics trends: key business...](https://ometis.co.uk/blog-news/2025-data-trends-for-business-leaders)

 Learn what 2025 has in store across data analytics trends for UK businesses, focusing on practical AI adoption, data trust scores, and industry-specific solutions from top vendors.

[Go to Post](https://ometis.co.uk/blog-news/2025-data-trends-for-business-leaders)

[![](https://ometis.co.uk/hubfs/Screenshot%202024-11-26%20161955.png)](https://ometis.co.uk/blog-news/guthub-version-control-qlik-talend-cloud)

 November 27, 2024

#### [How to set up GitHub version control in...](https://ometis.co.uk/blog-news/guthub-version-control-qlik-talend-cloud)

 Learn how to set up GitHub version control in Qlik Talend Cloud and transform your data integration projects.

[Go to Post](https://ometis.co.uk/blog-news/guthub-version-control-qlik-talend-cloud)

### Be the first to hear about new events and updates

###### Technical Support

There are three ways to log support tickets:

![Canva Design DAFuEILuqpo](https://ometis.co.uk/hs-fs/hubfs/Canva%20images/Canva%20Design%20DAFuEILuqpo.png?width=30&height=30&name=Canva%20Design%20DAFuEILuqpo.png)   **Email:**  [help@ometis.co.uk](mailto:help@ometis.co.uk)

![Canva Design DAFuEAregRg](https://ometis.co.uk/hs-fs/hubfs/Canva%20images/Canva%20Design%20DAFuEAregRg.png?width=30&height=30&name=Canva%20Design%20DAFuEAregRg.png)   **Portal:**  [support.ometis.co.uk](mailto:help@ometis.co.uk)

![Canva Design DAFuEBb7e8M](https://ometis.co.uk/hs-fs/hubfs/Canva%20images/Canva%20Design%20DAFuEBb7e8M.png?width=30&height=30&name=Canva%20Design%20DAFuEBb7e8M.png)   **Phone:** +44 (0) 330 363 9900

Our support team is available to help Monday to Friday 09:00 to 17:30 GMT, excluding UK national holidays.

###### Sitemap

- [Data Integration](https://ometis.co.uk/data-integration)
- [Data Governance](https://ometis.co.uk/data-governance)
- [Data Analytics](https://ometis.co.uk/services/data-analytics)
- [Services](https://ometis.co.uk/services)
- [Blog](https://ometis.co.uk/blog-news)
- [About](https://ometis.co.uk/about)

###### General Enquiries

For all general enquiries:

![Canva Design DAFuEILuqpo](https://ometis.co.uk/hs-fs/hubfs/Canva%20images/Canva%20Design%20DAFuEILuqpo.png?width=30&height=30&name=Canva%20Design%20DAFuEILuqpo.png)   Email:  [info@ometis.co.uk](mailto:info@ometis.co.uk)

![Canva Design DAFuEBb7e8M](https://ometis.co.uk/hs-fs/hubfs/Canva%20images/Canva%20Design%20DAFuEBb7e8M.png?width=30&height=30&name=Canva%20Design%20DAFuEBb7e8M.png)   Phone:  +44 (0) 330 363 9900

###### Company Information

Ometis Limited,   
42 Lytton Road, Barnet,  
Greater London, EN5 5BY

Company Number: 7095283         VAT: 106236937

 

© 2026. All rights reserved | [Terms of use](https://ometis.co.uk/terms-of-use) | [Privacy](https://ometis.co.uk/privacy) | [Ts & Cs](https://ometis.co.uk/standard-conditions-of-supply)

[Follow us on LinkedIn](https://www.linkedin.com/company/ometis-limited/)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Chris Lofthouse",
    "url" : "https://ometis.co.uk/blog-news/author/chris-lofthouse"
  },
  "dateModified" : "2023-09-19T21:04:47.586Z",
  "datePublished" : "2019-03-14T22:04:00.000Z",
  "headline" : "Sorting Visualisations in Qlik Sense",
  "image" : [ "https://ometis.co.uk/hubfs/Sorting.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://ometis.co.uk/blog-news/sorting-qlik-sense",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://ometis.co.uk/hubfs/ometis%20orange%20transparent-1.png"
    },
    "name" : "Ometis Limited"
  }
}
```

```json
{
  "@context" : "http://schema.org",
  "@type" : "Corporation",
  "address" : {
    "@type" : "PostalAddress",
    "addressCountry" : "United Kingdom",
    "addressLocality" : "Hertfordshire",
    "addressRegion" : "",
    "postalCode" : "EN5 5BY",
    "streetAddress" : "42 Lytton Road Barnet"
  },
  "alternateName" : "Ometis",
  "description" : "Ometis is a UK data consultancy and the UK's largest dedicated Qlik partner, helping organisations get more value from their data through integration, analytics, dashboards, training and support.",
  "email" : "info@ometis.co.uk",
  "image" : "",
  "logo" : "https://143260848.fs1.hubspotusercontent-eu1.net/hubfs/143260848/ometis%20orange%20transparent-1.png",
  "mainEntityOfPage" : {
    "@id" : "https://ometis.co.uk/blog-news/sorting-qlik-sense",
    "@type" : "WebPage",
    "description" : "Sorting in Qlik Sense is an important part of data visualisation. Our guide to sorting visualisations in Qlik Sense will prevent confusion & boost results."
  },
  "name" : "Ometis Limited",
  "sameAs" : [ "https://www.linkedin.com/company/ometis-limited/" ],
  "telephone" : "0330 363 9900",
  "url" : "http://www.ometis.co.uk"
}
```