Skip to main content
Announcements
Document boards are being consolidated, this board no longer allows NEW documents READ MORE

Files for creation of a Gantt chart

cancel
Showing results for 
Search instead for 
Did you mean: 
hic
Former Employee
Former Employee

Files for creation of a Gantt chart

Last Update:

Jun 5, 2012 9:15:22 AM

Updated By:

hic

Created date:

Jun 5, 2012 9:15:22 AM

Attachments

Have you ever wanted to create a Gantt chart in QlikView, only to find out that this chart type is not one of the pre-defined charts? Then you should be happy to learn that it is possible to create a Gantt chart and that it is not very difficult. See more on Recipe for Gantt chart.

HIC

Grouped.png

Stacked.png

Labels (1)
Comments
Anonymous
Not applicable

Hello HIC,

Thanks for the example, i am using the same logic in my dashboard but one problem which I am unable to solve is the value shown when I hover my mouse over the bars.

As of now when I hover my mouse over the bars in the chart it shows a random date for the duration,i checked your attached example ,even there for the duration it shows some random date, could you please guide on how to fix this? ie to show numeric values under duration than some random date.

0 Likes
Anonymous
Not applicable

I used this option to change the mouse over labels

mouseover label

0 Likes
markodonovan
Specialist
Specialist

Great post HIC.

I created a YouTube video inspired by this post :

https://youtu.be/rcufeWouaNI?list=PL_MZdEB4lwqxxZLE7dOzIyGg_99qUzViz

Thanks

Mark

techstuffy.tv

0 Likes
vvira1316
Specialist II
Specialist II

Hi Henric,

I found your example very useful in my situation but I've challenge in getting offset work correctly as can be seen in screen shot I've included.

I'll appreciate any help/guidance in the matter.

BarOffsetIncorrect2.png

Thanks & Regards,

Vijay

0 Likes
hic
Former Employee
Former Employee

It is difficult for me to assess what's wrong, since I don't know how you have defined your fields. However, I still think you have the wrong formulas. In principle, you should use

     Duration: Max(End)-Min (Start)

     Offset:   Min(Start)

But you use

     Duration: Max(Start)-Max(End)

     Offset:   Max([TL Offset])

which seems wrong to me...

HIC

vvira1316
Specialist II
Specialist II

Hi Henric,

Thanks for your reply. I was able to solve it as calculation Max(Start)-Max(End) resulted in negative value it was showing on left instead of right. Once I changed it to Max(End)-Max(Start) it worked fine. The reason for this is that End date time is after the start.

TimeLineSample.png

=Max({<[TL Event]>}[TL End Date Time]) - Max({<[TL Event]>}[TL Start Date Time])

=Max({<[TL Event]>}[TL Start Date Time])

Best Regards,

Vijay

0 Likes
demonioazul
Creator
Creator

Something like this for Qlik Sense?

0 Likes
hic
Former Employee
Former Employee

Currently, it is not possible to make a Gantt chart in Qlik Sense if you use the native client.

But if you instead use the APIs and write your own extension, you can do it. Luckily other people have done this already and shared their result on Qlik Branch. Take a look there: http://branch.qlik.com/#!/project 

ysj
Creator
Creator

Thank you .

0 Likes
joseph_eftamand
Partner - Creator
Partner - Creator

I'm trying to implement your solution but  I've come against an issue that's really strange:GChart.PNG

 The dates revert to 1900 dates as if showing the date value of the duration ex: date(460).

Have you come across this before?

Thanks,

Joseph

 

0 Likes
Version history
Last update:
‎2012-06-05 09:15 AM
Updated by:
Former Employee