Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nz_chris
Contributor II
Contributor II

Make Selections via a variable

Hello folks,

I am quite new in this business and have a rather simple issue here I guess.

I have two alternative states which result in one bar chart.

For the convenience of the user I want them to make selections in one state and I will transfer it to the other state via an action and also select them via an action. So far so good.

I have four filter panes of which I store the selected values semicolon separated into different variables for each dimension. My solution works for 3 of 4.

The dimension which does not work has alpha numerical values. I tried to work around by converting the values into text but this had not solved the problem.

Any suggestions to this matteer?

 

Labels (1)
12 Replies
Mark_Little
Luminary
Luminary

Hi

Can you share some more information and what happens.

My first guess would be the Values need to wrapped in ' i.e. Single quotes. 

nz_chris
Contributor II
Contributor II
Author

Hi @Mark_Little ,

I have article numbers like:

nz_chris_0-1678348202339.png

And I try to move the selected ones into a variable, which works.

nz_chris_1-1678348262688.png

What does not is that I want to take this selection into another state

nz_chris_2-1678348325529.png

This is how the values are stored within the variable: 

nz_chris_3-1678348431131.png

 

 

 

nz_chris
Contributor II
Contributor II
Author

@Mark_Little 

after adding single quotes like you suggested my data looks like:

nz_chris_0-1678351032088.png

 

But this did not  solve it

neerajthakur
Creator III
Creator III

Instead of ; use ,

Thanks & Regards,
Please Accepts as Solution if it solves your query.
nz_chris
Contributor II
Contributor II
Author

@neerajthakur 

nz_chris_0-1678355265642.png

problem not solved

neerajthakur
Creator III
Creator III

You are trying for other State and in one state it is working fine, Please check if you have applied state correctly on second instance.

Refer to this : https://help.qlik.com/en-US/video/LMMGAFgrnc8

Thanks & Regards,
Please Accepts as Solution if it solves your query.
vinieme12
Champion III
Champion III

try below in Value Fx   in the Field Selection Action   or Try with "Toggle Field Selection"

='($(=trim(GetFieldSelections(Artikel,'|'))))'

 

vinieme12_0-1678356697141.png

 

 

 

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
nz_chris
Contributor II
Contributor II
Author

@vinieme12 

like so? This way it does not work. Also not with toggle.

nz_chris_0-1678362159864.png

The Dimension "Artikel" is in a different state, how do I manage that? "Artikel" and "FAZ_Artikel" are in two different states.

@neerajthakur 

I have for actions and just in one it does not work. I set up each of them accordingly

nz_chris_1-1678362274098.png

 

vinieme12
Champion III
Champion III

Add the state name parameter to getfieldselections()

 

='($(=trim(GetFieldSelections(Artikel,'|',,'alternatestatename'))))'

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.