Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to get the filter pane value dynamically in a variable

Hi,

I have a field as [Date ID], I have created a filter pane (Same as list box) as 'year([Date ID])'. Now when a value is selected from the filter pane, I want to show the selected value to the title of the charts. Can I catch the selected value in a variable? Please help if there is any function to do that.

7 Replies
lorenzoconforti
Specialist II
Specialist II

Something like this in the title field:

=Concat(distinct year([Date ID]),',')

regarding the variable, can you please explain what you are trying to achieve?

hallquist_nate
Partner - Creator III
Partner - Creator III

You should be able to use the function GetCurrentSelected() to capture that value.

Have you looked at that?

Nate

Anil_Babu_Samineni

Yes, You can.

=Concat([Date ID], '-')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

Yes, I have checked with GetCurrentSelections() function. In my example it is showing both the field and the selected value as Year(Date ID) : 2017.

I only want to show 2017, the selected value

Anil_Babu_Samineni

Then Work like this?

SubField(GetCurrentSelections(), ' ', -1)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
isingh30
Specialist
Specialist

Please attach your document.

Thanks.

sasikanth
Master
Master

HI ,

try below if you want to show only single value.

& max(Year([Date ID]))  along with chart tittle

Ex:

sales by customer for & max(Year([Date ID]))