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

Calendar Week Ending Dimension - Pivot Table

Hi

I have a pivot table where I am using Year, Month & WE (Week Ending) as the top dimensions.

As you  can see I have 2 cells for when the WE pass's into the following month and I require just one as it make the Gannt visualisation appear longer than it is. How can this be resolved? Thanks

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe create an additional field in your master calendar:

LOAD Year(Date) as Year,

          Month(Date) as Month,

          Month(WeekEnd(Date)) as WeekEndMonth,

          Year(WeekEnd(Date)) as WeekEndYear, //maybe even this, too?

          WeekEnd(Date) as Weekend,

          Date,

...

Then use WeekEndMonth as dimension in your pivot table chart.

View solution in original post

6 Replies
swuehl
MVP
MVP

To which month do you want these WE to belong to?

Not applicable
Author

Hi, the latter would be my preference. Thanks

swuehl
MVP
MVP

Maybe create an additional field in your master calendar:

LOAD Year(Date) as Year,

          Month(Date) as Month,

          Month(WeekEnd(Date)) as WeekEndMonth,

          Year(WeekEnd(Date)) as WeekEndYear, //maybe even this, too?

          WeekEnd(Date) as Weekend,

          Date,

...

Then use WeekEndMonth as dimension in your pivot table chart.

Not applicable
Author

Thanks but this did not work:

swuehl
MVP
MVP

Not sure what you are showing in that screenshot, it seems to work looking at a simple table like

WeekEndYear WeekEndMonth Weekend Sum(Value)
2016Jan03.01.2016145,29927261174
10.01.2016306,86295498163
17.01.2016404,16810107417
24.01.2016327,98582976684
31.01.2016300,87621822022
Feb07.02.2016492,73973167874
14.02.2016219,62997671217
21.02.2016296,80154984817
28.02.2016311,3679417409
Mrz06.03.2016275,56030363776
13.03.2016431,4491267316
20.03.2016274,97564293444
27.03.2016359,32481959462
Apr03.04.2016290,72316591628
10.04.2016338,93176536076
17.04.2016396,28496621735
24.04.2016194,58284685388
Mai 1479,4561761897
Jun 1334,1142497025
Jul 1796,8986579683
Aug 1599,9991677236
Sep 1263,3464721031
Okt 1658,1374940928
Nov 986,26576885581
Dez 1071,1453956552
2017Jan01.01.2017325,30479370616
Not applicable
Author

Sorry you are correct - I forgot to change the Weekend field to the new calendar field. It works perfectly so thank you