# QlikView App Development

Discussion Board for collaboration related to QlikView App Development.

Announcements
QlikWorld, June 24-25, 2020. Free virtual event for DI and DA gurus. Register Today
cancel
Showing results for
Did you mean:
Highlighted
Creator

## Sorting Problem

Hi,

I need help on the below customized sorting Order.

I have the data like this

RId  Region

1      AAA

2      BBB

3      CCC

4     DDD

the transaction data is like this

Region val

AAA     50

BBB     100

CCC     200

But I want the output like below Order .

Region val

BBB     100

AAA     50

CCC     200

DDD     0

Tags (1)
7 Replies
Highlighted
MVP

## Re: Sorting Problem

Hi

Use sort expression like this:

=Match(Region, 'BBB', 'AAA', 'CCC', 'DDD')

You could also preload them to set the load order, or use dual value and sort by number

HTH

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Highlighted
MVP

## Re: Sorting Problem

Sorting expression:

=Match(Region, 'BBB', 'AAA', 'CCC', 'DDD')

Highlighted
MVP

## Re: Sorting Problem

Load a table (with load * inline and for each region associate a number, then use that number to sort ...

Region, SortOrder

BBB,1

AAA,2

CCC,3

DDD,4

];

Use SortOrder in the expression sorting of your chart

let me know

Highlighted
Specialist III

## Re: Sorting Problem

Hi,

Left join the second table to first one.

Then have a dimension region and expression sum(

thanks,

Rajesh Vaswani

Highlighted
Creator

## Re: Sorting Problem

Hi ales,

I Created the Sort Order and given the sorting based on this field but here the problem is I don't have any transaction data for Region DDD ,even though I want to show in the output with 0 val.

because of this the DDD region sorting value not coming in my application.

Highlighted
MVP

## Re: Sorting Problem

So you mean that your expression will not retrieve any data for DDD Region?

In this case DDD will not appear in your chart ... if you want it to be displayed use show all data in dimension tab

Highlighted
Creator

Hi Alen,