on 2019 Aug 02 7:00 AM
Hello All,
I am trying to display aggregated sum of a Measure value in a Text box.
I am able to display Measure Name using a Global script variable and then assigning a default value to it
But could not display measure value.
Is it possible to do so?
Thanks,
Sarthak Srivastava
Hi Sarthak,
I am able to achieve the same using script in SAP Analytics Cloud Application Designer.
We need to find the measure class and the id. You can take the help of console function and get the measure class and ID of measure you want to refer.
console.log(Chart_1.getDataSource().getMeasures());
After getting the desired measure ID from console log. you can use the below code to populate text with measure value.
Text_2.applyText(Chart_1.getDataSource().getData({"@MeasureDimension": "[Account].[parentId].&[Size]"}).formattedValue);
Regards,
Hithesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello tuncay.karaca ,
I agree its a good method, but I still wanted to know how can we do it using a script.
For example I can fetch a dimension column data using this in Analytics designer:
Chart_Name.getDataSource().getMembers("DimensionName");
Similarly there must be a way to extract measure values too.
If I can do it I can then set this value as a global script and use it in a Dynamic Text.
Thanks & Regards,
Sarthak Srivastava
Hi nikhil.joy2,
Thank you for reply, But I know about this graph,
What I am trying to do is display multiple measures in a sentence:
Example:
Company raises <Cost from DataSource> more funds.
This might be possible in Analytics Application in SAC but I am not able to find the exact function to use for this case.
Thanks,
Sarthak Srivastava
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
71 | |
11 | |
10 | |
10 | |
10 | |
8 | |
7 | |
7 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.