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: 
reivax31
Partner - Creator III
Partner - Creator III

Sum (sales) on a weekly scale but only sum one specific date in that week

Hi Qlikers,

I created a chart with dimensions MyDate and measure sum(sales). I use alternative dimensions (my week, my month, etc...) table is like :

 

MyDateMyWeekSales
15/01/2018310
16/01/2018311
17/01/2018312
18/01/2018313
19/01/2018314
20/01/2018315
21/01/2018416
22/01/2018417
23/01/2018418
24/01/2018419
25/01/2018420
26/01/2018421

So right know when I switch my dimension to MyWeek I will have a sum of all my values in that week. I would like to only peek the max date of that week. So for week 3 the value should be 15  and for week 4 value is 21...

Any idea ? thanks for your help

24 Replies
brunobertels
Master
Master

Hi

It's more clear then

Assume that in a straight table you do not have Alternative Dimension such as in graph chart

So the Time Dimension must be Week Or Date , but no Alternative dimension are allowed until you use for example QS variable to switch between day and Week

reivax31
Partner - Creator III
Partner - Creator III
Author

Hi, Then I will use variables button to swith the dimension and at the same time trigger a different measure. This way I will have also the expected result

sunny_talwar

Did you ever get a solution for this

reivax31
Partner - Creator III
Partner - Creator III
Author

Hi, I found a solution by changing my data base. What I did is creating a data base like this:

MyDateMyWeekSalesMY MESURE
15/01/20181014-
16/01/20181114-
17/01/20181214-
18/01/20181314-
19/01/20181414
20/01/20183101410
21/01/20181621-
22/01/20181721-
23/01/20181821-
24/01/20181921-
25/01/20182021-
26/01/20184212121

During load I will create a field MyWeek where only the last day of the week is field in. This way when I switch my dimension to MyWeek I will only sum(sales) at that specific day.

sunny_talwar

Nice... that is great...