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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Expression

Hi everyone!

I have these three tables:

 

Order no
100
200
300
400

   

javascript:;Order noitem numberQ
100A1
200B2
400D3
300E4

 

item numberconversion rate
A2
B3
D6

I want to show the order number with no conversion rate, I mean, Order number 300.

   answer:

Order noQ
300400

How we can do that?

1 Solution

Accepted Solutions
woshua5550
Creator III
Creator III

[Order no] as dimentsion

Sum({<[Order no] = E({<[conversion rate]=p([conversion rate])>})>}Q) as measure

PFA

View solution in original post

5 Replies
devarasu07
Master II
Master II

Hi,

Try like below,

Table:

LOAD * INLINE [

    Order no

    100

    200

    300

    400

];

Table3:

LOAD * INLINE [

    item number, conversion rate

    A, 2

    B, 3

    D, 6

];

Table2:

load * Inline [

Order no, item number, Q

100, A, 1

200, B, 2

400, D, 3

300, E, 4] where not Exists([item number],[item number]);

Capture.JPG

woshua5550
Creator III
Creator III

[Order no] as dimentsion

Sum({<[Order no] = E({<[conversion rate]=p([conversion rate])>})>}Q) as measure

PFA

Anonymous
Not applicable
Author

Hi Dave Lau

thanks, it works, how about this situation, I want to add a new table , so as you can see the E and F item number does not have a conversion rate but I just would like to show type 2, therefore the answer should be F,how can I do that?

 

Order no
100
200
300
400
500

   

Order noitem numberQ
100A1
200B2
400D3
300E4
500F3

  

item numberconversion rate
A2
B3
D6

  

item numbertype
A1
B1
D1
E1
F2
woshua5550
Creator III
Creator III

just add a condition in expression

Sum({<[Order no] = E({<[conversion rate]=p([conversion rate])>}),type = {2}>}Q)

Anonymous
Not applicable
Author

thanks, it was useful.