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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
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

Labels (1)
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