Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for
Did you mean:
Creator III

## Value from Part A, show at Part B

Hello Together,

I need yout help again for a Problem.

I will aggregar the Value from Part A on the topic from Part B, show like this:

 Parts Value Shifted Total A 15 0 15 B 23 15 38

I tried to do it like that at Shifted:

``````if(Part=B,
sum({<Part={'A'}>}Value),
0
)``````

At Total I like to take some how that:

``````if(Part=B,
sum({<Part={'A'}>}Value) + sum(Value),
sum(Value)
)``````

How can it work, that I see the right Shift and Sum and not 0 at B.

Regards
Merry

Labels (2)

• ### Scripting

4 Replies
Former Employee

Use the following in a table:

Dimension: Parts
Measure1: Sum(Value) - Label it 'Value'
Measure2: Above(Sum(Value)) - Label it 'Shifted'
Measure3: RangeSum(Sum(Value),Above(Sum(Value))) - Label it 'Total'

Sort by Dimension.

Now, the question is what you want for Part C? If you want a full accumulation, you can do a

RangeSum(Sum(Value),Above(Accumulation)) - Label it 'Accumulation'

Creator III
Author

hat I thougth as well, but that not working, because I have 3 Parts and 2 of them sould geht the Value from the 3th one.

 A get the Value A + C B get the Value B + C C get the Value  C
Former Employee

You need to clarify the logic. What you write in the last comment is not the same as the original question.

Creator III
Author

There is not realy a logic, because there are 3 different Parts and one will get only the own Value and the other two sould get there own Value and that vrom the first one (in the Example above it is from Part C).

Is the logic importen, if there not more then they 3 it is just that Variant, how I discribe.

Community Browser