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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

New to qlikview - expression help please


Please can someone help me with an expression.

Fields:

Material

New Product  (either 1 or 0)

Sales Value

I want to create an expression to calculate the total value of a material where the New Product field contains 1.

I appreciate this is very easy but I'm a complete newbie

Thank you!

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Sum({<[New Product]={1}>} [Sales Value])

View solution in original post

4 Replies
tresB
Champion III
Champion III

Sum({<[New Product]={1}>} [Sales Value])

ashfaq_haseeb
Champion III
Champion III

Hi,

Try below

Dimension

Material

Expression:

Sum({<[New Product]={1}>}[Sales Value])

Regards

ASHFAQ

SunilChauhan
Champion II
Champion II

Sum({<[New Product]={'1'}>} [Sales Value])


or


sum(if(New Product]=1 ,[Sales Value]))

Sunil Chauhan
Not applicable
Author

Try this:

=Sum({$<[New Product] = {1}>} Material)

Hope it helps!