Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Add line items together

This is a sample of the data I load

 

ProductID

OrderID

Supplier

Total

77

80100

Advantage Parts Solutions

$5,025

77

80100

Advantage Parts Solutions

$5,025

77

80100

Advantage Parts Solutions

$5,025

 

I want to create a Qlik Sense table with an expression that will sum the 3 line items from the sample above to equal $15,075, however when I attempt to do so, with my current expressions, below is the Qlik Sense table I produce.

 

ProductID

OrderID

Supplier

Sum(Distinct[Total])

Sum([Total])

77

80100

Advantage Parts Solutions

$5,025

$45,225

 

Can you help?

1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

Tr y this - Sum(TOTAL <ProductID, OrderID, Supplier> Total)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

2 Replies
Anil_Babu_Samineni
MVP
MVP

Tr y this - Sum(TOTAL <ProductID, OrderID, Supplier> Total)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresB
Champion III
Champion III

This seems to be a data model issue. If you load only this table using INLINE, the problem should not be there. Could you try that and let know?