Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to select only lines with greater than 1k value in a file

Hi All,

I am new to Qlikview and trying to find my ground here. Hoping that some one will be able to help me with the below

Anything that is greater than age 7 and value>=1000 should be picked up/ highlighted in a BAR chart.

   

NametypeAgevalue
Sammycredit11000
Saraladebit1600
Andydebit2100
Martincredit3100
Saraladebit51000
Vijayacredit61010
Vijayacredit61020
Sammycredit71500
Sravscredit71600
Sammycredit7100
Andydebit81200
Andydebit81300
Martindebit91600
Martincredit9100
Sammycredit1090
Andydebit111080
Martindebit121180
Sravscredit1360

Thanks for your help in advance.

1 Reply
johnw
Champion III
Champion III

Not clear what you're doing with two dimensions. Are debits subtracted from credits to get the final total, and that total is what we're showing if >=1000? Maybe something like this?

types:
LOAD * INLINE [
type,sign
credit,+1
debit,-1
];

Dimension = Name
Expression = if(sum({<Age={">7"}>} sign*value)>=1000,sum({<Age={">7"}>} sign*value))

But I could easily have misunderstood what you're after.