The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
[SOLVED] How I can accumulate values?
AreliBallina
Member Posts: 8 Contributor II
Hello all!!
I 'm trying to obtain a cumulative values for then select only the values that generate 80%.
I'm expecting the column "NewValue" (accumulated)
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.15 (0.09+0.06)
3 0.2 0.35 (0.15+0.2)
4 0.4 0.75 (0.35+0.4)
5 0.05 0.8 (0.75+0.05)
6 .... .....
But instead this, I obtain the same column %TA
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.06
3 0.2 0.2
4 0.4 0.4
5 0.05 0.05
6 .... .....
The operators I'm using are:
1) Generatte attibute
attribute name: NewValue
function expressions: 0
2) Set macro
macro: accumulate
value: 0
3)Loop examples
interation macro: example
Inside Loop examples:
4) Extract macro
macro: value
macro type: data_value
attibute name: %
example index: %{example}
5) Generate Macro
macroname: new
functions expressions: %{accumulate}+%{value}
6) Set Data
example index: %{example}
attibute name: Newvalue
value: %{new}
Could you have any idea to how solve this??
Thank you!!!
Areli
I 'm trying to obtain a cumulative values for then select only the values that generate 80%.
I'm expecting the column "NewValue" (accumulated)
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.15 (0.09+0.06)
3 0.2 0.35 (0.15+0.2)
4 0.4 0.75 (0.35+0.4)
5 0.05 0.8 (0.75+0.05)
6 .... .....
But instead this, I obtain the same column %TA
Numb %TA NewValue
1 0.09 0.09
2 0.06 0.06
3 0.2 0.2
4 0.4 0.4
5 0.05 0.05
6 .... .....
The operators I'm using are:
1) Generatte attibute
attribute name: NewValue
function expressions: 0
2) Set macro
macro: accumulate
value: 0
3)Loop examples
interation macro: example
Inside Loop examples:
4) Extract macro
macro: value
macro type: data_value
attibute name: %
example index: %{example}
5) Generate Macro
macroname: new
functions expressions: %{accumulate}+%{value}
6) Set Data
example index: %{example}
attibute name: Newvalue
value: %{new}
Could you have any idea to how solve this??
Thank you!!!
Areli
0
Answers
example process:
Dortmund, Germany
Thank you very much!! I downloaded the extension, tried it and it fixed!!
Regards!!
Areli