Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
beck_bakytbek
Master
Master

Create in Scriptarea the key figures (as one expression)

Hi Folks,

i have a table with following fields:

Year, Account, Characteristic, Amount

2019, 4400, 4, 5

2019, 4401, 4, 4

2019, 4836, 1, 2

2019, 4937, 1, 4

explanation to above table:

the field: Characteristic consists of two values, where 4 - represents the Budget and 1 - represents the Cost.

my usse is, create within script-area one Expression, i solved this issue on userinterface with the help of set Expression as:

Sum({<Characteristic = {4}>}Amount)

Sum({<Characteristic = {1}>}Amount)

 

Does andyboday have any idea to this issue, namely how to create the above Expression in scriptarea? Thanks a lot in advance

Beck

 

 

Labels (1)
2 Replies
agni_gold
Specialist III
Specialist III

Aggregate data at the script level.
Vegar
MVP
MVP

Something like this could do the trick.

 

Load

Year,

Account, 

If(Characteristic=4, Amount) as BudgetAmount,

If(Characteristic=5, Amount) as CostAmount

inline [

Year, Account, Characteristic, Amount

2019, 4400, 4, 5

2019, 4401, 4, 4

2019, 4836, 1, 2

2019, 4937, 1, 4];