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

Announcements
Save $650 on Qlik Connect, Dec 1 - 7, our lowest price of the year. Register with code CYBERWEEK: Register
cancel
Showing results for 
Search instead for 
Did you mean: 
madhubabum
Creator
Creator

How to get Numbers from my list box

Hi All

I have the following list box.....

DepartmentId:

ab_100

bc_200

st_300

100

200

300
400

Sol: I want only 100,200,300,400....

How can we achieve this.

9 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use this expression in your list box:

=Aggr(If(IsNum(DepartmentId), DepartmentId), DepartmentId)

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable

=if(IsNum(DepartmentId),DepartmentId)

madhubabum
Creator
Creator
Author

Hi Thanks to reply

But with the help of Inner Join ......I want to make changes in DataModel

Anonymous
Not applicable

In list box properties, ---> select Expression from field drop down ------> edit --------> use the below expression. and it should bring only the selected field values

=if(match(DepartmentId,'100','200','300','400'), DepartmentId)

jonathandienst
Partner - Champion III
Partner - Champion III

LOAD

     ...

     DepartmentId As AllDepartmentIds,

     If(IsNum(DepartmentId), DepartmentId) As DepartmentId,

     ...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
settu_periasamy
Master III
Master III

Hi,

Try this in your script. (if you have only one underscore in your data)

subfield(DepartmentId,'_',2) as DepartmentId

MarcoWedel

another solution could be:


KeepChar(DepartmentId, '0123456789')


please elaborate on your requirements to be able to deliver correct answers.

thanks

regards

Marco

madhubabum
Creator
Creator
Author

Hi SaiRamdc

Thanks to your reply

I want filter the data from "June 2003" to "may 2004" with "WHERE" condition in script level

avinashelite

try like this:

Load *

from

table

where monthname(datecolumn)>=monthname(makedate(2003,06) and monthname(datecolumn)<=monthname(makedate(2004,05)