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: 
Anonymous
Not applicable

Show records

Hi guys,

I have a straight table which I would like to only show records where a field is 5.00 or below

Capture.PNG

The field is called Margin.

The reason I would like to do this is because when I show all records the table says "object out of memory"

Any help would be appreciated

Thanks

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

Have you tried this:

=If((([Discounted Price] - [Product Cost]) / [Discounted Price] * 100) <= 5, (([Discounted Price] - [Product Cost]) / [Discounted Price] * 100))

View solution in original post

17 Replies
sunny_talwar
MVP
MVP

Replace your existing expression with this may be:

If(YourExpression <= 5, YourExpression)

Anonymous
Not applicable
Author

My expression is this! Can you help?

=(([Discounted Price] - [Product Cost]) / [Discounted Price] * 100)

sunny_talwar
MVP
MVP

Have you tried this:

=If((([Discounted Price] - [Product Cost]) / [Discounted Price] * 100) <= 5, (([Discounted Price] - [Product Cost]) / [Discounted Price] * 100))

Not applicable
Author

If((([Discounted Price] - [Product Cost]) / [Discounted Price] * 100)<=5,(([Discounted Price] - [Product Cost]) / [Discounted Price] * 100))

Regards,

KKR

Anonymous
Not applicable
Author

Ah that's perfect. Thanks guys.

Can I exclude the values where the Margin is now "-" from my table - I set this to 20 as a test...

Capture.PNG

sunny_talwar
MVP
MVP

It should have already excluded them. Are there more expressions in this table?

Anonymous
Not applicable
Author

Ah yes, I thought that might be the case.  I have one other expression within the table..

sunny_talwar
MVP
MVP

Why don't you restrict the other expression like this:

If(not IsNull([Margin]), yourExpression)

Where Margin is the label of the above expression (Margin should turn blue when you use the above expression)

HTH

Best,

Sunny

Anonymous
Not applicable
Author

Hi Sunny

I tried this but it didn't work.. This is my other expression

=If(not IsNull([Margin]), (pricing_oplistm_price) - (pricing_oplistm_price/100)*pricing_price_deal_discount).  It's also broken my margin expression too... Haha

Capture.PNG