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

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
stantrolav
Partner - Creator II
Partner - Creator II

How to count amount for date?

http://community.qlik.com/docs/DOC-5551

How can i load field Amount for date in load script to get table like in this document. As input data may be used only first three fields.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Try like this:

INPUT:

LOAD Agreement,

     Date,

     Amount

FROM

[AmountForDate.xlsx]

(ooxml, embedded labels, table is Лист1);

RESULT:

LOAD

  Agreement,

  Date,

  Amount,

  if(peek(Agreement)<>Agreement, Amount, rangesum(peek([Amount for Date]),Amount)) as [Amount for Date]

Resident INPUT order by Agreement, Date desc;

drop table INPUT;

View solution in original post

2 Replies
swuehl
MVP
MVP

Try like this:

INPUT:

LOAD Agreement,

     Date,

     Amount

FROM

[AmountForDate.xlsx]

(ooxml, embedded labels, table is Лист1);

RESULT:

LOAD

  Agreement,

  Date,

  Amount,

  if(peek(Agreement)<>Agreement, Amount, rangesum(peek([Amount for Date]),Amount)) as [Amount for Date]

Resident INPUT order by Agreement, Date desc;

drop table INPUT;

stantrolav
Partner - Creator II
Partner - Creator II
Author

Cool. Thanks.