Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
RajaRajput28
Contributor II
Contributor II

Table total is not coming up correctly

Hi , I am creating 1 table in which I am showing Sales Revenue. As we have some dpulicates , So I am getting it up distinctly based on Sales_ID. In Qliksesne, I am getting correct sum for Sales_ID. But when it comes to table total , there sum is not coming up correctly . When i tried to check the reason behind this , it comes out that it's because of total is also taking up distinct only which is not expected. Can you please check. 

I am getting sum by using ==> Sum(distinct([Sales Revenue])) 

@sunny_talwar , @tresesco 

 

Sale_ID Sales Revenue 
12450
12350
12350
12350
12350
12350
22350
22350
22350
22350
31000
31000
31000
31000
31000
4300
4200
4500

 

 

RajaRajput28_0-1633018797729.png

 

1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

This should work:

sum(aggr(Sum(distinct([Sales Revenue])), Sale_ID))

View solution in original post

1 Reply
stevejoyce
Specialist II
Specialist II

This should work:

sum(aggr(Sum(distinct([Sales Revenue])), Sale_ID))