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

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

1 Solution

Accepted Solutions
swuehl
MVP
MVP

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

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!