Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
israrkhan
Specialist II
Specialist II

Sorting problem

Hi Guys:

i have one dimension in my straight table and many expressions.

what i want to do, i want to sort my dimension in any way, but want to keep my "Region"  in first row,

for example i have dimension values, as BELOW.

ABD

DEF

Region

RBG

SSS

and so....

how to sort , so Region must be at first..

Many Thanks in advance....

Regards

Khan

1 Solution

Accepted Solutions
Not applicable

6 Replies
luciancotea
Specialist
Specialist

In the "Sort" tab, use "Sort by expression" and add

=if( MyDimension = 'Region', 1, 2)

Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

See this blog post: Establishing a Sort Order


talk is cheap, supply exceeds demand
Not applicable

see attachement

israrkhan
Specialist II
Specialist II
Author

no attachment is there....

jagan
Partner - Champion III
Partner - Champion III

Hi Usman,

In the script itself use dual function to specify the sort order

LOAD
     *,

     If(Dimension= 'Region', Dual(Dimension, 1), Dual(Dimension, 2) AS Dimension

FROM DataSource;

Now in sort tab specify Numeric as sort type.

Hope this helps you.

Regards,

Jagan.

israrkhan
Specialist II
Specialist II
Author

Thanks to all you guys....