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: 
Anonymous
Not applicable

Unique Value Table and Summing All Values

Hello Everyone,

I have a challenge at work where I need to take a list of vendors, which contains a significant amount of duplicates, create a distinct table of vendors and within that table have a column that has the total quantity supplied by the vendor.  Here is an example data set below:

Vendor NameQTY Supplied

Vendor A

5
Vendor A3
Vendor A1
Vendor B2
Vendor B3
Vendor B1
Vendor C7
Vendor D2

I need a table created that looks like the following:

Unique Vendor NameTotal QTY Supplied
Vendor A9
Vendor B6
Vendor C7
Vendor D2

So far, I've created the distinct table of vendors by using LOAD DISTINCT [XXXX] from the source, but I am not sure how to handle getting the total QTY column generated from the original data set to tie into my distinct table.

Any help would be greatly appreciated!!!

1 Solution

Accepted Solutions
squeakie_pig
Creator II
Creator II

Something like this might work for you

Load

VendorName,

Sum(qty) as TotalQTY

Group by VendorName;
Load distinct

VendorName,

Qty

From table

View solution in original post

3 Replies
squeakie_pig
Creator II
Creator II

Something like this might work for you

Load

VendorName,

Sum(qty) as TotalQTY

Group by VendorName;
Load distinct

VendorName,

Qty

From table

adamdavi3s
Master
Master

can you just not create a visual table chart with vendor as the dimension and sum(quantity) as the expression?

Anonymous
Not applicable
Author

This suited my needs perfectly, thanks!