Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
maart
Contributor
Contributor

how to exclude records from chart expression

hi,

I have a table with 3 fields regarding expenses: date, category and amount. There are 6 categories of expenses.

In a chart having the date as dimension, I would like to set the expression as a sum of the amounts but excluding one or the category (salary expenses) and including just the other 5.

Thanks

1 Solution

Accepted Solutions
mongolu
Creator
Creator

Salve.
I see you are a fellow romanian.

You could try the if sentence:
SUM( IF(Category<>'Salary expenses',Amount) )

or the Set Analysis:
SUM( {$< Category -= {"Salary expenses"} >} Amount ).

View solution in original post

2 Replies
mongolu
Creator
Creator

Salve.
I see you are a fellow romanian.

You could try the if sentence:
SUM( IF(Category<>'Salary expenses',Amount) )

or the Set Analysis:
SUM( {$< Category -= {"Salary expenses"} >} Amount ).

maart
Contributor
Contributor
Author

Salut Mihai,

I am glad that you replied me.

Your answer solved my issue. I used your first suggestion. As for the second, didn't worked the same, don't know why. Not familiar with Set Analysis.

Many thanks,

Marius