Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
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 (1)
4 Replies
gauthamchilled
Creator
Creator
Author

bump

tresesco
MVP
MVP

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

 

tresesco
MVP
MVP

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