Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
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!