Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in NYC Sept 4th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Jonathan_Alm
Partner - Creator
Partner - Creator

Line Chart based on workload (percentage)

Hi,

I am struggling with displaying the total workload for my staff at a given time.

I want to display in a linechart "the total workload for the beginning of each month: 2013-01, 2013-02, 2013-03 etc."

The following is the data that I am working with:

PersonIDProjectIDProjectStartDateEndDatePercentageWorkLoad
ADAD99991Windows2011-01-042013-01-2250
ADAD99992Doors2012-12-142013-04-2250
JOAL11580NotWorking2012-08-232012-08-31

0

JOAL11583Roof2012-09-012012-10-30100
DADA88220NotWorking2012-01-222012-12-310
NINI12344Floor2012-09-252013-05-0150
NINI12341Windows2012-09-252013-05-0150
NINI12340NotWorking2012-05-022013-06-210
OLOL11222Doors2012-09-252013-05-0150
OLOL11225Ceiling2012-09-252013-06-0150
OLOL11226Tapestry2011-01-012011-10-1275
SVSV12124Floor2012-01-012013-01-0150
SVSV12120NotWorking2013-01-022013-06-210
SVSV12120NotWorking2012-01-012013-01-010

I have created a table with all the months ranging from the first StartDate to the last EndDate:

MonthStart([StartDate] +  IterNo()-1) as MonthStart,

Resident Employee while [StartDate] + IterNo()-1 <= [EndDate];

But now I am stuck in visualizing this in a line chart. I need to figure out how to get:

The sum of the percentage where the StartDate is less than the MonthStart and the EndDate is more than the MonthStart and dividie this with the distinct number of Employees.

This should then be expressed in my chart so that I can see that 2012-01 the total workload was X%, 2012-02 the total workload was Y% etc.

Kind regards, Jonathan

1 Solution

Accepted Solutions
Jonathan_Alm
Partner - Creator
Partner - Creator
Author

Hi Niranjan,

by taking the PercentageWorkLoad and dividing with distinct employee and removing the dimension employee from the chart I got the correct percentage.

Thanks for helping out

Kind regards, Jonathan

View solution in original post

3 Replies
Not applicable

Hi,

please the attached file it may help you.

Niranjan M.

Jonathan_Alm
Partner - Creator
Partner - Creator
Author

Hi,

what is missing from the example is that I need the total percentage for all employees at a given time. Therefore I need to divide the workload percentage with the number of employees that were active at that point.

So if I take 2012-10 as an example the sum of percentage is 150, but the average is 75 since two employees was within this range.

If I remove the PersonID from the chart, the sum of percentage will exceed 100%.

Kind regards, Jonathan

Jonathan_Alm
Partner - Creator
Partner - Creator
Author

Hi Niranjan,

by taking the PercentageWorkLoad and dividing with distinct employee and removing the dimension employee from the chart I got the correct percentage.

Thanks for helping out

Kind regards, Jonathan