Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Sales by Product and Contract

Hello,

I would like to make the following calculation:

the sum of sales/ sum of sales by contract and calculate it monthly.

TEST.PNG

thank you

1 Solution

Accepted Solutions
Anil_Babu_Samineni

May be this?

Sum(Sales) / Sum(TOTAL <Contract, Month> Sales)

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

8 Replies
neha_shirsath
Specialist
Specialist

Hi Pablo,

I'm not getting what calculation you want.

Sum of sales/ sum of sales means?

Thanks.

jcampbell474
Creator III
Creator III

Please let me know if the attached file meets your requirements.

(The 'Test' table)

Anil_Babu_Samineni

May be this?

Sum(Sales) / Sum(TOTAL <Contract, Month> Sales)

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
mangalsk
Creator III
Creator III

Hello,

This will do:

sum(Sales)/sum(TOTAL <Contract>Sales)

Anonymous
Not applicable
Author

thank you both of you!! it works with the two options.

effinty2112
Master
Master

Hi Pablo

Try:

Sum(Sales)/Sum(TOTAL <Date, Product> Sales)

Date 201701201702
Product Contract NOYesNOYes
1 88%12%70%30%
2 26%74%41%59%

cheers

Andrew

veerendrakatika
Contributor III
Contributor III

please mark as current to close this thread.

arvind_patil
Partner - Specialist III
Partner - Specialist III

Hi Pablo,

I think right ans is:

Sum(Sales) / Sum(TOTAL <Contract> Sales)


Thanks,

Arvind Patil