Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

TKendrick20
Valued Contributor

Qlik Sense Field Selection as Variable

I have a field which has values that I would like to use as a Dimension in another chart. I was able to do this in QlikView, but I can't quite figure it out in Qlik Sense.

I am trying to create a variable where the value is equal to the selections in a field.vDemographic.PNG

Then, I want to be able to use this variable as a Dimension in another chart.

Dimension Demographic.PNG

What am I doing wrong? Or is the GetFieldSelections() not supported in the variable creator?

1 Solution

Accepted Solutions
undergrinder
Valued Contributor II

Re: Qlik Sense Field Selection as Variable

Hi Tim,

Try enclose the variable '' characters.

='$(vDemographic)'

It shows to Qlik Sense, that it contains a characters.

By the way I think this document will help you:

Makes Sense to go round in circles

G.

3 Replies
undergrinder
Valued Contributor II

Re: Qlik Sense Field Selection as Variable

Hi Tim,

Try enclose the variable '' characters.

='$(vDemographic)'

It shows to Qlik Sense, that it contains a characters.

By the way I think this document will help you:

Makes Sense to go round in circles

G.

TKendrick20
Valued Contributor

Re: Qlik Sense Field Selection as Variable

Got it! I've added the '' as you said and had to add an = to the GetFieldSelections formula. I installed the extension you linked to, but did not end up using it.

vDemographic.PNG

Dimension Demographic.PNG

The only problem now is if there are multiple selections in the Demographics field this will not work. Therefore, I am using the bi-listbox to limit the selections in the field to 1. Qlik Sense Listbox

undergrinder
Valued Contributor II

Re: Qlik Sense Field Selection as Variable

Yes, the qsVariable extensions allows one selected button as I rembered, but why would you with one object to select multiple column?

I think you have dimensions like:

Age, Sex, School , and you would provide to users select which dimension is selected to show.

I missed/misunderstood something?

G.

Community Browser