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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
mulan1
Contributor II
Contributor II

Range Sorting

I

I am trying to build a bar chart with a range, in Alternate State.
Dimension: SubField( Class(aggr(Sales,Invoice IS),250),'x',2 )
Measures: {[Group A]}Invoices , {[Group B]}Invoices
(Invoices is a measure as well)

its working fine, the problem is in the sorting. as you see its off : 1000 before 750, 0 in the middle ...
now i am sorting by my Dimension (
( SubField(Class(aggr(Sales,Invoice IS),250),'x',2 ) )

I tryed several aproches in vaid.
many tnx in addvenced

mulan1_0-1732384605454.png

 

Labels (3)
2 Solutions

Accepted Solutions
ckarras22
Partner - Creator
Partner - Creator

I think something like 

 

num#(purgechar(SubField(Class(aggr(Sales,Invoice IS),250),'x',2 ),'<'))

 

in your Dimension sorting expression should work 

View solution in original post

mulan1
Contributor II
Contributor II
Author

it worked with num instead of num#.

thank you very much

View solution in original post

2 Replies
ckarras22
Partner - Creator
Partner - Creator

I think something like 

 

num#(purgechar(SubField(Class(aggr(Sales,Invoice IS),250),'x',2 ),'<'))

 

in your Dimension sorting expression should work 

mulan1
Contributor II
Contributor II
Author

it worked with num instead of num#.

thank you very much