Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
maxime66
Creator
Creator

Sum(amount) on one line

Hy Qlikers,

I would like to calculte amount of sales when policy is subscribed after the last meeting date (for each customer).

See exemple below of my expected crosstable. (i need to put some zero on other lines)

Thanks by advance

1 Reply
sunny_talwar

May be this:

=Sum(Aggr(If(date_meeting - date_pol = Max(TOTAL <id_cust> Aggr(If(date_meeting - date_pol <= 0, date_meeting - date_pol), id_cust, date_meeting, date_pol)), amount, 0), id_cust, date_meeting, date_pol))


Capture.PNG