cancel
Showing results for 
Search instead for 
Did you mean: 

Creating a custom measure or a calculated measure in Analytic Application using typescript

Hi all!

I am attempting to create a custom measure inside typescript and add it to one of my numeric charts.

How ever I am unfamiliar with any syntax that supports this action. I do not want to create a calculated measure inside the story as its not very flexible.

On the public API there is a function which allows to add a measure to a chart but I cannot craft a custom one.

TammyPowlas
Active Contributor
0 Kudos

Hi Dan - please help me understand why a calculated measure wouldn't work? What is the difference between a calculated measure and a custom measure?

I don't want to create a calculated measure inside the story, I want to create a measure using the typescript code and save it in a global variable, This would allow me flexibilty because it would depend on my code rather than formula calculations inside the story. Is it possible?

TammyPowlas
Active Contributor
0 Kudos

I don't see how; any chance the Math or Number functions might meet your requirements? https://help.sap.com/doc/958d4c11261f42e992e8d01a4c0dde25/2019.2/en-US/index.html

Well I managed to calculate what I need inside typescript, I just want to represent it inside the story. Is it possible to add a global variable inside a chart to be shown as a measure?

@dan.lisichkin, how did you manage to create a measure based on script ?

Accepted Solutions (0)

Answers (0)