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

restrict data in a table

hello

i am a beginner with qlikview. i have a table in my data-warehouse in which i have negative and positive amounts in a columns

something like this:

idTypeamount sold
1sales200
2return-150
3sales200

i want just the positive amounts would be seen in just one of my pivot tables. so i dont want to use a list box and ask the end user to filter on Type=sales

is there any where in pivot table definition window to restrict data shown in it?

thank you

Mana

1 Solution

Accepted Solutions
Michael_Tarallo
Employee
Employee

Hi Mana - let me know if this solves your issue -

QlikView has a very power expression syntax known as Set Analysis - it can doing many calculations with the in-memory data model - amazing things.

For your example - Set Analysis allows you to perform test conditions on your data to get exactly what you are looking for. So for example.

Sum(AmountSold) -- aggregates amount sold

Sum ({ <AmountSold ={">=0"}>}AmountSold)

States - aggregate amount sold where value of amountsold is greater than or equal to 0

You add this expression - to the expression box

cap1.JPG.jpg

cap2.JPG.jpg

I attached the QVW - but with the free personal edition you are limited to the number of QVWs you can open from others - (if you do not have a license)

Let me know

Mike

Regards,
Mike Tarallo
Qlik

View solution in original post

5 Replies
Michael_Tarallo
Employee
Employee

Hi Mana - This is the Sense forum - I will move your post over to the QlikView forum and also attempt to get you support for your issue.

Mike

Qlik

@mtarallo

Regards,
Mike Tarallo
Qlik
ecolomer
Master II
Master II

if I have understood correctly, here's my proposed solution

Sold.png

Michael_Tarallo
Employee
Employee

Hi Mana - let me know if this solves your issue -

QlikView has a very power expression syntax known as Set Analysis - it can doing many calculations with the in-memory data model - amazing things.

For your example - Set Analysis allows you to perform test conditions on your data to get exactly what you are looking for. So for example.

Sum(AmountSold) -- aggregates amount sold

Sum ({ <AmountSold ={">=0"}>}AmountSold)

States - aggregate amount sold where value of amountsold is greater than or equal to 0

You add this expression - to the expression box

cap1.JPG.jpg

cap2.JPG.jpg

I attached the QVW - but with the free personal edition you are limited to the number of QVWs you can open from others - (if you do not have a license)

Let me know

Mike

Regards,
Mike Tarallo
Qlik
Not applicable
Author

i have got the point.

thank you friends.

Mana

satishkurra
Specialist II
Specialist II

Hi

In your chart properties under expressions tab, use the below

RangeMax(Sum([amount sold]),0)

or

Sum({$<Type={"=aggr(Sum([amount sold]), Type) > 0 "}>}[amount sold])