Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
so do it in Qlik like in Excel:
Counts:
load
ID,
Date,
rowno() as Row // each line becomes a number
resident YourData
order by ID, Date; // ordered by ID and Date
left join (Counts) load
ID,
min(Row) as MinRow // calculate the first row of each ID
resident Counts group by ID;
Data:
load
ID,
Date,
Row-MinRow+1 as Count /7 actual row - minimum line of each ID
resident Counts;
drop table Counts