Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

intersection previous week and this week

hello,

i have some trouble to find the right solution.

let`s say i have following table:

idweekflag
111
131
141
211
221
231

what i´m trying to achieve is following result:

Dimension: week

expressions:

- count all ids which have an entry in previous week and this week --> active previous week + active this week

- count all ids which have no entry in previous week but entry in this week --> active previous week + not active this week

- count all ids which have an entry in previous week but no entry in this week --> not active previous week + active this week

Week
active previous week + active this week
active previous week + not active this week
not active previous week + active this week
1---
211
311
411

I struggeling around for a while an couldn`t find any solution. I tried it with aggr function and above function but have no satisfying results.

I hope somebody can help me! it´s really important

Thanks

Stevve

0 Replies