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: 
Anonymous
Not applicable

How to use selected item within an expression?

I want to use a selected item in my expression but I am not having any luck.. Here is the expression:

=count(DISTINCT{<Capability_Level=GetFieldSelections(Capability_Level)>} Capability_Number)


The expression works if I hard code the Capability Level to equal a number but I want the users to be able to choose what Capability Level to look at.

2 Replies
devyanshu_gupta
Partner - Contributor III
Partner - Contributor III

Hi Kelly,

You don't need to use a set expression here. A normal filter would work here. Also in set analysis RHS is supposed to be in curly brackets.

Regards,

Devyanshu

balabhaskarqlik

=count(DISTINCT{<Capability_Level={'$(=GetFieldSelections(Capability_Level))'}>} Capability_Number)