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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

ordre in pivot table

Hi,

i want to show data in  a specific order, so that in my inlines i add a order column for exemple:

LOAD * INLINE [

    CODE_CATEGORIE41, COMPTE EXPLOITATION, ORDRE_CE

    71100, Ventes de Marchandises en état, 1

    71101, Ventes de Marchandises en état, 1

    71102, Ventes , 2

    71103, Ventes , 2

    71104, CA, 3

    71105, CA, 3

];

and in my sort expression i try this:

=Match(ORDRE_CE,'1','2','3)

and this

=ORDRE_CE

but in both situations it inverse the two last order, it gives me

Ventes de Marchandises en état

CA

Ventes



can anybody tell me why i have this issue

thank you

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Is it doing this after you make a selection or even without selection? If it happens only after making a selection, try this;

=Only({1} ORDRE_CE)

View solution in original post

6 Replies
Chanty4u
MVP
MVP

LOAD * INLINE [

    CODE_CATEGORIE41, COMPTE EXPLOITATION, ORDRE_CE

    71100, Ventes de Marchandises en état, 1

    71101, Ventes de Marchandises en état, 1

    71102, Ventes , 2

    71103, Ventes , 2

    71104, CA, 3

    71105, CA, 3

];

where ORDRE_CE ascending;

sunny_talwar
MVP
MVP

Is it doing this after you make a selection or even without selection? If it happens only after making a selection, try this;

=Only({1} ORDRE_CE)

Not applicable
Author

thank you for answer, it happens without making selection.

i tried Only({1} ORDRE_CE) and it works could tell me what only and {1} means

MayilVahanan
MVP
MVP

Hi

{1} - Ignore all the selection

ORDRE_CE and only(ORDRE_CE) both are same.

we can use set analysis Only() function, not by field name alone.


So, Only({1}ORDRE_CE) avoid selection made by user. And display the order properly

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sunny_talwar
MVP
MVP

MAYIL got before me, but yes the idea is to tell the sort to ignore any selections because it may filter out some of the options based on certain selections you make.

Not applicable
Author

thank you all for your answres