Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
flygstolen_fred
Creator
Creator

If nested table contains specific row

Hi,


I'm trying to get a list of all orders done that contains a specific productcode that starts with "JFH".

I tried with "Only"-function but I doesn't seem to work. Any help very appreciated, thanks!

Order:

OrderIdOrderNameOrderDate
123Mikael Persson2017-01-09

Invoice:

InvoiceIdInvoiceDateOrderId
78652017-01-10123

InvoiceLine:

InvoiceLineIdProductCodeProductPriceInvoiceId
56001JFH-FEE1007865
14 Replies
flygstolen_fred
Creator
Creator
Author

I'm still stucked with only the "false"-alternative.

sunny_talwar

Would you be able to share a sample where you are trying to do this?

flygstolen_fred
Creator
Creator
Author

Hi Sunny,

I seems to work if the "order" only contains products that fulfills the condition, but not when the order also have other products.

Thanks again!

sunny_talwar

My bad, try this

=Aggr(If(WildMatch(Concat({1}DISTINCT '|' & ProductCode & '|', ','), '*|JFH*|*'), 'True', 'False'), OrderId)

flygstolen_fred
Creator
Creator
Author

Thanks Sunny for helping out and your patience.