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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
chapil
Contributor III
Contributor III

Show lines in a table only if - SET ANALYSIS

Hello, 

I would love to know the best way to do a filter in an table object Qlik Sense

I want to show lines only if - for example 

Age | Name | Adress | Country

Only lines for FR Country without using an if condition - must use a Set analysis 

 

Thanks a lot !

1 Solution

Accepted Solutions
sunny_talwar

You can try this as your dimension

Aggr(
    Only({<Country = {'FR'}>} Country)
, Country)

View solution in original post

6 Replies
MayilVahanan

Hi

Try like below

Dim: Age , Name , Adress

Exp: Only({<Country={'FR'}>}Country)

 

or

It depends on ur expr.

Dim:  Age , Name , Adress, Country

Exp: Sum({<Country={'FR'}>}Sales)

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
chapil
Contributor III
Contributor III
Author

I tried with this syntax :  Only({<Country={'FR'}>}Country) in the expression space (field dimension > Country), it doesn't work like this 

INVALID DIMENSION 

Am I writing this expression in the write space ? Where do you put it ? 

 

Thanks for your answer ! 

chapil
Contributor III
Contributor III
Author

It's working with an IF expression but I would to avoid to use it 

=if([COUNTRY]='FR', [COUNTRY], null())

if this can help u 

MayilVahanan

HI 

You want to mention in the expression

MayilVahanan_1-1631180751033.png

 

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
chapil
Contributor III
Contributor III
Author

Yes, where else if not ? 

 

sunny_talwar

You can try this as your dimension

Aggr(
    Only({<Country = {'FR'}>} Country)
, Country)