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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Pls help on Below Question

Hi,

Please help on below question:

Test:

LOAD * INLINE [F1, F2, SALES

A, X, 4

A, Y, 2

A, X, 2

B, Y, 3];

OutPut:

F1, Sales

A,6

B,3

Please exclude  A, Y, 2 in Test Table.

Regards

Ravi

1 Solution

Accepted Solutions
its_anandrjs
Champion III
Champion III

Write your load script like

Test:

LOAD *,F1&F2 as Key;

LOAD * INLINE

[

F1, F2, SALES

A, X, 4

A, Y, 2

A, X, 2

B, Y, 3

];

NoConcatenate

Data:

LOAD *

Resident Test  Where not Match(Key,'AY');

DROP Table Test;

Then take straight table

Dimension:- F1

Expression:- Sum(SALES)

View solution in original post

3 Replies
its_anandrjs
Champion III
Champion III

Write your load script like

Test:

LOAD *,F1&F2 as Key;

LOAD * INLINE

[

F1, F2, SALES

A, X, 4

A, Y, 2

A, X, 2

B, Y, 3

];

NoConcatenate

Data:

LOAD *

Resident Test  Where not Match(Key,'AY');

DROP Table Test;

Then take straight table

Dimension:- F1

Expression:- Sum(SALES)

Not applicable
Author

Thanks Anand

its_anandrjs
Champion III
Champion III

Another way of doping the same load your table like and add the Key field

Test:

LOAD *,F1&F2 as Key;

LOAD * INLINE

[

F1, F2, SALES

A, X, 4

A, Y, 2

A, X, 2

B, Y, 3

];

And take a straight table

Dimension:-F1

Expression:- Sum({<Key -= {'AY'} >} SALES)