Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
mikael-c
Contributor III
Contributor III

Selecting fields from expression filter

Completely new to Qlik Sense.

I have 2 fields: nom_station (text) and station_id (numeric).

I created a filter with this expression in the field name: =nom_station&' (#'&station_id&')'

When you make a selection on this field, neither nom_station or station_id are selected in green, they are white. I would like to select them green because i wish to reuse station_id in other formulas such as GetFieldSelections() and GetSelectedCount().

Here are the data parameters for the filter.

mikaelc_0-1628175832000.png

 

And when I select "Caserne 05 (#31)", I wish that station_id 31 gets selected.

mikaelc_1-1628175908790.png

 

Which is not the case, as seen in this other filter panel with just station_id in it (without the expression). It is white, but I need it to be green.

mikaelc_2-1628176019660.png

 

Thanks for your help!

1 Solution

Accepted Solutions
dwforest
Specialist II
Specialist II

You might be able to use Dual() to display nom_station&' (#'&station_id&')' and have station_id as the value; this wouldn't select values in the station_id field but could possibly replace it depending on the workflow.

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunc...

 

View solution in original post

2 Replies
dwforest
Specialist II
Specialist II

You might be able to use Dual() to display nom_station&' (#'&station_id&')' and have station_id as the value; this wouldn't select values in the station_id field but could possibly replace it depending on the workflow.

https://help.qlik.com/en-US/cloud-services/Subsystems/Hub/Content/Sense_Hub/Scripting/FormattingFunc...

 

mikael-c
Contributor III
Contributor III
Author

This actually does select the field!
Thanks for your help!!