Skip to main content
Announcements
Qlik Introduces a New Era of Visualization! READ ALL ABOUT IT
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to create an identical table with restricted selected lines?

Hello,

I have a table like this, where the Planned quantity and the Delivered quantity are expressions:

OrderPlannedDelivered
15050
210020
31500

I would like to do another table, identical to this one, but only select the lines where the Delivered quantity = 0

For example, my new table would contain only the last line of this example:

OrderPlannedDelivered
31500

How can i do this please?

Thanks,

Regards,

Loïc

1 Solution

Accepted Solutions
swuehl
MVP
MVP

If  order is your dimension then you try these two expression:

Planned:

=If( YourOriginalDeliveredExpressionComesHere = 0, YourOriginalPlannedExpressionComesHere, 0)

Delivered:

=0

and enable 'suppress zero values' on presentation tab

View solution in original post

6 Replies
swuehl
MVP
MVP

Add this to your LOAD script:

NOCONCATENATE LOAD

LOAD Order,

          Planned,

          Delivered

RESIDENT YourTable

WHERE Delivered = 0;

DROP TABLE YourTable;

Anonymous
Not applicable
Author

You can take a resident of same Table like

Load

*

Resident TableName where Order='3';

Use noconcatenate as it will automatically concat it and rename the fields name as well...

You can use Qualify/Unqualify as well for renaming

Anonymous
Not applicable
Author

What are you Planned and Delivered expressions ?

Not applicable
Author

Thanks for your reply.

I know this would work but i would prefer to do this outside of the script cause the amount of lines is huge...

Anonymous
Not applicable
Author

Outside the script means?

if you want to use in QV, then it should be in QV...

swuehl
MVP
MVP

If  order is your dimension then you try these two expression:

Planned:

=If( YourOriginalDeliveredExpressionComesHere = 0, YourOriginalPlannedExpressionComesHere, 0)

Delivered:

=0

and enable 'suppress zero values' on presentation tab