Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
WEBINAR April 23, 2025: Iceberg Ahead: The Future of Open Lakehouses - REGISTER TODAY
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Search string with variables/functions

Is it possible to make a selection based on a function or a calculation in a variable?

lite: < avg(salesid) ?

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

It is possible,

You can create a new variable in the Settings menu, Variable Overview, add a new one, say, vTotalCustNo

=COUNT(DISTINCT CUSTOMER_ID)


And then get it

$(vTotalCustNo)


Is that what you mean?

View solution in original post

2 Replies
Miguel_Angel_Baeyens

It is possible,

You can create a new variable in the Settings menu, Variable Overview, add a new one, say, vTotalCustNo

=COUNT(DISTINCT CUSTOMER_ID)


And then get it

$(vTotalCustNo)


Is that what you mean?

Not applicable
Author

Yes that was exactly what i wanted thank you Smile