Skip to main content
Announcements
Introducing a new Enhanced File Management feature in Qlik Cloud! GET THE DETAILS!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

get records from qvd

Hi Folks,

I have a situation here:

I have set of orders for different cities. Each order has three status complete, draft and void. The data exists in the qvd.

Now for all cities I wish to get the orders in status complete but for only for 1 city say Delhi I wish to get the orders in status complete and draft both.

How do i get this done?

Help much appreciated.

Thank you.

1 Solution

Accepted Solutions
its_anandrjs

Hi,

Try to create the resident table to get the data in order status complete, draft and void

Source:

Load

Orders,

City,

status

From Source;

Noconcatenate

Load

Orders,

City,

status

From Source

Order By Match(status,'complete', 'draft','void');

Drop table Source;

Or

Source:

Load

Orders,

City,

status

From Source;

Noconcatenate

Load Orders,City,status

From Source where Match(status,'complete');

Concatenate

Load Orders,City,status

From Source where Match(status, 'draft');

Concatenate

Load Orders,City,status

From Source where Match(status,'void');

Drop table Source;


Regards

Anand

View solution in original post

1 Reply
its_anandrjs

Hi,

Try to create the resident table to get the data in order status complete, draft and void

Source:

Load

Orders,

City,

status

From Source;

Noconcatenate

Load

Orders,

City,

status

From Source

Order By Match(status,'complete', 'draft','void');

Drop table Source;

Or

Source:

Load

Orders,

City,

status

From Source;

Noconcatenate

Load Orders,City,status

From Source where Match(status,'complete');

Concatenate

Load Orders,City,status

From Source where Match(status, 'draft');

Concatenate

Load Orders,City,status

From Source where Match(status,'void');

Drop table Source;


Regards

Anand