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: 
Not applicable

Show only names with certain values

Hello,

I am new to qlikview. I just connected to a table. This table has many fields. I am only interested in seeing a list box with some sort of filtered view that I can display by using expression or something else...

(for example)

Persons | Sport

Ralf | Cyclist

Karl | Swimmer

Peter | none

Jay | Soccer Player

Tom | Cyclist

John | Cyclist

What I want is a list box with just the names of the persons that do cycling for example. It should only display their names and nothing else.

Field: Persons

Ralf

Tom

John

thanks in advance for any advise.

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Hi,

In the List box expression properties write expression

If(Sport = 'Cyclist' , Persons)

like for other sport you can do

Regards

Anand

View solution in original post

4 Replies
its_anandrjs
Champion III
Champion III

Hi,

In the List box expression properties write expression

If(Sport = 'Cyclist' , Persons)

like for other sport you can do

Regards

Anand

its_anandrjs
Champion III
Champion III

Hi,

Like this way

LOAD * Inline

[ Persons, Sport

Ralf , Cyclist

Karl , Swimmer

Peter , none

Jay , Soccer Player

Tom , Cyclist

John , Cyclist ];

cyclist.png

Regards

Anand

marcus_malinow
Partner - Specialist III
Partner - Specialist III

Anand's approach is fine, but it may be desirable to avoid a calculated dimension. If so, I'd deal with this in the data load.

In your load script use a similar expression:

If(Sport='Cyclist', Persons, Null()) as Cyclists

Not applicable
Author

I ended up using SQL in the script which did the trick:

     SQL SELECT * from tablename

     where (People = 'Cyclist')

For my actual scenario, I really don't need to see the other values. These are NULL, blank or garbage. In this way I can filter out the data before it is displayed on my sheet.

Many thanks for the other responses, I will use them in future !