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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Distinct with Sum - Set Analysis

Dear,

I need to Tab 01 and Tab 02 generate in Qlikview.

I am trying to Sum ({$} Sales) DISTINCT [Number]) but does not work, can someone help me?

Tab 01

NumberSalesStatus
00111157,02A
00111157,02B
00111157,02C
00111157,02A
00145615,06C
00145615,06B
0125791,60A
0129633,9A
0129633,9B

Tab 02 - Correct

NumberSales
00111157,02
00145615,06
0125791,60
0129633,9
Total77,58
5 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Use Number as dimension and max(Sales) or min(Sales) or avg(Sales) as expression. Set the Total Mode of the expression to sum of rows. Or use as expression sum(aggr(max(Sales),Number)).


talk is cheap, supply exceeds demand
Not applicable
Author

Distinct in thought because of the following situation.

See attached, please.

Not applicable
Author

A light???

Not applicable
Author

Hi,

Rebeca

nagaiank
Specialist III
Specialist III

The following script may be of help.

Data:

LOAD * INLINE [

    Number, Sales, Status

    001111, 57.02, A

    001111, 57.02, B

    001111, 57.02, C

    001111, 57.02, A

    001456, 15.06, C

    001456, 15.06, B

    012579, 1.60, A

    012963, 3.9, A

    012963, 3.9, B

    002939, 1.4, B

    002939, 1.4, C

];

Result:

NoConcatenate

LOAD Distinct Number, Sales Resident Data;