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

Announcements
Streamlining user types in Qlik Cloud capacity-based subscriptions: Read the Details
cancel
Showing results for 
Search instead for 
Did you mean: 
risabhroy_03
Partner - Creator II
Partner - Creator II

Set Analysis

I have 2 date fields Invoice_Date_GMT & Max_Invoice_Date

I want to sum my Quantity where Invoice_Date_GMT = Max_Invoice_Date.

I tried -     Sum({<[Invoice_Date_GMT] = [Max_Invoice_Date]>}Quantity)  but it came as 0.

Both the dates are in the same format.

Please help.

1 Reply
jmartineze
Partner - Creator
Partner - Creator

Hi,

you can try 

sum(if([Invoice_Date_GMT] = [Max_Invoice_Date],Quantity))

or maybe

Sum({<[Invoice_Date_GMT] = {$(=max( [Max_Invoice_Date]))}>}Quantity)