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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
akuttler
Creator
Creator

Sum if with set modifier

Hello, I am trying to sum totals where transaction date is equal to service date.

The expression below works:

Sum(IF(TransactionDate = ServiceDate, Totals))


However I need to add a set modifier:

Sum(IF(TransactionDate = ServiceDate,{<Account = {'2000', '2004'}>} Totals))

But it gives me "error in expression"

Not sure where to place the set modifier in this scenario.

1 Solution

Accepted Solutions
sunilkumarqv
Specialist II
Specialist II

try below

Sum(  If(TransactionDate = ServiceDate, Totals)  {<Account = {'2000', '2004'}>}  )

View solution in original post

2 Replies
sunny_talwar

May be this

Sum({<Account = {'2000', '2004'}>} If(TransactionDate = ServiceDate, Totals))

sunilkumarqv
Specialist II
Specialist II

try below

Sum(  If(TransactionDate = ServiceDate, Totals)  {<Account = {'2000', '2004'}>}  )