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: 
viveksingh
Creator III
Creator III

Week with total

Hi All,

I have 3 dimension and two measures. And another dimension as date on top in pivot table.

I Want to sumup all weekdays data and display as Total for wee. And again the next week days dates should come. Som how I displayed total week. but couldn’t sum up the data

below is screen shot

20693EF9-6BB0-4B7F-B229-81BA0D26176B.jpeg

sorry for the image, I couldn’t attach qvw.

Here, Total Week field shows zero. Instead of sum up weekdays data.

1 Solution

Accepted Solutions
qlikviewwizard
Master II
Master II

Hi,

Check the options like this.

Capture.PNG

Capture1.PNG

View solution in original post

12 Replies
viveksingh
Creator III
Creator III
Author

stalwar1‌ can you help me on the above

I Saw your post simil to my requirement

https://community.qlik.com/thread/306966

qlikviewwizard
Master II
Master II

Hi vivek pv

Please try like this.

Capture1.PNG

Capture.PNG

Capture2.PNG

viveksingh
Creator III
Creator III
Author

‌Thanks for reply arjun. Here I need data on daily basis. I mean the date should be continuos and in plac of weeken, we need one total. and followed by next date.

qlikviewwizard
Master II
Master II

Hi viveksingh

Is this you want?

Capture.PNG

viveksingh
Creator III
Creator III
Author

‌yes Arjun this is what I’m looking for.  Can you confirm 1/4/2009 and 1/5/2009 is weekend?

and also i have 3 dimentiins like hierarchy.infront of Region field I have group, type as other dimension.

Group1GRoup 2Region
G11GERMANY
G11JAPAN
G2ANORDIC
G2BSPAIN

I Just considered the data from your applicatio.

viveksingh
Creator III
Creator III
Author

‌we don’t need weekstart field which is on top of pivot

qlikviewwizard
Master II
Master II

Hi viveksingh

Please check this.

Capture.PNG

qlikviewwizard
Master II
Master II

Hi viveksingh

I included both the dimensions in the data.

Data:

LOAD *,WeekEnd(Date) as WeekEnd;

LOAD Date,Group1,GRoup2,

    Region,

    [Product Type],

    AFYP,

    Cases

FROM

Community\1.xlsx

(ooxml, embedded labels, table is Sheet1);

viveksingh
Creator III
Creator III
Author

‌Thanks arjun for your efforts. As I couldn’t check your application in my mobile, I checked it in the night. It was good with your data. But where as with my data, I’m not getting totals.

Actually, I don’t have dates for weeken days i.e, Saturday nd Sunday. So I generated date like below

load date(MinDate +IternNo() -1) as PROP_REG_DATE

while(MinDate+iterNo() -1)<=num(MaxDate);

load

Min(PROP_REG_DATE) as MinDate,

Max(PROP_REG_DATE) as MaxDate

resident table1;

below is the screen shot for how I’m getting the data

EA8D8952-5657-4564-AD36-8C29A14A454B.jpeg