Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
vipin_mishra479
Creator II
Creator II

Set Analysis Issue

Hi All,

i have week wise data like this

WeekSales
16,317
29,955
310,520
49,988
57,714

and my current week is 3

and want to show this in my chart

week                                Sales

29,955
310,520
49,988

1 past week and 1 future week of my current week.

3 Replies
ashfaq_haseeb
Champion III
Champion III

Hi,

Take week as your dimension.

write below expression.

=sum({<Week={'>=$(=week(today())-1)<=$(=week(today())+1)'}>} Sales)

Regards

ASHFAQ

sasikanth
Master
Master

HI

try some thing like this

=sum({<week-field>={'>=$(=Week(Month(today()))-1)<=$(=Week(Month(today()))+1)'}>}sales)

Not applicable

Considering it is always for 1 month!

Create a variable v1 (To get current week no of the month):

=Ceil(day(Today())/7)

In chart Dim: Week

Exp :

sum({<Week={$(v1),$(=$(v1)+1),$(=$(v1)-1)}>}Sales)

Regards,

Prabhu