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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

QV - Expression - Aggr, Set Analysis, Only and Filters

Hi! First of all, sorry for my English.

I can´t do something works.

I'm using a Pivot Grid and expressions with Aggr, Set Analysis and Only functions.

This is the data table.

%PCIIDPVIID%CONCEPTOPCIEstadoPVIEstadoBultos
1PEDIDOCLIENTEConfirmado100
2PEDIDOCLIENTEConfirmado200
3PEDIDOCLIENTEStand By300
1PLANVENTAConfirmado100
2PLANVENTAConfirmado100
3PLANVENTAConfirmado50
4PLANVENTAConfirmado50

My original (it works) is to have the Sum of "Bultos" of "PEDIDOCLIENTE", so, i use: Sum(Aggr(only({<%CONCEPTO={'PEDIDOCLIENTE'}>} %Bultos),%PCIID))

Now, i added a filter "PVIEstado", but, i want to show the result of the original expression in spite of the value of the filter. So, i tried whith 2 syntaxis but it doesn't work. I tried with:

  1. Sum(Aggr(only({<%CONCEPTO={'PEDIDOCLIENTE'},PVIEstado=>} %Bultos),%PCIID))
  2. Sum({<PVIEstado=>}Aggr(only({<%CONCEPTO={'PEDIDOCLIENTE'}>} %Bultos),%PCIID))


How can id do?

Thanks

Labels (1)
1 Solution

Accepted Solutions
Clever_Anjos
Support
Support

Try using both

Sum({<%CONCEPTO={'PEDIDOCLIENTE'},PVIEstado=>}Aggr(only({<%CONCEPTO={'PEDIDOCLIENTE'},PVIEstado=>} %Bultos),%PCIID))

View solution in original post

2 Replies
Clever_Anjos
Support
Support

Try using both

Sum({<%CONCEPTO={'PEDIDOCLIENTE'},PVIEstado=>}Aggr(only({<%CONCEPTO={'PEDIDOCLIENTE'},PVIEstado=>} %Bultos),%PCIID))

Not applicable
Author

Perfect!! Thanks Clever!