Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
lukegilligan
Contributor III
Contributor III

Combining 3 charts back to 1

Was wondering if anyone may have a solution on how I cat re-sort 3 extracted tables back in to one table with all the timeline events sorted in to columns?

I have the following table:

AsseteffectiveDate eventID summary code 
12330/12/2019109653.0001From org. '109690' to '[VUT]'. Automatic tenant vacate: Vacate property from tenanted to [void/VUT][VUT]
12322/01/2020109657.0001From Org. '[VUT]' to '[Vacant]'[VACANT]
12329/01/2020109681.0001From Org. '[Vacant]' to '109599'. Automatic tenant move: Tenancy status changed from [Vacant] to [Tenanted]109599
12321/06/2020110726.0001From org. '109599' to '[VUT]'. Automatic tenant vacate: Vacate property from tenanted to [void/VUT][VUT]
12330/06/2020110839.0001From Org. '[VUT]' to '[Vacant]'[VACANT]
1238/07/2020110840.0001From Org. '[Vacant]' to '109870'. Automatic tenant move: Tenancy status changed from [Vacant] to [Tenanted]109870

 

This has been split in to the following 3 tables depending on the code

VUT

AssetVUT.effectiveDate VUT.eventID VUT.summary VUT.code 
12330/12/2019109653.0001From org. '109690' to '[VUT]'. Automatic tenant vacate: Vacate property from tenanted to [void/VUT][VUT]
12321/06/2020110726.0001From org. '109599' to '[VUT]'. Automatic tenant vacate: Vacate property from tenanted to [void/VUT][VUT]

 

VAC

AssetVAC.effectiveDate VAC.eventID VAC.summary VAC.code 
12322/01/2020109657.0001From Org. '[VUT]' to '[Vacant]'[VACANT]
12330/06/2020110839.0001From Org. '[VUT]' to '[Vacant]'[VACANT]

 

TEN

AssetTEN.effectiveDate TEN.eventID TEN.summary TEN.code 
12329/01/2020109681.0001From Org. '[Vacant]' to '109599'. Automatic tenant move: Tenancy status changed from [Vacant] to [Tenanted]109599
1238/07/2020110840.0001From Org. '[Vacant]' to '109870'. Automatic tenant move: Tenancy status changed from [Vacant] to [Tenanted]109870

 

My aim is to get to a table like below:

AssetVUT.eventID VUT.effectiveDate VAC.eventID VAC.effectiveDate TEN.eventID TEN.effectiveDate
123109653.000130/12/2019109657.000122/01/2020109681.000129/01/2020
123110726.000121/06/2020110839.000130/06/2020110840.00018/07/2020

 

I have no idea on how to associate the data tables back to rows where all I have to work with is an incremental date + EventID.

 

Any help would be very much appreciated.

Labels (1)
7 Replies
lukegilligan
Contributor III
Contributor III
Author

Anyone have any thoughts on this at all? Even just the right direction to start looking?

rushikale0106
Contributor III
Contributor III

Hello @lukegilligan ,

I don't know how much will it help you but if you need a direction to achieve the target table, then I will suggest you understand Joins.

Specifically, Inner Join. Try to achieve it with the SQL query first. 

Since the common column is present then it will be easier to get data in one table again.

Let me know if you need more help.

Regards,

Rushi

lukegilligan
Contributor III
Contributor III
Author

Thanks @rushikale0106  I understand the concept of joins, I am just struggling to find a way to associate 3 different states to the one row.

I am guess I need to somehow use the order of the property, then the eventID to make a key somehow, but am stuck to work out how.

Thanks for the suggestion though.

Brett_Bleess
Former Employee
Former Employee

I believe the only means of doing this would be Set Analysis in the table chart, here are some links that may be of some help, not sure if this is how you wanted to go at things or not, it might help in this case if you attach your QVW file, so folks can see the data model etc., as that will likely help in coming up with ideas on how to approach things too.

Design Blog area:
https://community.qlik.com/t5/Qlik-Design-Blog/A-Primer-on-Set-Analysis/ba-p/1468344
https://community.qlik.com/t5/Qlik-Design-Blog/Set-Analysis-in-the-Aggr-function/ba-p/1463822

Help Link:
https://help.qlik.com/en-US/qlikview/April2020/Subsystems/Client/Content/QV_QlikView/ChartFunctions/...

Sorry I do not have anything better, but my post will kick things back up, so someone else may see it again and try to offer something else, but I think you may need to provide a bit more information first if possible.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.
Saravanan_Desingh

One solution is.

VUT:
LOAD RowNo() As RowID,* INLINE [
    Asset, VUT.effectiveDate , VUT.eventID , VUT.summary , VUT.code 
    123, 30/12/2019, 109653.0001, "From org. '109690' to '{VUT}'. Automatic tenant vacate: Vacate property from tenanted to {void/VUT}", "{VUT}"
    123, 21/06/2020, 110726.0001, "From org. '109599' to '{VUT}'. Automatic tenant vacate: Vacate property from tenanted to {void/VUT}", "{VUT}"
];

Left Join(VUT)
VAC:
LOAD RowNo() As RowID,* INLINE [
    Asset, VAC.effectiveDate , VAC.eventID , VAC.summary , VAC.code 
    123, 22/01/2020, 109657.0001, "From Org. '{VUT}' to '{Vacant}'", "{VACANT}"
    123, 30/06/2020, 110839.0001, "From Org. '{VUT}' to '{Vacant}'", "{VACANT}"
];

Left Join(VUT)
TEN:
LOAD RowNo() As RowID,* INLINE [
    Asset, TEN.effectiveDate , TEN.eventID , TEN.summary , TEN.code 
    123, 29/01/2020, 109681.0001, "From Org. '{Vacant}' to '109599'. Automatic tenant move: Tenancy status changed from {Vacant} to {Tenanted}", 109599
    123, 8/07/2020, 110840.0001, "From Org. '{Vacant}' to '109870'. Automatic tenant move: Tenancy status changed from {Vacant} to {Tenanted}", 109870
];
Saravanan_Desingh

Output.

commQV71.PNG