Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

filter pivot table with original column

Hello community,

In a pivot table i'm trying to build an expression, in this expression I want to sum column A values when column B is equal to X. column B is also a pivoting dimension on the same table so I've tried with:

=sum( if(columnB=X, Alt(columnA,0) ))

or

=sum( {1<columnB= {X}>} Alt(columnA,0) )

but the expression only consider the values of columnB of that part of the chart.

I would like to consider all the data of the original table ignoring the current chart position.

I'm trying to be as clear possible but I'm still learning basic qlik's terminology.

Also I'm not sure about the place to post this in

Thanks for any advice

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

I found out that the TOTAL keyword was what I was searching so my solution is:

=sum( TOTAL if(columnB=X, Alt(columnA,0) ))

View solution in original post

4 Replies
el_aprendiz111
Specialist
Specialist

Hi Ricardo

Would you be able to share a sample?

Anil_Babu_Samineni

May be this?

=sum( {1<columnB *= {X}>} Alt(columnA,0) )


Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anonymous
Not applicable
Author

I found out that the TOTAL keyword was what I was searching so my solution is:

=sum( TOTAL if(columnB=X, Alt(columnA,0) ))

Anil_Babu_Samineni

Please mark yourself as correct answer

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful