Skip to main content
Announcements
Qlik Community Office Hours - Bring your Ideation questions- May 15th, 11 AM ET: REGISTER NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Incremental sum of fields

Hello!

I'm trying to make an incremental sum of fields.

Using an import table:

Test1Test2Test3Test4Test5Test6
111116
222221
333332
444443
555554
666665
777776
888887
999998

And one table with fields like that:

Test1Test2Test3Test4Test5Test6Expression1Expression2Expression3Expression4Expression5
111116Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
222221Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
333332Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
444443Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
555554Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
666665Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
777776Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
888887Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6
999998Test1+Test2Test1+Test2+Test3Test1+Test2+Test3+Test4Test1+Test2+Test3+Test4+Test5Test1+Test2+Test3+Test4+Test5+Test6

But instead use the formula, I want to use Variables like:

Test1Test2Test3Test4Test5Test6Expression1Expression2Expression3Expression4Expression5
111116Variable1Variable2Variable3Variable4Variable5
222221Variable1Variable2Variable3Variable4Variable5
333332Variable1Variable2Variable3Variable4Variable5
444443Variable1Variable2Variable3Variable4Variable5
555554Variable1Variable2Variable3Variable4Variable5
666665Variable1Variable2Variable3Variable4Variable5
777776Variable1Variable2Variable3Variable4Variable5
888887Variable1Variable2Variable3Variable4Variable5
999998Variable1Variable2Variable3Variable4Variable5

Where:

Variable1 = Test1+Test2

...

Variable5 = Test1+Test2+Test3+Test4+Test5+Test6

But is not working.

Can anyone help me?

Thanks

1 Solution

Accepted Solutions
Gysbert_Wassenaar

You need to remove the = from the expressions in the variables (so they are evaluated in the chart and not beforehand where the Teste fields don't have values yet) and dollar-expand the variables in the expressions in the straight table. See attached qvw.


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar

You need to remove the = from the expressions in the variables (so they are evaluated in the chart and not beforehand where the Teste fields don't have values yet) and dollar-expand the variables in the expressions in the straight table. See attached qvw.


talk is cheap, supply exceeds demand
Anonymous
Not applicable
Author

Hello Gysbert,

Thank You so Much!

I have tested without "=" before but didn't work because the way that I was calling the variable was wrong!

Now is perfect!