Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Massedamha
Contributor
Contributor

Sum If Function shows zero value

Hello All,

I am new to using Qlik 

i have been struggling to find the correct way to make a measure with a sumif or if equation

for an example the follwoing data

Sales TypeCustomerDateQtyValueCosting
InvoicedA1.02.201910002000012000
InvoicedA1.02.201910002000012000
InvoicedA1.02.201910002000012000
FOCA1.02.201910002000012000
FOCB1.02.201910001200
FOCB1.02.201910001200
InvoicedB1.02.201910002000012000
FOCB1.02.201910001200

 

i tried the if equation as follows  in order to Calculate only the invoiced amount  and make it as a measure 

if(Sales Type='Invoiced',sum([QTY]),0)

the problem seems with the selection part.

would appretiate the help and thanks

Labels (2)
1 Solution

Accepted Solutions
tresesco
MVP
MVP

Try Sum(If instead of If(Sum(, like:

Sum(if(Sales Type='Invoiced',[QTY],0))

View solution in original post

2 Replies
tresesco
MVP
MVP

Try Sum(If instead of If(Sum(, like:

Sum(if(Sales Type='Invoiced',[QTY],0))

Massedamha
Contributor
Contributor
Author

Worked, Thanks Alot