Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

Set analysis

I have a field named Table source and when I am using the below expression

if([Table Source]='TIUIL962',Sum({<[Invoice_Date_GMT_Updated]={"$(vLastmonthdate)"}>} Quantity))

I get 0, but when I use Sum({<[Invoice_Date_GMT_Updated]={"$(vLastmonthdate)"}>} Quantity) and manually filter TAble Source then it works perfectly fine.

I want to use the if condition because I have multiple tables and different logics to sum the quantity.

Please help.

1 Solution

Accepted Solutions
nicu1996
Contributor III
Contributor III

Try this:

Sum({<[Table Source] = {'TIUIL962'}, [Invoice_Date_GMT_Updated] = {"$(vLastmonthdate)"}>} Quantity)

View solution in original post

2 Replies
micheledenardi
Specialist II
Specialist II

Can you post an example of your dataset with some data?

Without this is very difficult to provide an answer

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
nicu1996
Contributor III
Contributor III

Try this:

Sum({<[Table Source] = {'TIUIL962'}, [Invoice_Date_GMT_Updated] = {"$(vLastmonthdate)"}>} Quantity)