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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

practising QV

Hi All,

I have to merge 2 bar chart into one.

here I attached QVW, it contains Old status & New Status in 2 seperate bar charts. I need it in one chart which needs to show Old & New chart side by side.

Thanks..

1 Solution

Accepted Solutions
MarcoWedel

Hi,

one possible solution could be:

QlikCommunity_Thread_134243_Pic1.JPG.jpg

QlikCommunity_Thread_134243_Pic2.JPG.jpg

QlikCommunity_Thread_134243_Pic3.JPG.jpg

QlikCommunity_Thread_134243_Pic4.JPG.jpg

table1:

LOAD *,

     AutoNumberHash128(ID,Count,Country) as %Key;

LOAD ID,

     Count,

     Country,

     Status,

     NewStatus

FROM

[Status report.xlsx]

(ooxml, embedded labels, table is Sheet1);

table2:

CrossTable (StatusName, CombinedStatus)

LOAD %Key,

     Status,

     NewStatus

Resident table1;

hope this helps

regards

Marco

View solution in original post

4 Replies
MarcoWedel

Hi,

one possible solution could be:

QlikCommunity_Thread_134243_Pic1.JPG.jpg

QlikCommunity_Thread_134243_Pic2.JPG.jpg

QlikCommunity_Thread_134243_Pic3.JPG.jpg

QlikCommunity_Thread_134243_Pic4.JPG.jpg

table1:

LOAD *,

     AutoNumberHash128(ID,Count,Country) as %Key;

LOAD ID,

     Count,

     Country,

     Status,

     NewStatus

FROM

[Status report.xlsx]

(ooxml, embedded labels, table is Sheet1);

table2:

CrossTable (StatusName, CombinedStatus)

LOAD %Key,

     Status,

     NewStatus

Resident table1;

hope this helps

regards

Marco

Not applicable
Author

Hi Marco,

Thanks for your help. Can you please tell me what is the purpose of "AutoNumberHash128" & "CrossTable " ?

MarcoWedel

Hi,

I wanted to create an additional dimension StatusName and a combined status field.

Instead of integrating it into your table, I chose to create a seperate table which had to be linked to the corresponding rows. (Integrating in the table would have duplicated the rows -> possible count issues)

To create a key field, I used the Autonumberhash128 function, which creates a unique key value per distinct combination of the ID, count and country fields.

The Crosstable load created the additional table with status and Newstatus in seperate rows instead of seperate fields/columns.

hope this helps

regards

Marco

Not applicable
Author

Hi Marco,

Bit confusing, but I will try to understand. Thanks for your help.