Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Row Suppression

Hi

I have created a straight table with two dimensions and 5 expressions

The dimensions are the customer name and code. The expressions work sales value etc.

My last expressions works out the difference between the exposure and the credit limit.

Some customers have obviously gone over their credit limit and show a negative value in this expression.

I need to exclude any rows that have a positive value in the final expression, basically include any customers that have gone over their credit limit. I know it is easy enough to exclude columns but not so easy with rows.

Any help would be greatly appreciated. Thanks in advance

Dave

25 Replies
sunny_talwar

May be use an if statement for all your expressions

If(Column(5) < 0, Expression1)

If(Column(5) < 0, Expression2)

.

.

If(Expression5 < 0, Expression5)

Not applicable
Author

Hi Sunny,

Please excuse my ignorance. How can I reference columns in an expression.

Below is a subset of my data. I want to show all records that have a 1 in the 1or0 column

   

CustomerLeeway1or0
Bunzl Retail & Healthcare Supplies£60,0000
Burtons Foods Ltd  (108833)£150,0000
Big Bear Confectionery Ltd£35,0000
Globe Tech BV£27,4390
Branston Ltd£100,0000
Cott Beverages Ltd-£312,3721
Granton Medical Ltd£2,3070
Honey Monster Foods Ltd.£60,0000
Ice Fresh Seafoods Ltd£20,0000
Kettle Foods Ltd£75,0760
Y&S Recycling£40
Moy Park Ltd (Belfast)£11,0360
My Protein£177,9990
Y&S  Recycling Ltd£1,0000
Dunhills (Pontefract) PLC£204,6540
The Jordans & Ryvita Co Ltd-£211,1961
Plasto Sac Uk Ltd£64,5970
The Seafood Company Ltd.£40
Clondalkin Flexible Pkg, Vaassen£17,5500
Web Dynamics International Ltd£40
Riverside Medical Pkg Ltd-£21,9681
Tilda Ltd-£61,1861
Tata Steel UK Ltd-£9,8471
Anil_Babu_Samineni

May be use

Sum({<1or0 = {'1'}>}Leeway)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Not applicable
Author

Thanks but that doesn't seem to work. I get another column just populated with 0

sunny_talwar

Assuming Leeway is an expression... try this and assuming 1or0 will be 1 or 0, you can try this

Leeway expression * [1or0]

where [1or0] is the expression label and replace Leeway expression with its actual expression you were using today. The idea is to make Leeway expression = 0 when 1or0 is 0

Not applicable
Author

Hi, Dave.

Try to use condition in calculation dimension.

if([1or0] = 1, Customer).

Then, press "Suppress When Value Is Null".

If you don't have precalculated 1or0, you can calculate it in dimension.

if(aggr("Here must be expression" , Customer) = 1, Customer).

Not applicable
Author

Hi Sunny,

Leeway is an expression so done the multiplication as suggested and I know have 0 or the correct figures. How can I suppress the 0s

sunny_talwar

May be check 'Suppress Zero Values' on the presentation tab

Not applicable
Author

tried that and still all 0s appear