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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
ond
Former Employee
Former Employee

Filter Expression

Hi,

I am new to QlikView and need your help. I am trying to built an app for commissions and payments for the Sales.

I have a straight table where I show how much every rep earned YTD and how much he was paid YTD. Both fields are calculated expressions. And I also have a resulting balance which is the difference between the 2. The balance is what needs to be paid next month.

As a balance can be positive, negative or 0, I want to be able to filter on those categories either through a button or a flag or list box or something.

I've attached an example image.

How can I build this?

Many thanks for your help!

Andreea

 

1 Solution

Accepted Solutions
ond
Former Employee
Former Employee
Author

  • Thank you, Marcus. I actually found another way to do it but will use your solution for another case app.

View solution in original post

2 Replies
marcus_sommer

As expression within a listbox you could try something like this:

Year & ' - ' & pick(sign(aggr(sum(Earned) - sum(Paid), Person, Year)) + 2, 'negative', 'no pay', 'positive')

- Marcus

ond
Former Employee
Former Employee
Author

  • Thank you, Marcus. I actually found another way to do it but will use your solution for another case app.