Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Sum

Hi

In my QV document I have data in the following manner

TYPESEQNos
CLAIM_PAY_NOS1610,376
COMM_ENTRIES1454,350
COMM_PAYMENT174,737
COMM_PAYMENT204,737
COMM_REVERSAL153,805
CREDIT_NOTES104,920
DEBIT_NOTES925,689
JOURNAL_ENTRY2719,908
JOURNAL_ENTRY2819,908
NPCREDIT_NOTES491,543
POLICIES-56,697
RECEIPTS761,382
RECEIPTS861,382
RECEIPTS1161,382
RTN_CHEQUE48331
SUNDRY_PAYMENT188,315
SUNDRY_PAYMENT218,315

I want to sum this to obtain and out put like the table below . But I am unable to do since some type are dupicated with nos Pls help me to take output report

TYPENos
CLAIM_PAY_NOS10,376
COMM_ENTRIES54,350
COMM_PAYMENT4,737
COMM_REVERSAL3,805
CREDIT_NOTES4,920
DEBIT_NOTES25,689
JOURNAL_ENTRY19,908
NPCREDIT_NOTES1,543
POLICIES56,697
RECEIPTS61,382
RTN_CHEQUE331
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Use simple table object with Nos and Type fields.

Or use pivot table and in expression use:

Sum(DISTINCT Nos)

Screenshot_1.jpg

View solution in original post

6 Replies
vinieme12
Champion III
Champion III

Load Distinct TYPE

min(SEQ),

min(Nos)

From YourTable

Group by TYPE;

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.
upaliwije
Creator II
Creator II
Author

There are  some more fields in my Document If I group it It will affect my other Calculations as well. Is there any other way to get my result without reloading data

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

Use simple table object with Nos and Type fields.

Or use pivot table and in expression use:

Sum(DISTINCT Nos)

Screenshot_1.jpg

satheshreddy
Creator III
Creator III

Hi Upali,

can you check the below Script For your Output?

test.JPG

Regards

Sathish

satheshreddy
Creator III
Creator III

Hi Upali,

Use straight and write the below condition. you will get the out put.

Dimension --- TYPE

Exp --- Sum(Distinct Nos)

Regards

Sathish

vinieme12
Champion III
Champion III

Sum(Distinct Nos)

Or

Avg(Nos)

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.