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: 
mauricexyz
Contributor III
Contributor III

Assign a filter function to the button

Hello,

I would like to store a filter per action on a button as described above. To do this, I have selected "Select values that match the search criteria" under Actions for the button. Then the source. Now I have used the following code under Functions:

=sum({<sales statistics.STNBTR = {">50000"}>} sales statistics.STNBTR)

If I now activate the button, I only get all values with 0 in the corresponding column.
What is the problem here?

Thank you very much!
Maurice

Labels (1)
1 Solution

Accepted Solutions
mauricexyz
Contributor III
Contributor III
Author

I now have the solution. It was very simple, as the formula has to be entered as a string. That's probably what you meant. The solution was:

='=Sum(Turnover statistics.STNBTR > 50000)'

Thank you very much!
Maurice

 

View solution in original post

2 Replies
Antoine04
Partner - Creator III
Partner - Creator III

Hello,

The syntax is incorrect.

What you need to write is something like this : ='>50000'

And of course mentionning your field STNBTR in the parameter of the button.

Regards,

Antoine L

mauricexyz
Contributor III
Contributor III
Author

I now have the solution. It was very simple, as the formula has to be entered as a string. That's probably what you meant. The solution was:

='=Sum(Turnover statistics.STNBTR > 50000)'

Thank you very much!
Maurice