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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
upaliwije
Creator II
Creator II

Sum

Hi,

In my QV Docuemnt I have following data

    

POLICY_NOCLAIM_NORisk(Nos)
CO30151B0003813CLCO301B1600000221
CO30151B0003813-22
Total 43

I want to show max Risk(nos) in the total row of my pivot table . But I get 43 as shown above my expression is

sum(DISTINCT RISK).

Pls help me to correct it

1 Solution

Accepted Solutions
Anil_Babu_Samineni

Simple write


Max([Risk(Nos)])

Or

Aggr(Max([Risk(Nos)]),POLICY_NO)

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

3 Replies
Anil_Babu_Samineni

Instead of "43" what are you expecting to see? May be 22

Capture.PNG

Or this

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
upaliwije
Creator II
Creator II
Author

yes 22 How Can I write the expression

Anil_Babu_Samineni

Simple write


Max([Risk(Nos)])

Or

Aggr(Max([Risk(Nos)]),POLICY_NO)

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