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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Accumulation in script help

how to get count of rows in load script

Date                ID

24/04/2017       11

25/04/2017       10

26/04/2017       12

27/04/2017       37

want to know count of rows if select 26/04/2017 - count should be  3, if 27/04/2017 --- count should be 4



12 Replies
sunny_talwar

You mean if 27/04/2017 is selected count should be 4.... may be use RowNo() to count

LOAD Date,

     ID

     RowNo() as Count

Resident ...

Order By Date Asc;

Anonymous
Not applicable
Author

Let var = NoofRows('YourTable');

Anonymous
Not applicable
Author

No Sunny its not working

Anonymous
Not applicable
Author

could you explain again what you need...

Anonymous
Not applicable
Author

I want an extra field in load script where  it should tell me the count of rows, if I select 26th Date it should show the count as 3 and if it is 27th count as 4

sunny_talwar

So what issue did you run into by using RowNo()?

Anonymous
Not applicable
Author

Pls find attached app Sunny, whenever I select dates the count is shown as 1

sunny_talwar

Try Max(Count1) as your expression

Anonymous
Not applicable
Author

Thnx Sunny, my bad, i haven't posted the my entire question correctly, I want 1 step back accumulation in the script as a new field