Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
MIKIEMILLER
Contributor III
Contributor III

List Box

I have these field names:

Unit

Total

Cash

Credit

Tip

Date

Year

Card Type

I want to have a list box that contains only these fields: Total, Cash, Credit, and Tip.

What is the easiest way about doing this?

11 Replies
PabloTrevisan
Partner - Creator II
Partner - Creator II

Hi Matt,

try this:

If(Match(FIELD,'Total','Cash','Credit','Tip'),FIELD)

MIKIEMILLER
Contributor III
Contributor III
Author

Thanks Pablo, I have seen this before and couldnt figure out how/where this works?  does this go in the load editor?

MIKIEMILLER
Contributor III
Contributor III
Author

Also I cannot figure out what FIELD is because Qlik is saying it doesnt recognize it.


If(Match(FIELD,'Total','Cash','Credit','Tip'),FIELD)

PabloTrevisan
Partner - Creator II
Partner - Creator II

Could you send me your .qvf ?

Look that 'FIELD' is your field that contains Unit,Total,Cash,Credit,Tip,Date,Year,Card,Type

does this go in the load editor?

No, in the listbox.

MIKIEMILLER
Contributor III
Contributor III
Author

Sorry Pablo, I dont have access to the .qvf. 

I think I bit off more than I can chew on this. 

1) Unit, Total, Cash, Credit, Tip, Date, Year, Card, and Card Type are all names of individual fields. 

ie.

Unit     Total     Cash     Credit     Tip        Date     Year     Card Type

1          $200     $0          $175     $25     1/1/18     2018         MC            

2) I have looked into making a listbox, and dont understand how they are made.  I saw where someone said a listbox is the same thing as a Filter Pane, but when I put that formula in there it doesnt understand what FIELD is.

PabloTrevisan
Partner - Creator II
Partner - Creator II

Okay, now I understand what you want.

Maybe that's it, please confirm me

Do you know how to open a .qvf?

https://help.qlik.com/en-US/sense/June2018/Subsystems/Hub/Content/Apps/open-app-dt.htm

MIKIEMILLER
Contributor III
Contributor III
Author

I need admin password to copy the file into where I need to save it. Sorry.

rwunderlich
Partner Ambassador/MVP
Partner Ambassador/MVP

Unit     Total     Cash     Credit     Tip        Date     Year     Card Type

1          $200     $0          $175     $25     1/1/18     2018         MC           

Is that a representation of what your input data looks like?

-Rob

manoj217
Creator III
Creator III

You mentioned those are field names. please conform those are field names or field values.

if they are field names use set hideprefix='-'

else

If(Match(FIELD,'Total','Cash','Credit','Tip'),FIELD) ​