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: 
ccb-it2013
Contributor
Contributor

Changing Expressions to filter out values from calculation

HI there,

I need some help with making a modification to a sales report.

I need to change my expressions to remove any style with pallet=p from the calculation.

How do I this properly?

Thanks in advance.

1 Reply
johnw
Champion III
Champion III

If you mean eliminating rows with pallet = P:

sum({<pallet-={'P'}>} Amount)

If you mean eliminating any style for which any row of that style has pallet = P, I think this?

sum({<style*=P({1<pallet-={'P'}>})>} Amount)

Not that these are your expressions. Your expressions seem much more complicated in some cases, but it's the set expression that's important. In some cases there's no aggregation function at all. If you need the logic, use an only() expression around those expressions to add the set analysis.