Skip to main content
Announcements
Live today at 11 AM ET. Get your questions about Qlik Connect answered, or just listen in. SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Table Merging In Script

I'm loading data into my solution as in the below:

// Status table

Status:

Load * Inline

[Category

In Progress

Awaiting Initial Audit Check

Awaiting Start Date

Start Date Arranged - Contract to be issued

Awaiting Signed Contract

Awaiting Final Audit Check

Awaiting Signed Tracking Form

Complete

On Hold / Withdrawn];

// Overview Table

CorporateOverview:

LOAD

          [Business Unit],

          [In Progress],

          [Awaiting Initial Audit Check],

          [Awaiting Start Date],

          [Start Date Arranged - Contract to be issued],

          [Awaiting Signed Contract],

          [Awaiting Final Audit Check],

          [Awaiting Signed Tracking Form],

          [Complete],

          [On Hold / Withdrawn],

          [Total]

FROM $(vSpreadName)  (ooxml, embedded labels, table is 'Some Name'')

where RowNo()<12;

Once I've got the data, is it possible to create a new table with something like the below:

Business Unit      StatusType          Value

1                         In Progress          50

1                         Complete             20

etc

This would give me the axes I need to draw a graph I'm struggling to create at the minute.

Thanks

1 Solution

Accepted Solutions
giakoum
Partner - Master II
Partner - Master II

Hope attached example helps!

View solution in original post

5 Replies
giakoum
Partner - Master II
Partner - Master II

Hope attached example helps!

Not applicable
Author

That is absolutely superb, thanks Ioannis! I thought it must've been a simple solution. For those that can't open the spreadsheet, Ioannis' solution is to apply a CrossTable() function.

Not applicable
Author

I actually have another question re: the crosstable function. It works perfectly, except for the fact all the rows in the Status column are prefixed with the name of the table. That isn't an issue in your test app, because you've only got one table.

Any ideas?

giakoum
Partner - Master II
Partner - Master II

Are you using Qualify command somewhere in your script?

A sample application would help.

Not applicable
Author

Once again, you've got it. Forgot I had a Qualify statement above the table import, moved the table and I'm in business. Thanks Ioannis.