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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
gauthamchilled
Creator
Creator

SumIF To Set Analysis Help

Hi,

 

Need a help in converting a sumif to set analysis. Below is the expression.

=sum(if([Trans Date] <= $(vAgeDate)
and $(vAgeDate) -[$(vBasis)] > vAge2
,[Sales]
))

where
Trans date is transactiondate
vAgeDate is AgeDate
vBasis is InvoiceDae
Vage2= 90

 

Can any body help?

Labels (2)
4 Replies
gauthamchilled
Creator
Creator
Author

bump

tresB
Champion III
Champion III

I assume, AgeDate and InvoiceDate are field. If so, I don't get how are they different from the variables. Are you using any aggregation function in the variable definitions? Could you explain with a sample ?

gauthamchilled
Creator
Creator
Author

Hi,

 

vAgeDate is max(AgeDate) but vBasis is just InvoiceDate field

 

tresB
Champion III
Champion III

InvoiceDate has multiple dates? Are you expecting to select a single value from this field before an output comes?