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

PivotGrid - Expression - Aggr with less dimension

Hi! I'm using a pivot grid

I need an expression with a calculated value using every dimension in pivot grid except one.

I can't show this value in every record of the pivot grid.

I attach an example:

Thanks

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

I think you are experience a common Aggr() pit fall, a dimensional grain mismatch.

Pitfalls of the Aggr function

Try

=sum( Aggr(NODISTINCT ($(tMontoTraza_Pura)),PTOEspecie,MANIDestino,PTOProduccionTipo, PTOCalidad,PTORango_Ag))


or maybe


=sum(TOTAL<PTOEspecie,MANIDestino,PTOProduccionTipo, PTOCalidad,PTORango_Ag>

Aggr( ($(tMontoTraza_Pura)),PTOEspecie,MANIDestino,PTOProduccionTipo, PTOCalidad,PTORango_Ag))

View solution in original post

2 Replies
swuehl
Champion III
Champion III

I think you are experience a common Aggr() pit fall, a dimensional grain mismatch.

Pitfalls of the Aggr function

Try

=sum( Aggr(NODISTINCT ($(tMontoTraza_Pura)),PTOEspecie,MANIDestino,PTOProduccionTipo, PTOCalidad,PTORango_Ag))


or maybe


=sum(TOTAL<PTOEspecie,MANIDestino,PTOProduccionTipo, PTOCalidad,PTORango_Ag>

Aggr( ($(tMontoTraza_Pura)),PTOEspecie,MANIDestino,PTOProduccionTipo, PTOCalidad,PTORango_Ag))

Not applicable
Author

Yes!! With TOTAL it works. Thanks for the solution and the blog link!