Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
devender
Contributor II
Contributor II

Sales Vs All Sales Vs Total Sales

Hi,

I have a table as below.

Product       Sales
Pro1               10
Pro2               20
Pro3               30
Pro4               70.

Now my question is what  would be Sum(Sales),Sum(All Sales),Sum(Total Sales)

Labels (1)
1 Solution

Accepted Solutions
Andrei_Cusnir
Specialist
Specialist

Hello,

 

I am not 100% sure that I have understood what you mean by Sum(All Sales) vs Sum(Total Sales). However, the 3 different type of Sales calculations that I can think of are the following ones:

 

1. I have the following dataset (Slightly more values from yours):

 

2. Now we have the following Sales calculations:

  • Sum(Sales) gives you the value that you have under column Sales
  • Aggr(Sum(Sales), Product) calculates the total sales per product, so you can see that it accumulates the total of Sales per product
  • Sum(TOTAL Sales) will give you the sum of Sales for the entire dataset

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members. 
 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂

View solution in original post

1 Reply
Andrei_Cusnir
Specialist
Specialist

Hello,

 

I am not 100% sure that I have understood what you mean by Sum(All Sales) vs Sum(Total Sales). However, the 3 different type of Sales calculations that I can think of are the following ones:

 

1. I have the following dataset (Slightly more values from yours):

 

2. Now we have the following Sales calculations:

  • Sum(Sales) gives you the value that you have under column Sales
  • Aggr(Sum(Sales), Product) calculates the total sales per product, so you can see that it accumulates the total of Sales per product
  • Sum(TOTAL Sales) will give you the sum of Sales for the entire dataset

 

I hope that this information was helpful. In case I have misunderstood the use case scenario, please elaborate in details by providing additional information. However, if it has helped you resolve the issue, addressed your concerns or at least pointed you in the right direction, please mark it as Accepted Solution to give further visibility to other community members. 
 

Help users find answers! Don't forget to mark a solution that worked for you! 🙂