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

Create Field in one table By using field in another table.

I have an inline :

items id , item descriptions,

1, Purchase

2,Sale

3,etc

4,Others Reciepts/issues

5,Other Reciepts/Issues

6,..

And I also have another table in which i  Got details of quantities.

where quantities have both Negetive and positive values .

Now i need

To Give them quantity details either purchase , or sale or other reciept or issues .But for issues and reciepts, i have to distinguish on the basis of their quantity and id if id is 4 and quantity positive reiciept other wise issues.. please help me. than you.

Here is the attachment also.

Message was edited by: sandeep subedi

6 Replies
sujeetsingh
Master III
Master III

Sandeep ,

you need to use nested if gor checking the conditions whether to take Reciepts or Issues.

Well can you provide the sample or explain in detail

tresesco
MVP
MVP

I guess you are using applymap(). Try using an IF along with the applymap for such exceptional cases, like:

If(ID=4 , If(Qty>0,'Reciept' , 'Issues'), ApplyMap( 'MapTable' , ID)) as QtyDetails

Not applicable
Author

I have attached one eg above. please Sir , have a look at it once.

Not applicable
Author

Hey sundeep,

do like this then you will get the quantity also

Quantity:

Mapping

LOAD ID,

     QTY

FROM

C:\Users\rb4\Downloads\EG.xls

(biff, embedded labels, table is [Sheet1$]);

Consolidated:

LOAD ID,

     NAME,

     ApplyMap('Quantity',ID) as Quantity

FROM

C:\Users\rb4\Downloads\EG.xls

(biff, embedded labels, table is [Sheet 1$]);

Regards,

Rajesh

Not applicable
Author

In this way I will get  purchase , sales , but if i need to distinguish misc reciept or issues that i need to do on the basis of quantity being positive or negetive. how can i solve it out.

Not applicable
Author

Please reply me .