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

Merge bars on Gantt chart

Hello,

I have a Gantt chart where each technology is broken up into two phases. I've plotted these onto the Gantt chart, but it shows the phases on two separate lines. Is there a way to merge it onto one?

Screenshot below shows each technology taking up two lines. Thanks

Gantt.pngHello,

1 Solution

Accepted Solutions
Nicole-Smith

See the attached.

1. Removed Bar Offset from Duration_Retire expression.

2. Changed to Stacked.

3. Added min Axis as =min(Legacy_StartDate).

View solution in original post

10 Replies
Not applicable
Author

Hi,

You can try looking into http://community.qlik.com/docs/DOC-3113

Not excatly what you are looking for but might be of help.

datanibbler
Champion
Champion

Hi Thuy,

sorry, I have no experience specifically with this chart_type - it looks very much like a flipped barchart, though.

=> In principle, it might be possible to stack the columns - depends on the values

<=> How would you then want to handle those "columns" where the phases overlap, like they did e.g. for "PowerEdge"?

Best regards,

DataNibbler

israrkhan
Specialist II
Specialist II

i think there is two expressions and check your offset property, id is sets , clear it,

usually negatives values goes under base, mean 0.

can you share documents. or sample...

Not applicable
Author

I've tried to stack the columns but it does not work.

Please see sheet1

Nicole-Smith

The stacked won't work for you because you have bars that "overlap".  I'm not sure how you expect your bars to be merged into one line when you have values like PowerEdge that overlap.  How would you expect PowerEdge to look after it has been merged into one line?

Not applicable
Author

If you take the bar offset off the expressions and select stacked in style the bars merge, but the Today reference line disappears....it has to do with your date fields as well...they have years as early as 1900...seems odd.

Not applicable
Author

Good spot Nicole, PowerEdge shouldn't overlap. That was a typo in the data. I've reloaded it and it should look like this.

The next phase starts when the previous one ends.

Gantt.png

Not applicable
Author

Hello Christian,

Yes I tried your suggestion and I don't understand why it goes back to 1900. None of my dates follow this.

This is the exact data in which I am using

TechnologyNameLifecyclePhaseLegacy_StartDateLegacy_EndDateRetire_StartDateRetire_EndDate
SAN SwitchRetire01/01/201318/12/201319/12/201307/10/2014
PowerEdgeRetire07/10/201314/11/201315/11/201302/02/2014
TapesLegacy02/01/201404/03/201405/03/201401/04/2014
Windows ServerRetire11/09/201406/10/201407/10/201407/10/2016
NetbackupRetire15/01/201402/04/201403/04/201410/12/2015
eServerRetire10/10/201330/12/201331/12/201306/05/2015
StorageWorks EVALegacy18/12/201221/01/201322/01/201316/03/2014
PowerVaultLegacy18/08/201317/10/201318/10/201306/06/2014
Tape LibraryLegacy02/09/201304/11/201305/11/201318/10/2014
HP BarcodeRetire02/02/201326/11/201327/11/201315/02/2014
RedHat Enterprise LinuxLegacy18/11/201322/02/201423/02/201422/03/2014
Windows XPRetire12/12/201322/01/201423/01/201428/02/2014
Nicole-Smith

See the attached.

1. Removed Bar Offset from Duration_Retire expression.

2. Changed to Stacked.

3. Added min Axis as =min(Legacy_StartDate).