Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
Chrvs
Contributor II
Contributor II

Setting variable by clicking table row or specific value

Hi

Is it possible to set a variable to equal a value in a chart, by click the corresponding row in the chart? I.e. if I have the table below is it then possible to store the ID of the row in a variable just by clicking the row? If not is it the possible if I click on the specific ID?

Chrvs_0-1662389227858.png

 

Labels (1)
1 Solution

Accepted Solutions
Rockstar7
Partner - Creator
Partner - Creator

@Chrvs  Yes use below function.

vSelected= Getfieldselections(ID)

This function fetches the selected value and stores in a variable. You can refer below link to understand the function more.

https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunct... 

 

View solution in original post

2 Replies
Rockstar7
Partner - Creator
Partner - Creator

@Chrvs  Yes use below function.

vSelected= Getfieldselections(ID)

This function fetches the selected value and stores in a variable. You can refer below link to understand the function more.

https://help.qlik.com/en-US/sense/May2022/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/FieldFunct... 

 

Chrvs
Contributor II
Contributor II
Author

Thanks a lot Rockstar7 🙂