Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to Filter Values based on condition on other data column

Hi All,

How do I create a filter (if clause) in a List Box.

Use Case:

I have three Columns in a data file (excel)

Column A = Name values (Sample Values - John, Sid, Mary)

Column B = Designation / Title (Sample Values - Director, Analyst, Senior Analyst)

Column C = Application Name (Alpha, SCM, Finance, Marketing)

I loaded the excel and created a list on Column A i.e. Name, and a Table Box (with Application Name)

Problem: I need to add a if condition in my column A to show only Directors (I do not want to show Names, whose designation is Senior Analyst or any other designation in that List Box)

I tried using Expression, but unable to get the final result.

Please advise, the best solution for it.

Regards,

Sid

Message was edited by: Sid Shah

1 Solution

Accepted Solutions
qlikconsultant
Creator III
Creator III

To put in a condition in your List Box you must choose <Expression> in Field and then click edit.

ListBox Properties.PNG.png

View solution in original post

9 Replies
Not applicable
Author

You need to use Set analysis to force QV to take only some vales from your dimension.
this doc might be usefull : http://pentier.free.fr/1-Formation%20Developper/Set%20Analysis/set_analysis.pdf

morganaaron
Specialist
Specialist

Try using: If(Title='Director',Name,)

Using whatever field names your Title and Name fields have.

Not applicable
Author

Hi Aaron,

Thanks for your response. I really appreciate it.

I tried entering that value in Expressions? (Is that the right place to enter the condition) - Find attached screenshot.

QlikView Expression.JPG.jpg

Plus-  I see "?" as an output (infront of the names) (See second screenshot)

QlikView Expression 1.JPG.jpg

Thanks,

Sid

qlikconsultant
Creator III
Creator III

To put in a condition in your List Box you must choose <Expression> in Field and then click edit.

ListBox Properties.PNG.png

Not applicable
Author

Thank you Markus for guiding me on using the expression

And Thank you Aaron for providing the Expression format.

Not applicable
Author

Expanding the Original Query -

Does QlikView Expression Allows Where Clause?

Use Case: In My Data - Column Title - there are values like "DIR, DIRECTOR IT, IT DIRECTOR" I prefer to write a single query which picks up "DIR" from the data list instead of writing multiple queries for each designation.

Please Advise.

Regards,

Sid

qlikconsultant
Creator III
Creator III

Try Wildcards

If(Title='Dir*',Name,)

Not applicable
Author

To the example I want to add a numeric value column to table, Then want to draw a bar chart for sum of the new field for values where Title=Director. The dimension will be "Application Name"

How do I filter the data in the graph??

Not applicable
Author

Link doesnt work