cancel
Showing results for 
Search instead for 
Did you mean: 

Rankby Top5 values in a chart usign a script

Bobbo
Explorer
0 Kudos
87

Dimension: Country
Measure: Total Number

Can you please help me with the syntax as I am facing issue with the code.

Chart_1.rankby("xxx", RankOrder.Top, value:5)

Can you help me with what type of syntax/value I have to replace the "xxx", is it a script variable with type number/string etc. which I have to create or is something else?

Thank you.

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

Vitaliy-R
Developer Advocate
Developer Advocate
0 Kudos

I am not that familiar with this API, but by looking at the documentation https://help.sap.com/doc/1639cb9ccaa54b2592224df577abe822/release/en-US/index.html#ChartRankOptions I assume it should be a JSON, like

Chart_1.rankby({structureMember: "xxx", RankOrder:Top, value:5})

Could you try?