Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
RCANEDO23
Contributor
Contributor

multi row references

Hi 

Does anyone know if I can make something like this: 

1. I have some service orders that have two rows for instance:

Client OrderSupplier OrderSupplier Product Sold (Output Needed)
Sale Order 1Buy Order 1Supplier n

Ocean

Sale Order 1Buy Order 2Supplier zOcean

 

I need to manually create a field called 'Product Sold' that would be like this

if(Supplier= 'Supplier z', 'AIR','OCEAN') as Product Sold

My problem is that, since I have two suppliers and my trigger to assign the product category will always be the final supplier but in the data model they are not always in the correct order, when I use the conditional it always uses the first row it finds so result is not always accurate. 

 

Can any one think in a better solution to make the propper product category allocation? 

 

Thanks!!

Labels (1)
0 Replies