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

Announcements
AWS Degraded - You may experience Community slowness, timeouts, or trouble accessing: LATEST HERE
cancel
Showing results for 
Search instead for 
Did you mean: 
Peony
Creator III
Creator III

Toggle creation for all valueas in a field

Hi all

A tried to create a toggle that will perform switch between values in a field "Category". Currently field contains two values ​​Cat_A and Cat_B(in future there coud be more categories).
The difficulty is that this switch should allows to choose between Cat_A, Cat_B and All(it shoud select Cat_A and Cat_B together). And I don't understand how coud I create this category "All" without concatenating values, because concatenate load doubles existing data.

Could someone give me a hint regarding this issue?

Peony_0-1727894960676.png

 

Labels (2)
1 Solution

Accepted Solutions
Vegar
MVP
MVP

You could add a dim-table to your app where "all" is associated with both values.

Data:

Load * From Source; // this data includes the Category field

Toogle:

Load * inline [

Category_toogle, Category

Cat_A, Cat_A

Cat_B,Cat_B

All, Cat_A

All, Cat_B

];

View solution in original post

3 Replies
Vegar
MVP
MVP

You could add a dim-table to your app where "all" is associated with both values.

Data:

Load * From Source; // this data includes the Category field

Toogle:

Load * inline [

Category_toogle, Category

Cat_A, Cat_A

Cat_B,Cat_B

All, Cat_A

All, Cat_B

];

Peony
Creator III
Creator III
Author

@Vegar thank you much!

seanbruton

Superb, very helpful solution!!!