Skip to Content
author's profile photo Former Member
Former Member

Component to display percentage value

Hello experts,

I need to add a chart/component in my application which will display a single numeric value(percentage format) based on a single keyfigure.

I don't need anything in x-axis or y-axis.Just the percentage value to be displayed.

Please help.

I am a beginner in SAP BO design studio.Any help would be appreciated.


Thanks,

Varsha

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 30, 2015 at 06:21 AM

    Hi Varsha,


    We had a similar requirement wherein we had to display a single numeric value as a Value / Percentage. So we developed a custom component which could do this. We also added quite a few formatting options like changing the no. of decimal places etc. Following are some screenshots of what we had developed:



    This is also available as part of our Design Studio Custom Extensions Suite ( DSX ) - http://visualbi.com/sap-design-studio/dsx-extensions/


    Best Regards,

    Sesha


    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Alfred,

      I am trying your above solution but it's not quite working for me. I wish to display a calculated value that is a percentage in a text box along with some text. I am using Design Studio 1.6.

      My source data from a universe is this:

      My global script function called 'pct' is this:

      var Complete = NUM_ACCREDITATIONS_STATUS.getData("OBJ_299", {"OBJ_122":"Complete"}).value;

      var Total = NUM_ACCREDITATIONS_STATUS.getData("OBJ_299","OBJ_122").value;

      var Percent = (Complete / Total) * 100;

      var formattedText = "Your MAST compliance is: " + Convert.floatToString(Complete,"#,##0.0")+"%";

      return formattedText;

      I now wish to output the formattedText value in a text box TEXT_1 so I have set up an On Startup Event as follows:

      When I execute the application the text value is not being displayed in the text box.

      What am I missing?

      Thanks,

      Chris

      source.PNG (47.1 kB)
      script.PNG (42.6 kB)
      onstartup.PNG (14.0 kB)
  • Posted on Jan 28, 2015 at 11:48 AM

    Please try using the KPI tile, which comes with the Design Studio SDK templates - see the help at SAP BusinessObjects Design Studio 1.4 – SAP Help Portal Page

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.