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

How to show correct value

Hi guys. I came upon this problem and do not know how to solve this. Basically I have the following data:

ItemAmountVolumes
F1111300
F2222200
S333310,000.00500
F5555100
F6666400
S444410,000.00500
20,000.00 2,000.00


This is a basic setup of an invoice. We sell 2 finished products (starting with F) as one set (starting with S). The system we are using allocates a sales amount to the SET which is correct. Thus we can sum(amount) an we will get total sales. The problem comes in with Volumes. If I sum(Volumes) I get double the number of volumes sold. How can I filter this so that it only shows the volumes of the SETS.

Thanks in advance.

1 Solution

Accepted Solutions
Miguel_Angel_Baeyens

Hello Christo

I'd use set analysis for that, something like

Sum({< Item = {"=Left(Item, 1) = 'S'"} >} Volumes)


Hope that helps

View solution in original post

4 Replies
Not applicable
Author

So you want the total for F and the total for S. You are asking to sum volumes for only specific items?

Or am i getting this wrong?

Not applicable
Author

Yes, that is exactly what I want to do. If I sum only F I loose the amount part of S and the otherway around.

Miguel_Angel_Baeyens

Hello Christo

I'd use set analysis for that, something like

Sum({< Item = {"=Left(Item, 1) = 'S'"} >} Volumes)


Hope that helps

Not applicable
Author

Great. It works.

Thank you for the help.