Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
josephinetedesc
Creator III
Creator III

one week occurs in two months - how to handle this?

Hi

I am getting strange answers when calculating monthly and weekly values - see below

So for example when I choose the month of August, and the x axis is in weeks - I get a week num of week 31, with 100% activity

Thankfully this does not happen very often.  Is there a way of overcoming this problem?

Jo

DateOfIntWeekNummonth
Sunday, 2 August 2015328
Saturday, 1 August 2015318
Friday, 31 July 2015317
Thursday, 30 July 2015317
Wednesday, 29 July 2015317
Tuesday, 28 July 2015317
Monday, 27 July 2015317
Sunday, 26 July 2015317
Saturday, 25 July 2015307
Friday, 24 July 2015307
location
monthweeknumEastGrand Total
72793102266541%
28150803704041%
29156903788541%
30156753659043%
31148153625041%
7 Total 7057017043041%
831540540100%
32155003743541%
33150603849539%
34149153679541%
35155753805541%
362975809537%
8 Total 6456515941541%
Grand Total 13513532984541%
10 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

How are you calculating the week numbers? How do you want to assign value for the split weeks?

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
josephinetedesc
Creator III
Creator III
Author

Hi Jonathan

I use the fuction in QlikView

Weekname or WeekStart(dateofInt)

Jo

ramoncova06
Partner - Specialist III
Partner - Specialist III

weeks and months do not have a 1 to 1 relation so that is what causes this, do you have daily information ?

swuehl
MVP
MVP

Is the Grand Total column the total of several locations? I can't see from your Excel file how the East values and Grand Total values are calculated, so if possible, maybe you can explain your setting a bit more detailed.

If your biggest worry is about showing a 100% activity, I would check why the Grand Total equals East for week 31 in August.

In general, if you want to compare weeks, I would try to avoid splitting week 31 in parts (which makes it hard to compare to other weeks). You could assign a week to the month it starts or to the month more than 3 days fall into, for example.

josephinetedesc
Creator III
Creator III
Author

Yes the figures come in hourly and then rounded up.

MarcoWedel

Hi,

another solution could be to define a set expression that disregards month selections but keeps all weeks that have at least one day within the selected month:

QlikCommunity_Thread_183245_Pic1.JPG

QlikCommunity_Thread_183245_Pic2.JPG

hope this helps

regards

Marco

josephinetedesc
Creator III
Creator III
Author

The purpose of this QlikView document is to show Utilisation - so we have the machine activity - from a set date in the past (usually 3 months) to a set date in the future.  Future dates are only meaningful for about a month ahead as activity is rarely booked more than a month ahead.  When giving a figure for utilisation - the problems are:

1. If no activity occurs - then % utilisation is skewed - I have explained that in another thread.

2. The dashboard is able to "drill down".  from year, month, week.  This is where the current problem occurs.

Jo

josephinetedesc
Creator III
Creator III
Author

Hi Marco if I use your way - using the set analysis - I would need to do some amazing scripting work?  For exmaple:  if month chosen, the weekly graph would not be shown, but if the weekly graph is chosen - then the month graph would not be chosen.

How amazing is the scripting work I would need to do?   It certainly seems the best way of solving the problem.

I will try and sketch what the document page looks like - and add it to the next reply.

Jo

josephinetedesc
Creator III
Creator III
Author

untitled.JPG