Pie Chart / Query : Top 3 and Remainder

Hi
I am trying to develop a template, which shows various exception information to the end user. There are approximately 20 exception scenarios which are analysed each night and data stored in the cube. This information is then related back to the end user via a simple web template.
I can show that data in a table nicely.
I have created an additional query with a "Top 3" condition applied, which results in the 3 exceptions that contribute the mos to the total being displayed. This query can then be used as the source for a pie chart, so the user can see graphically which are the most important exceptions to address.
I have now been asked to include a "remainder" item in that pie chart, or not have the pie chart add up to 100%. What the user wants to see, is what the top 3 exceptions were, and what all the other exceptions added up to, essentially the difference between 100% and the sum of the contribution (%) of the top 3.
I can write a query which displays the top 3, and include in that a result row which shows the sum of the percentages. So, for example, it will display the 3 and the total will be 87%, meaning the remaining errors contributed 13%, but how would I get this as an additional row in the query?
Alternately, is it possible to have a pie chart that doesn't add up to 100%. A pie chart that is incomplete in essence?
Any advice would be appreciated.
Cheers,
Andrew

Hi Andrew,
To show the value as a percentage and not have the total be 100%, you need to calculate the value in the query. Create a key figure to calculate the percentage and use a condition to only show the top 3. Conditions wont effect the totals or percentages so the total percentage won't add up to 100.
I don't think it's possible to show a 'other' value with the remainder.
Kind regards,
Alex

Similar Messages

  • Pie Chart Legend - colors and sorting value

    <p>Hi,</p><p>I have a pie chart with around 20 &#39;segments&#39; representing names of people - so it looks like several of them have the same color.</p><p>So my first question is do the standard 12 colors repeat after 12 segments have been &#39;defined&#39; - can this be extended with custom colors?.  I know you can set colors for specific values but as the list is dynamic, I can&#39;t do that. </p><p>I also have a legend defined which shows the person&#39;s name and then the value - either a percentage or a count etc.    From top to bottom, the legend lists the entries alphabetically by the person&#39;s name - however, it&#39;s not always easy to tell which name is associated with which &#39;segment&#39; and using labels is not an option as they are too long and there are too many of them to be readable<br /></p><p>So what I would like to do is have the legend displayed in numerical size order - e.g. person with largest % is at the top, smallest % is at the bottom etc.</p><p>I&#39;ve been looking at the Chart Expert, CR Help and the forums but have not seen an answer to either question - I&#39;m hoping someone can tell me if it&#39;s possible or not (and if so, how do I do it!).</p><p>Thanks <br /></p>

    Hi,
    If you go to the Chart Expert, on the data tab, you can choose the Top N option. From within there you can get your legend sorted based on the highest or lowest percentage. You can also group information so that you only see the top 5 or lowest 10 or whatever you want.
    Also when I create a pie graph based on 20 plus pieces of data it isn't resusing the colors, but they are somewhat similar. I usually do a group of the top 10 or so, then have an others category for situations like this.Â
    Rody

  • Pie chart query

    I have a table with a column that will always be Y or N. I am wanting to use a pie chart to show how many of each there are. I tried doing a union all and it works if the Y and the N both have values but if one is 100% the chart goes postal...
    Here is an example I fixed up with the emp table showing what I mean...
    http://htmldb.oracle.com/pls/otn/f?p=34228:8
    Any ideas?
    The value being returned is a zero so it isn't null I'm stumped...

    Mhmmm pie chart...

  • Problem with Pie chart, Store Procedure and Category Axis

    Hi All,
    I'm having a problem when i try to use a Pie Chart with a store procedure
    when Category Axis - Field value is "none", the chart appears, but the description say Undefined
    but when i put any field from store procedure, the chart doesn't show.
    when I try the same with a normal SQL statement, all data was displayed
    my store procedure only have 2 columns
    n - numeric
    state - text
    The Store Procedure and the SQL, returns the same data in the same order
    Thanks in advance
    Cristian

    Hi guys,
    I need guide on creating a system using store procedure, referring to this thread: JDBC System Connection VS BI JDBC System Connection
    Hope you can help me out.
    Thanks a lot,
    Sarah

  • How to show top 20 values in a Pie Chart

    Hi
    We have a requirement to develop a Pie chart for top 20 Order value locations.but i am not able to plug in top 20 logic in a pie chart.This functionality (TOP N) is avilable in bar chart , but it is not avilable in Pie chart. Could some help me to implement this logic in a Pie chart.
    Your help in this regard is highly appreciated.
    Thanks
    Laj

    Not sure what you are saying here.  Obviously you have to have a place to place the distinct values, whether in another column or in the same column. That's not really a drawback, just a fact of life.
    I'm curious about what you mean by "multiple columns to dynamically select some records with specific criteria from different columns."  If you can give a specific example of what you are trying to do, I there may be a solution.  Are you trying to do something like Excel's filtering on multiple columns?
    If you are you can click the disclosure triangle by the column letter to get a dropdown like this:
    Similar to Excel.
    SG

  • SSRS Report Builder 3.0 - Pie Chart

    Hi,
    I have Pie chart that displays Number of  items by Country,
    My data set is pulling the correct values.
    The 3D effect is true for the pie chart and the Series Labels are set to diplay out of the Slice.
    I used the collected style to be SingleSlice and not using percentages but just the values less than or = 5 to be collected to other countries slice.
    for labels format I am using a column value from the query where I Concatenate the Value and Name of the country as string as I am not showing the legend on the chart for more space
    All the values are showing up right except for one value for one slice which is added extra numbers at the beginning of the number part of the string.
    For Example , if for USA there are 320 items  it should should show up as USA - 320  as that is the value that the query bring and I double checked that. But that value dipslays USA - 12320 for some reason and this is happening only with one
    label.
    I might be missing somethign silly but if someone can save my time and help me it would be appreciated.
    Please let me know if you have any questions.
    Thanks,
    Chaitanya

    Hi Chaitanya,
    Sorry for the delay.
    I am unable to reproduce the issue in my test environment. The issue seems rather odd. Here, I suggest that you create a new report and design the Pie Chart from scratch, and then check the issue again.
    If the issue persists, please post the expression of the label data as well as the CustomAttributes settings of the target series of the Pie Chart. 
    Regards,
    Mike Yin
    TechNet Community Support

  • How to convert abap output/excel output to pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Try demo sample program GFW_PROG_PIE
    ot t_code GRAL to find such programs.
    In addition to this please also check the chart engine (cl_gui_chart_engine).
    You can download --> SAP Chart Designer from SDN -> Downloads -> WebAS.

  • How to convert Abap output/excel output into pie charts

    Hi.......
    I've managed to output my Hierarchial sequential report output into a excel file....converting the abap output to xml and then mailing it.....now how can i convert this to pie chart......and mail it.....is it possible to have a pie chart in sheet1 and excel output in other sheet2 in the same excel sheet.......i've looked on the demo programs....in the package SOFFICEINTEGRATION and programs like SAPRDEMOEXCELINTEGRATION2.This are in object oriented language..............can any one come with coding in abap languge with step by step procedure to write the logic....i even got to look into FM called XXL_FULL_API.......
    Points wud be surely rewarded.............Thank in Advance

    Hi Younus Khan,
    sample code to load output to excel sheet.
    Use function module GUI_UPLOAD
    The FILETYPE refer to the type of file format you need: For e.g 'WK1' - Excel format , 'ASC' - Text Format etc.
    CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
    FILENAME = 'C:\test.csv'
    FILETYPE = 'ASC'
    TABLES
    DATA_TAB = itab
    EXCEPTIONS
    FILE_OPEN_ERROR = 1
    FILE_READ_ERROR = 2
    NO_BATCH = 3
    GUI_REFUSE_FILETRANSFER = 4
    INVALID_TYPE = 5
    NO_AUTHORITY = 6
    UNKNOWN_ERROR = 7
    BAD_DATA_FORMAT = 8
    HEADER_NOT_ALLOWED = 9
    SEPARATOR_NOT_ALLOWED = 10
    HEADER_TOO_LONG = 11
    UNKNOWN_DP_ERROR = 12
    ACCESS_DENIED = 13
    DP_OUT_OF_MEMORY = 14
    DISK_FULL = 15
    DP_TIMEOUT = 16
    OTHERS = 17.
    or,
    U can use the FM
    SAP_CONVERT_TO_XLS_FORMAT
    to convert itab data to excel
    check this FM also
    GUI_DOWNLOAD
    And, for converting into xml format. I did it in ecc6.0
    *& Report ZTESTSDN
    REPORT ztestsdn.
    TABLES: vekp,
    likp,
    vbak.
    TYPE-POOLS: ixml.
    DATA: itab LIKE but000 OCCURS 0 WITH HEADER LINE.
    TYPES: BEGIN OF my_xml ,
    data(256) TYPE x,
    END OF my_xml.
    DATA: xml_table TYPE TABLE OF my_xml.
    DATA: l_xml_size TYPE i,
    ld_fullpath TYPE string.
    START-OF-SELECTION.
    SELECT * FROM but000 INTO TABLE itab UP TO 10 ROWS.
    CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
    I_FIELD_SEPERATOR = ','
    I_LINE_HEADER =
    I_FILENAME =
    I_APPL_KEEP = ' '
    I_XML_DOC_NAME =
    IMPORTING
    pe_bin_filesize = l_xml_size
    TABLES
    i_tab_sap_data = itab
    CHANGING
    i_tab_converted_data = xml_table
    EXCEPTIONS
    CONVERSION_FAILED = 1
    OTHERS = 2
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    bin_filesize = l_xml_size
    filename = 'C:\test.txt'
    filetype = 'BIN'
    IMPORTING
    filelength = l_xml_size
    TABLES
    data_tab = xml_table
    FIELDNAMES =
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    You can go use ADOBE AIR for developing the pie chart widget...
    kindly reward if found helpful.
    cheers,
    Hema.

  • Pie chart legend summary bug, weird text being printed

    Hi guys, I created a simple report with a Pie Chart on VS2008 and on my computer the chart legend displays all items perfectly but when I deploy it on our web server the legend summary, which is always 100% doesn't say "Total" anymore but a weird text, have you seen this before? Here's a sample.
    On my machine the chart legend is the following:
    ITEM1                                35.0%    63
    ITEM2                                38.3%    69
    ITEM3                                26.7%    48
      Total                                  100.0%  180
    On the server:
    ITEM1                                35.0%    63
    ITEM2                                38.3%    69
    ITEM3                                26.7%    48
    eTotal:1_n_pseudoloc_   100.0%  180

    Have not seen this before, but do apply SP1 on your dev computer:
    https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe
    Recompile.
    And use SP1 runtime:
    https://smpdl.sap-ag.de/~sapidp/012002523100010010692008E/crredist2005_sp1_x86.zip
    See if that helps.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

  • How do I remove drop shadows from the default text in the labels of a Numbers pie chart?

    I set up a pie chart in Numbers and set labels for percentage.  The default text has drop shadowss.  They do print well at the scale needed for the page.  I cannot find out how to remove these shadows for clearer printing.  Can the shadows be removed?

    Nevermind.  Found the answer in nthe side bar under "Re:how can I print the figures (text) in a chart WITHOUT a cast shadow.  I had the Font window set too narrow and it did not show the Text Shadow button in the tool bar.  Unclicking that worked.

  • Pie chart in Visual composer

    hi experts,
    Can anyone tell abt the creatiob pie chart in visual composer??? for multiple values..
    regards
    roshini

    Before you rush now and create a pie chart, sit back and read the following document of how to visualize data:
    https://wiki.sdn.sap.com/wiki/display/SIT/Visualization
    You will see that pie charts are the by far worst method to display data. Edward Tufte (the guru in data visualization and a must read for everybody who wants to be serious with datawarehousing and dashboards) writes "A table is nearly always better than a dumb pie chart; the only worse design than a pie chart is several of them [...]" (p. 178, The Visual Display of Quantitative Information)
    If you want to become the "laughing stock" of your folks and customers, and just show off marketing wise, then use as many pie charts as you can find. Your users however won't be able to make sense out of the data.
    Sorry, I am very passionate about this topic

  • How to Avoid overlapping data label values in Pie Chart

    Hi,
    I am facing the problem when the data is more my pie chart data label value is overlapping.
    I tried with showing outside the data label value but customer is not accepting ,and i used the CollectedPie  option also but still its overlapping .So please any body knows how to resolve this problem as i need very urgent basis.
    Regards,
    HariKan
    HariKan

    Hi HariKan,
    Per my understanding that the Category group of the pie chart which will retuen many values so that the label will overlapping and you want to know is any method to deal with this kind of problem, right?
    In Reporting Services, when enabling data label in par charts, the position for data label only have two options: inside and outside.
    In your scenario, I recommend you to increase the size of the pie chart if you insist to choose the lable inside the pie chart as below:
    If you choose to "Enable 3D" in the chart area properties and choose to display the label outside, the label's layout will be more clear:
    Reference:
    Pie Charts (Report Builder and SSRS)
    Position Labels in a Chart (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • Retriving value from Pie chart to hidden field using onmouseover event

    Hi,
    I am Vaibhav. I have create Pie chart on EMP table. Pie chart query is as follows,
    SELECT 'javascript:onmouseover=$x(''P25_DEPTNO'').value='||deptno||';popupURL(''http://www.google.com'');' LINK,
    deptno, COUNT (empno)
    FROM emp
    GROUP BY deptno
    On mouseover on Pie chart i want to get value of deptno column but from above query i am not getting the value of deptno. So how should I get value of deptno on mouseover event on Pie chart.
    Thanks in advance,
    Regards,
    Vaibhav
    Edited by: user10600404 on Feb 28, 2011 10:39 PM

    Hi,
    I can get it to work with:
    SELECT 'javascript:onclick=$x("P24_DEPTNO").value='||deptno||';popupURL("http://www.google.com");' LINK,
    deptno, COUNT (empno)
    FROM emp
    GROUP BY deptno That is - using onclick instead of onmouseover.
    See: http://apex.oracle.com/pls/otn/f?p=9568:24 - the Select list is updated as you click on a slice in the pie chart
    Andy

  • Is ChartDoubleClick Event works in Pie Chart

    Hi Every one,
                      This is prasad.I have Pie chart with data and want to drill down on selecting the data in the pie chart.Is the chartdoubleclick event works in the Pie chart as of Bar chart works.Can any one help on this will be thankful.
    Thanks,
    Prasad.

    Can u give an example or  sample code for this legend trigger event.SInce this is the first time iam using this trigger event.
    Thanks,
    Prasad.

  • Formating Pie Chart

    Hi all,
    I am very new to XcelsiusPlease tell me how to work on Charts (Pie Chart) . I am using one Pie Chart to which I mention the data lables range, But it is showing the specifed range of lables as well as defalt lables I tried to deleat default lables but there is no option to deleat it. Please help me.
    Thank You

    Shonti,
    The samples Pie chart is an example of  a chart with Drill down feature enabled,which can be done with  the second tab(drill down) on the pie chart property sheet.
    In the sample pie chart the labels and values are bound under general tab,drill down feature is enabled under the drill down tab,insertion type,source data and the destination range is specified.Now the values that were bound in general tab are deleted so that the chart can feed from the values specified in the destination range.This is the reason why the value range is empty in the general tab.This destination range is highlighted in the embedded property sheet.The coIumn chart below it also displays data or values entering the destination range which is specified as it's y axis values.
    In preview mode when you click on each pie slice notice the column chart below shows the data corresponding to the label(which is branch name) and it's monthly sales ,these are the values that enter into the destination range specified in the drill down property tab of the pie chart and also into the value y axis of the column chart.
    Pease also refer to Xcelsius user guide located under Help > Xcelsius help or simply press F1 to pull it out.
    Hope this helps.
    -Purnima

Maybe you are looking for