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: 
Not applicable

Percentages in expanded pivot table

I have a pivot table with a calculated dimension, and am trying to get percentages to the calculated dimension level.

Collapsed, the percentages are fine. Expanded, '-' populated cells show up. I've worked over aggr with this with no luck. Sample aggr:

(sum(total_claim_count) / (aggr(sum(claim_count), claim_name, claim_status))

The calculated dimension involves three 'if' statements and does not plug into the aggr.

This has used up my blood on the keyboard supply for the weekend.

Help vastly appreciated.

kencho

1 Solution

Accepted Solutions
Not applicable
Author

The solution is:

(sum(total_claim_count) / (aggr(nodistinct sum(claim_count), claim_name, claim_status))

nodistinct is what does the trick!

View solution in original post

4 Replies
sathishkumar_go
Partner - Specialist
Partner - Specialist

Hi

I understand ur problem. Better attach ur here?

-Sathish

Not applicable
Author

The solution is:

(sum(total_claim_count) / (aggr(nodistinct sum(claim_count), claim_name, claim_status))

nodistinct is what does the trick!

Not applicable
Author

Thank You. Thank You. Thank You!Smile

pablolabbe
Partner Ambassador
Partner Ambassador

Why, nodistinct does the trick ?