Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Set Analysis

Hello,

someone can help me?

I'd like to create a table like this:

PARTNBR Week_26-29 Week_27-30 Week_28-31
504129021109135152
504129605312327371
504129606633651659
504129607931967992
504129609247261268

related with the following selection:

where i.e. 109 is the total volume (Q_rich) of the partnbr between the week 26 and 29.

Which is the correct syntax of the expression "sum( {$<week =  {(week)-2} >} Q_rich )" of the column week_26-29?

Thank you in advance

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I think this works:

sum({<week={$(=concat(distinct week-2,','))} >} Q_rich)

View solution in original post

4 Replies
MK_QSL
MVP
MVP

What could be your selection to get this result?

Not applicable
Author

I'd like to compare the result i get calculating the expression with the selection 28-31 (week)  with the result I get with the selection 27-30 and 26-29, maintaining the selection

week

Anonymous
Not applicable
Author

I think this works:

sum({<week={$(=concat(distinct week-2,','))} >} Q_rich)

Not applicable
Author

Thank you very much! It works!