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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
manoranjan_d
Specialist
Specialist

SORT IN BAR CHART FOR INTERVAL

HI all

LOAD

[user name],

If(Count([login details])>40, '>40' ,  Replace( Class (Count([login details]),10),'<= x <','-')) as Login

Resident Main

Group By [user name];

in bar chart i have used the login as dimension and count(username) as exprseion

now this dimension has to be in proper sort order of interval form 0 to >4 how to this? i tried but its not working

6 Replies
its_anandrjs
Champion III
Champion III

In the sort option >> select expression >> And write expression there for sorting

Ex:-

This is example

=ONLY(Match(FieldName,'0 - 10',

'10 - 20',

'20 - 30',

'30 - 40'

'>50'))

Regards

Anand

manoranjan_d
Specialist
Specialist
Author

its not working pls share some thing

its_anandrjs
Champion III
Champion III

Also you can load some sorting table also for the sorting.

Ex:-

Load * Inline

[

[No of times]     ,   [Sort Order]

              0         ,             1

             1-5       ,              2

             6-10     ,              3

            11-20    ,              4

            21-40    ,              5

            >41      ,              6

];

Note:- This  [No of times]  field is connected with your field which is same due to that you get sort order as [Sort Order]

then use this field in the Sorting option to sort.

Regards

Anand

antoniotiman
Master III
Master III

In Sort Option > Expression try

Class (Count([login details]),10)

manoranjan_d
Specialist
Specialist
Author

SORRY ITS working thanks

its_anandrjs
Champion III
Champion III

Great

Thanks if got correct answer then please close the thread by appropriate answer.

Regards

Anand