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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Count Field

Hi Friends

I have attached my QV document with some claim data. My pivot table looks as follows

Screenshot_1.png

I want to add another coloum to this with Nos. That if int_month=Prv_mon I want add 1 my output table should look like below.pls help me to, accomplish this task

Screenshot_2.png

Labels (1)
1 Solution

Accepted Solutions
Anil_Babu_Samineni
MVP
MVP

May be this for Nos

If(SUM(PROVISION)>0 and PRV_MON = INT_MON,1,'No Records Matching')

Capture.PNG

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

5 Replies
tresB
Champion III
Champion III

PFA

upaliwije
Creator II
Creator II
Author

Thanks for your reply, But here the total does not display for NosScreenshot_1.png

Anil_Babu_Samineni
MVP
MVP

May be this for Nos

If(SUM(PROVISION)>0 and PRV_MON = INT_MON,1,'No Records Matching')

Capture.PNG

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
Anil_Babu_Samineni
MVP
MVP

This?

Sum(Aggr(If(SUM(PROVISION)>0 and PRV_MON = INT_MON,1), CLAIM_NO, INT_MON, PRV_MON))

Capture.PNG

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
tresB
Champion III
Champion III

Just put sum() around the expression like:

Sum(If( PRV_MON=INT_MON,1))