Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

use selected field value in chart sorting

Hi,

Does anyone know how to use selected field value and do a wildcard search in Chart "Sort by expression"

I tried this

if (GetCurrentSelections(Roadway) like '*Eastbound', milemarker, -milemarker)

During test, the chart continue loading after select a roadway without showing any result

Is the above expression correct? How do I fix it?

Please advise

Regards

1 Solution

Accepted Solutions
jeevays7
Partner - Creator III
Partner - Creator III

try this.

=if(Roadway like '*Eastbound' or Roadway like 'milemarker' or Roadway like '-milemarker',1,0)

1,0 -> your conditions

View solution in original post

3 Replies
jeevays7
Partner - Creator III
Partner - Creator III

try this.

=if(Roadway like '*Eastbound' or Roadway like 'milemarker' or Roadway like '-milemarker',1,0)

1,0 -> your conditions

Not applicable
Author

thank a lot. it works. why just use field name instead of the selected filed value

jeevays7
Partner - Creator III
Partner - Creator III

Welcome Cheng Ma,

You can also use getCurrenSelection or getFieldSelection.

Ex: =if(GetCurrentSelections(Roadway) like '*Eastbound' or GetCurrentSelections(Roadway) like 'milemarker' or GetCurrentSelections(Roadway) like '-milemarker',1,0)