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

Orders with possible item

Hi all,

I am trying to get list all products and order value when a particular item exits in that order

Ex:

Order.noItem.noAmount
1225
1236
1247
2225
2225
2236
2299
2253
3225
3236
3236
3247
3299

Result: show only order contains item.no=24 and order totals

Order.noItem.no   Amount
12218
123
124
32233
323
323
324
329

I am using below expression to get totals

Sum({<[Item.no]={'24'}>}Aggr(Sum(TOTAL <[ Order.no]> {<[ Order.no = P({<[Item.no]={'24' }>}[ Order.no]),[Item.no]>}[Amount]),[ Order.no], [Item.no])) 

I want to get the all the items in orders. Is that possible??

1 Solution

Accepted Solutions
sunny_talwar

May be this

Sum(TOTAL <[Order.no]> {<[Order.no] = P({<[Item.no]={'24' }>}[Order.no]),[Item.no]>}[Amount])

Capture.PNG

View solution in original post

7 Replies
sunny_talwar

All items in orders? Not sure I understand? Can you elaborate?

effinty2112
Master
Master

Hi Madhu,

Does this give you what you need?

Order.no sum({$<Order.no = P({<Item.no = {24}>})>}Amount)
118
333

Regards

Andrew

sunny_talwar

May be this

Sum(TOTAL <[Order.no]> {<[Order.no] = P({<[Item.no]={'24' }>}[Order.no]),[Item.no]>}[Amount])

Capture.PNG

Kushal_Chawda

abhi me ye expression dalne hi wala tha.. but tera dekh k rook gaya

effinty2112
Master
Master

Hi Madhu,

A pivot table maybe gives a nice presentation.

Order.no Item.no sum({$<Order.no = P({<Item.no = {24}>})>}Amount)
1225
236
247
Total 18
3225
2312
247
299
Total 33
madhuqliklondon
Creator II
Creator II
Author

Thank you Andrew.

madhuqliklondon
Creator II
Creator II
Author

Thanks bhai.