Skip to Content
0
Dec 20, 2018 at 11:20 AM

SAP Lumira Designer modify data from chart using code (dynamic calculations by code)

257 Views

Currently we are connecting the application to universes, as you know when you Edit Initial View it is possible use dynamics calculations in some cases but when we are using universes are not possible.

In our case we receive some data from each year:

year - amount

2000 - 7

2001 - 4

2002 - 6

2003 - 3

But in our Chart we want to use the accumulate for each year:

year - amount

2000 - 7

2001 - 11

2002 - 17

2003 - 20

Do you know if it's possible to do it by code?

selections = TEMPS_VIDA.getDataSelections({
	"OBJ_35": "?",
	"(MEASURES_DIMENSION)":"OBJ_18" 
});

selections.forEach(function (selection) {
	//modify the entrance date with the accumulate and then assign to the char
});