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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
alenb
Partner - Contributor III
Partner - Contributor III

Filter the table with a chart expression

I have a table in which I want to show the certain subset of the data.

 

Brands:
LOAD * Inline [
Team, Brand
Team1, a
Team1, b
Team2, b
Team2, c
];

 

Teams:
User, Team
FRED, Team1
FRED, Team2
WILMER, Team2

 

In the chart expression for a table I want FRED table to show Brands a, b, c, and WILMER table to show Brands b, c. It would be ideal if chart expression remains the same for both tables, I just change the User part.

This is my pseudo-code attempt I put in the Field for the dimension in the table. Of course it doesn't work, but it "means" show only the Brands for Teams where User='FRED'. 

=if({${User='FRED'} Team }, Brand)

 

 

1 Solution

Accepted Solutions
MayilVahanan
MVP
MVP

Hi @alenb 

Try like below

=if(User='FRED',  Brand)

 

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

View solution in original post

3 Replies
MayilVahanan
MVP
MVP

Hi @alenb 

Try like below

=if(User='FRED',  Brand)

 

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Ksrinivasan
Specialist
Specialist

hi,

Brands:
LOAD * Inline [
Team, Brand
Team1, a
Team1, b
Team2, b
Team2, c
];

left Join

LOAD * Inline [
User, Team
FRED, Team1
FRED, Team2
WILMER, Team2];

result:

Ksrinivasan_0-1614244892642.png

ksrinivasan

 

alenb
Partner - Contributor III
Partner - Contributor III
Author

It actually works! So simple 🙂