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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
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

1 Solution

Accepted Solutions
Anil_Babu_Samineni

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

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

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

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

Just put sum() around the expression like:

Sum(If( PRV_MON=INT_MON,1))