Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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