Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
jjustingkm
Creator II
Creator II

Display table based on user selection

I am trying to display a table in the dashboard if the user selects at least one filter in the dashboard. But the option I came across is to select based on a field in Data Handling section like below. I would try to limit not specifying the filed but instead if any filter is selected on the dashboard.

GetSelectedCount([PRODUCT ID)

or

GetSelectedCount([REGION ID)

Labels (2)
4 Replies
Lech_Miszkiewicz
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi. 

If you want to know if any selection is applied you can use GetCurrentSelections function and workaround it. Parameters are as follows:

GetCurrentSelections ([record_sep [, tag_sep [, value_sep [, max_values [, state_name]]]]])

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

just note that hidden fields selections will not be visible, but for those you can use functions you already mentioned. 

cheers

 

cheers Lech, 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 to the problem.
Vegar
MVP
MVP

If hidden fields are an issue then you could also compare a measure (pick one that will change on any selection) of the current selections with measure of the full dataset. 

=if(count({$}id) = count({1}id) , 0,1)

jjustingkm
Creator II
Creator II
Author

I think I was looking for something like this.

Len(GetCurrentSelections())

marcus_sommer
MVP
MVP

I would use a count as condition against the main-dimensions of the table, maybe something like:

count(distinct [PRODUCT ID] & [REGION ID]) < 21

and regardless which selections are made the condition will limit the table effective (at least if the data are sensible associated in the data-model).