Pie Chart displaying percentages

Good Morning,
I'm hoping someone has had experience creating a pie chart
with percentage values and is wiling to offer some assistance
because I've tried many ways and still came up short.
The data table I'm using contains two columns: type (A, B, C,
etc) and amount (100, 250, etc).
In order to create a chart showing what percent of the whole
each type is, I need to sum all the amounts for all types then
divide each type by the sum of all amounts (to create each slice).
Any suggestions on how to do this through CFquery and
CFchart?
Thanks in advance,
Sue

Add this line in the graph you are putting in RTF template.
Right click the image, properties and the last tab web.
add this under the graph node.
To get the actual Value use this.
<SliceLabel textType="LD_VALUE"/>
Other vaules you can use are
LD_TEXT_PERCENT, LD_VALUE , LD_TEXT , LD_PERCENT

Similar Messages

  • Pie Chart display problem

    Hello,
    Pie chart is not displayed when I tried this sql with 'order by' clause.
    select null, b.subject_name, count(a.subject) cnt
    from schooltemp a, subject b
    where a.subject = b.subject_id
    group by b.subject_name
    order by cnt desc
    This sql works only when 'order by' clause is removed.

    Hello Marco,
    I think I've found the cause.
    That was not because of "order by" clause, but because of the length of column data used in the legend section.
    When the column data for legend is longer than 38 chars, this SVG chart becomes blank in my case.

  • Regarding Pie Chart Display

    Hi this is Prasad,
                             I want to display a pie chart with the associated results from the query template.It is working fine if I have any values in the database.I want to Display the Text 'No Data is Found' if i dont have data in the database.Is it possible to display like this.Can anyone help on this.
    Thanks,
    Prasad.

    The 'No Data Available' message only displays when a fatal error occurs but not 0 rows (not desirable in this case).  How about adding the UpdateEvent in your PARAM tags and in the corresponding function doing something like this:
    var myApplet = document.APPLETNAME;
    var myChart = myApplet.getChartObject();
    if (parseInt(myChart.getNumberOfDataPoints(1)) > 0) {
       myChart.setTitle("You have pie slices");
    } else {
       myChart.setTitle("No Records Found");
    myApplet.setUpdateEventEnabled(false);
    myApplet.updateChart(false);
    myApplet.setUpdateEventEnabled(true);
    This should allow you to use standard stuff and not incorporate monkey business with hidden/visible divs and/or additional applets just for running separate queries.

  • Pie chart  display error

    Hi
    I created pie chart using CFCHART tag. In the chart display,
    data values overlap on one another in the display. How to rectify
    this error.
    Kindly help me in this regard.
    Advance thanks

    I am using  ColdFusion Report Builder 9 to generate a PDF, so there is no code to provide, but here is an example of my data:
    fruit
    count
    apples
    112
    oranges
    304
    bananas
    0
    pears
    0
    grapes
    16
    strawberries
    80
    plums
    48
    pineapples
    32
    blueberries
    16
    raspberries
    32
    apricots
    256
    tangerines
    705
    cherries
    1
    peaches
    0
    With 'label column: fruit' and 'value column: count', when I select 'data label: pattern', for my pie chart, the labels overlap.

  • Crystal 2008 Pie Chart Display Issues

    Hello all,
    I am having some problems with the Crystal Viewer displaying charts and legends. Basically, what is going on is, I have a report that displays a pie chart and legend containing data on departments within a store. I have 39 departments that need to show in the chart/legend, but only about 33 show up on the chart and 24 show up in the legend. Does anyone have any ideas if this is a limitation of the chart or anything?
    TIA
    -Coty

    There is no limitations for  pie chart and legend.   maximise the chart through edge draging.it shows all(increase the chart size)...
    All the best,
    Praveen

  • Bar and Pie chart  display with values

    Hi All...
    I want implement the my swing application Bar and Pie chart functionality with vales, If both are disply same veues.
    Thanx to Advance
    Arjun

    www.jfree.org

  • Flash Pie Chart display bugs

    Hello guys! Sorry to disturb you but I'm experiencing strange problems in my application!
    A while ago all my flash charts worked like a charm. Today I discovered, that 3 charts are not displayed anymore.
    Have tried various things to check the reason. The underlying query returns data that can be displayed. Nevertheless, only the legend is shown and not the real chart.
    I treid to reset the xml but it doesn't yield any improvements.
    Do you maybe have a hint for me what could be wrong all the sudden?
    Any help is welcome!
    Regards,
    Sebastian

    Print screen to show? http://www.tinypic.com
    Edit: I can't seem to re-create it in the apex 4.0 trial...try just creating a new graph and see if it works.
    Mike
    Edited by: Dird on Jan 15, 2010 10:13 AM

  • Problem creating pie-chart

    Post Author: ujain82
    CA Forum: Desktop Intelligence Reporting
    Hello,      I am using BO 6.1
    I am having trouble creating pie chart. I am calculating different count values from different data providers. Now I need to create a pie chart showing the proportion for each count as I can find the percentage of count.
    My scenario(task):I need count on persons depending on searching on complaint text. So for each search I have a data providers. Like this I am searching for 8 criteria. So I have different data providers for each search. I get person counts from each criteria.
    Now I want to show it in a pie chart. But I could not make it done.Does anyone faced a similar problem? How do I solve my problem?
    Any comments?

    Attached is part of the sub-vi where I am having the problem. I tell Excel which cells to use for the pie chart. If I use "Source 1" (8 cells) the pie chart is created successfully. If I use "Source 2" (14 cells) the pie chart only uses the first cell. I can go to the Excel file and select all 14 cells manually and the pie chart displays correctly. I also tried 9 cells with no luck, it seems that 8 cells are the limit. I am trying to find what is causing the limitation. I have also attached the sub-vi. 
    Attachments:
    Pie chart block diagram.JPG ‏61 KB
    M-51539-001 Create Pie Chart.vi ‏108 KB

  • Pie Chart with 0% entries

    I have a chart region on a page which is of type pie.
    my pie chart displays entries which account for 0% of the pie. I manually calculated these % and they are 0.003665056,0.002094318,0.001832528... is there a way of displaying the % value as 3 or 4 decimal places instead of 1?
    my chart is based on the following sql
    SELECT NULL link,
    stream_id,
    SUM(total_docs)as sumdocs
    FROM o2_total_docs_view
    where time_stamp BETWEEN to_date(V('P36_FROM_DATE'),'DD-MON-YY HH24:MI')
    AND
    to_date(V('P36_TO_DATE'),'DD-MON-YY HH24:MI')
    Thanks
    Tom

    Hi Tom,
    Sorry about that - completely missed the bit about it being the percentage rather than the actual value.
    I think that you have two choices - you can round the numbers up and add the actual values to the label, or just add the values to the label (as choice 2 above).
    To round the numbers, you'd need to know the percentages before the chart is drawn. Something like the following would do this:
    SELECT stream_id label,
    null link,
    total_docs_sum / (SUM(total_docs_sum) OVER ()) AS item_percentage
    FROM (select stream_id, sum(total_docs) total_docs_sum
    FROM o2_total_docs_view
    where time_stamp BETWEEN to_date(V('P36_FROM_DATE'),'DD-MON-YY HH24:MI')
    AND to_date(V('P36_TO_DATE'),'DD-MON-YY HH24:MI'
    GROUP BY stream_id)) ZZZ
    You can then wrap this within another select statement and adjust the "item_percentage" values as required. Of course, this will slightly change the percentages in the result that is used to draw the chart, but as the values are small this shouldn't be obvious to the user. You should probably still add the actual value to the label either way.
    Regards
    Andy

  • BI7.0_WAD3.X - Pie Chart- Always shows 2 decimal point

    Hi,
    <u>Info:</u> <u> BI 7.0, Stack 10, FE 1100, WAD 3.X</u>
    <u><b>Problem 1: (Pie Chart) :</b></u> :
    a. I am unable to  make the Pie chart show percentage in one decimal point. (EG:  56.3%).
    b. The Pie chart does not have the selection to show both value & text
    <u><b>Problem 2: (Pie Chart):</b></u>
    Problem 2: The text style does not change at all ( Eg: does not change to bold, italic, does not represent diagonally)
    Please let me know if any one seen these problems or any OSS note available the above problems.
    Thankyou,
    -Sini
    Message was edited by:
            Sini Kumar

    Hi Kai,
    If I want to create a bar chart with DP that looks as follows:
    <b><u>Material       Total</u></b>
             A                    5
             B                   10
             C                     7
             D                    4
    Overall result           26
    Then How do I get the labels A, B, C, D in the Y axis  as the name of the "category" and also all the series represented in diffrent color say 5 (red), 10(yellow), 7 (blue), 4(green). I am not able to get these two criteria met?
    what I am able to achieve is either
    1. (A, B, C, D )are shows as the name of the category in the Y-axis, and (total) on X-axis-- then it will have only one series (ie total)....Hence cannot give different colors for the bar representing the category A,B,C,D
    (or)
    2.  (material) shown as the name of the category on Y-axis and (total) on X-axis and the series will have (A, B, C, D) in different colors but the name of the series will be shown anywhere inside the bar and not as the name of the category....b'cos the name of the category will be (material)
    so how do i get the ......labels A, B, C, D in the Y axis  as name of the "category" (instead of material)  and also all the series represented in different color say 5 (red), 10(yellow), 7 (blue), 4(green).
    Please let me know if this is possible with the chart wizard in 3.x or 7.0 WAD. I tried and so far no luck!
    Earlier in 3.0B it was possible by right clicking every data point to change it's color.
    Thankyou,
    -Sini

  • ActiveX pie chart range limit

    I have a problem with creating a pie chart using ActiveX that seems to be related to the range. When I give it a source of 8 cells (source 1) the pie chart works fine (Right Pie). If I give it 9 cells (source 2) the pie chart data has 9 series instead of the 1 it should have (Wrong Pie). If I go into Excel I can correct it manually. I have been using this sub VI for a while with no problems but always with fewer than 8 cells. 
    I am using Excel 2007 version 12.
    Attachments:
    M-51539-001 Create Pie Chart.vi ‏108 KB
    Right Pie.JPG ‏124 KB
    Wrong Pie.JPG ‏114 KB

    Attached is part of the sub-vi where I am having the problem. I tell Excel which cells to use for the pie chart. If I use "Source 1" (8 cells) the pie chart is created successfully. If I use "Source 2" (14 cells) the pie chart only uses the first cell. I can go to the Excel file and select all 14 cells manually and the pie chart displays correctly. I also tried 9 cells with no luck, it seems that 8 cells are the limit. I am trying to find what is causing the limitation. I have also attached the sub-vi. 
    Attachments:
    Pie chart block diagram.JPG ‏61 KB
    M-51539-001 Create Pie Chart.vi ‏108 KB

  • 0PUBLISHING_TEMPLATE chart display

    Hi,
    We have BW3.10. I set up a web template with a ROLE MENU item as the navigation frame, and the result gets loaded in the 0PUBLISHING_TEMPLATE in another frame. When a query is selected, in the application toolbar, there are chart options - bar, pie, line, etc. However, it does not work correctly because, for example, bar chart and pie chart displays exactly the same graphic.
    Does anyone know what I need to do in order for the chart to display correctly?
    Thank you very much.
    Hsiao-Chun

    Hi,
      Usually 0QUERY_TEMPLATE is the default template for any query you run from BEX query designer whcn you use 'Display in web' option.
    But you can create a new web template and use your query.
    Insert this code into your web template for the correct toolbar,
    <!-- Toolbar --->
    <table>
    <tr><td style="padding:5px;">
    <table cellspacing="0" cellpadding="1" border="0" class="SAPBEXNavLineBorder" width="450"><tr><td width="100%">
    <table border=0 cellspacing=0 cellpadding=5 width="100%"><tr>
    <!-- Display table and nav block --->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=*GR1*&MULTI=X&HIDDEN=''>"><img src="Mime/BEx/Icons/S_B_TVAR.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="622">"></a></td>
    <td class="SAPBEXNavLine"> |</td>
    <!-- Display Bar Chart--->
    <td class="SAPBEXNavLine"><a href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=GR1GR2NavBlock&HIDDEN=' CMD_2='CMD=RESET_ITEM&ITEM=GR2Chart&WIDTH=600&HEIGHT=400&HIDDEN=&ITEM_ID=0QUERY_TEMPLATE_COLUMNSTACKED&GENERATE_CAPTION='>"><img src="Mime/BEx/Icons/S_GISBAR.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="657">"></a></td>
    <!-- Display Pie Chart--->
    <td class="SAPBEXNavLine"><a href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=GR1GR2NavBlock&HIDDEN=' CMD_2='CMD=RESET_ITEM&ITEM=GR2Chart&WIDTH=600&HEIGHT=400&HIDDEN=&ITEM_ID=0QUERY_TEMPLATE_PIES&GENERATE_CAPTION='>"><img src="Mime/BEx/Icons/S_GISPIE.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="658">"></a></td>
    <!-- Display Line Chart--->
    <td class="SAPBEXNavLine"><a href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=GR1GR2NavBlock&HIDDEN=' CMD_2='CMD=RESET_ITEM&ITEM=GR2Chart&WIDTH=600&HEIGHT=400&HIDDEN=&ITEM_ID=0QUERY_TEMPLATE_LINES&GENERATE_CAPTION='>"><img src="Mime/BEx/Icons/lines.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="659">"></a></td>
    <!-- Display 3D Bar Chart--->
    <td class="SAPBEXNavLine"><a href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=GR1GR2NavBlock&HIDDEN=' CMD_2='CMD=RESET_ITEM&ITEM=GR2Chart&WIDTH=600&HEIGHT=400&HIDDEN=&ITEM_ID=0QUERY_TEMPLATE_3DCOLUMNS&GENERATE_CAPTION='>"><img src="Mime/BEx/Icons/columns_3D.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="660">"></a></td>
    <!-- Display Switch Axes --->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL CMD='SWITCH_AXES' DATA_PROVIDER='DP'>"><img src="Mime/BEx/Icons/S_B_RESH.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="312">"></a></td>
    <td class="SAPBEXNavLine"> |</td>
    <!-- Display Infos --->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=*GR3*&MULTI=X&HIDDEN='>"><img src="Mime/BEx/Icons/S_B_TXDP.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="T70">"></a></td>
    <!-- Display Exceptions--->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=*GR4*&MULTI=X&HIDDEN='>"><img src="Mime/BEx/Icons/S_BWEXMO.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="281">"></a></td>
    <!-- Display Conditions--->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL ITEM='*GR*' MULTI='X' HIDDEN='X' CMD_1='ITEM=*GR5*&MULTI=X&HIDDEN='>"><img src="Mime/BEx/Icons/S_SUMMAR.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="282">"></a></td>
    <td class="SAPBEXNavLine"> |</td>
    <!-- Display Variable Input --->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL CMD='PROCESS_VARIABLES' VARIABLE_SCREEN='X'>"><img src="Mime/BEx/Icons/S_B_VARB.gif" valign="middle" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="T76">"></a></td>
    <td class="SAPBEXNavLine"> |</td>
    <!-- Query Definition --->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL ITEM='QueryDesigner' HIDDEN=' '>"><img src="Mime/BEx/Icons/adhoc_querydesign.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="320">"></a></td>
    <td class="SAPBEXNavLine"> |</td>
    <!-- Display Bookmark --->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL CMD='BOOKMARK'>"><img src="Mime/BEx/Icons/bookmark.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="309">"></a></td>
    <td class="SAPBEXNavLine"> |</td>
    <!-- Display Export Excel--->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL CMD='EXPORT' FORMAT='XLS' DATA_PROVIDER='DP'>"><img src="Mime/BEx/Icons/S_X_XLS.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="T77"> <SAP_BW_TEXT program="SAPLRRSV" key="T72">"></a></td>
    <!-- Display Export CSV--->
    <td class="SAPBEXNavLine"><a  href="<SAP_BW_URL CMD='EXPORT' FORMAT='CSV' DATA_PROVIDER='DP'>"><img src="Mime/BEx/Icons/csv.gif" border="0" alt="<SAP_BW_TEXT program="SAPLRRSV" key="T77"> <SAP_BW_TEXT program="SAPLRRSV" key="T73">"></a></td>
    <!-- Display Print Preview--->
    <!-- <td class="SAPBEXNavLine"><a  href=""><img src="Mime/BEx/Icons/S_B_LAYT.gif" border="0" alt="Druckvorschau"></a></td> --->
    </tr></table>
    </td></tr></table></td></tr>
    </table>
    Thank you
    Arun

  • Pie chart - drill down/up with HierarchicalCollectionView

    y'ello,
    I started to build really simple pie chart with drill down data feature. I decided to use hierarchicalCollectionView, to access children even parent of clicked item, but one problem I realized right now is that pie chart displays only data type ArrayCollection, and hierarchicalVollectionView and method openNode() can be used only Array data type, so when I debugged I realized that can not use openNode(hitData.item)  wih ArrayCollection data type b'cuz flash player pop-ups error window.
    Please, chcek short source code. I thought I can make hierarchy from ArrayCollection but can not use openNode() method that next I need this method later access parent or children. Simply when I click on one wedge, drill down, again, when I click, again drill down...when I click Ctrl+click get one level back then again and again....plese help me gurues
    Code:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
        <mx:Script>
            <![CDATA[
                import mx.collections.ArrayCollection;
                import mx.charts.HitData;
                import mx.charts.events.ChartItemEvent;
                import mx.collections.HierarchicalData;
                import mx.collections.HierarchicalCollectionView;
                [Bindable]
                public var cars:ArrayCollection = new ArrayCollection([
                    {type:"BMW", t_count: 150, children:[
                        {type:"1 class", t_count: 18, children:[
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Compact", t_count: 8}
                        {type:"3 class", t_count: 14, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Compact", t_count: 8}
                        {type:"5 class", t_count: 7, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                            {type:"Touring", t_count: 42},
                            {type:"Sedan", t_count: 8}
                        {type:"6 class", t_count: 15, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34},
                        {type:"7 class", t_count: 8, children:[
                            {type:"Kabriolet", t_count: 12},
                            {type:"Coupe", t_count: 34}
                        {type:"X3 class", t_count: 22, children:[
                            {type:"Sedan", t_count: 11},
                            {type:"Coupe", t_count: 9},
                            {type:"Touring", t_count: 5},
                            {type:"Compact", t_count: 17}
                        {type:"X5 class", t_count: 9, children:[
                            {type:"Sedan", t_count: 33},
                            {type:"Coupe", t_count: 18},
                            {type:"Hatchback", t_count: 7}
                        {type:"X6 class", t_count: 11, children:[
                            {type:"Coupe", t_count: 18},
                            {type:"Combi", t_count: 31},
                            {type:"Hatchback", t_count: 8}
                    {type:"Mercedes", t_count: 120, children:[
                        {type:"A class", t_count: 5},
                        {type:"B class", t_count: 12},
                        {type:"CLS class", t_count: 18},
                        {type:"CL class", t_count: 23},
                        {type:"C class", t_count: 12},
                        {type:"E class", t_count: 19}
                    {type:"VW", t_count: 320, children:[
                        {type:"Passat", t_count: 10},
                        {type:"Polo", t_count: 25},
                        {type:"Golf", t_count: 45},
                        {type:"Touareg", t_count: 15}
                //HCV from hierarchical data
                private var hView:HierarchicalCollectionView = new HierarchicalCollectionView(new HierarchicalData(cars));
                //event handler
                private function drillDownUp(event:ChartItemEvent):void{
                    if(event.hitSet && event.hitSet.length){
                        //DRILL UP
                        if(event.ctrlKey){
                            var hitItem:HitData = event.hitSet[0];
                            var parent1:Object = hView.getParentItem(hitItem.item);
                            var parent2:Object = hView.getParentItem(parent1);
                            if(!parent2){
                                myPieChart.dataProvider = hView.source.getRoot();
                            else{
                                myPieChart.dataProvider = hView.getChildren(parent2);
                        //DRILL DOWN
                        else{
                            var hitItem:HitData = event.hitSet[0];
                            if(hitItem.item.hasOwnProperty("children")){
    //                            hView.openNodes(hitItem.item); //here is problem!!
                                myPieChart.dataProvider = hView.getChildren(hitItem.item);
            ]]>
        </mx:Script>
        <mx:Panel title="PieChart DDD Test - Trh predaja automobilov - 2009">
            <mx:PieChart id="myPieChart"
                         dataProvider="{cars}"
                         itemClick="drillDownUp(event)"
                         showDataTips="true">
                <mx:series>
                    <mx:PieSeries field="t_count"
                                  nameField="type"
                                  labelField="type"
                                  labelPosition="inside"/>
                </mx:series>
            </mx:PieChart>
            <mx:Legend dataProvider="{myPieChart}" direction="horizontal"/>
        </mx:Panel>
    </mx:Application>

    Hi Jan,
           thanks for reply,sorry i am quite new in this forum not familiar with tabs and navigation,can you please elaborate/steps to find the business card
    thx
    Anwy

  • Colour coding slices of pie chart

    Hi,
    I'm generating a pie chart from a list of traffic light colours (red, amber, green) and would like to colour the pie slices to match the colour reported i.e. the red segment should be red etc.
    I've seen an example here:
    http://htmldb.oracle.com/pls/otn/f?p=11933:32
    which I have got to work but this only works if all of the colours are returned i.e. each of the status indicators have a value greater than zero. If any of the status indicator values have zero occurences then the coulours get mismatched. I assume this is because the slices are coloured in order of display. I tried to correct this by forcing each status to be selected even if the occurence was zero but this seems to give me bizarre results with the pie chart displaying the top portion in the wrong place.
    Has anyone got any ideas that might help resolve my problem?
    Cheers,
    Andy

    Hello,
    What you can do is set a hidden page item to the proper css using some plsql to output the css you want based off of a query.
    And then use that item in the custom css area as an Item substitution.
    Example
    set page item value SVG_CSS using some plsql logic to
    #data1 ,rect.data1 ,path.data1{fill:#f00;}
    #data2 ,rect.data2 ,path.data2{fill:#0f0;}
    #data3 ,rect.data3 ,path.data3{fill:#00f;}
    and in the Custom CSS attribute use &SVG_CSS.
    Carl

  • Display the value as percentage in pie-chart in WEBI

    Hi Experts,
       I have two measures  No. of Sales Transactions and Customer Visit. And I created a measure named CustomerConversionRate.
    ie, CustomerConversionRate = ([No. of Sales Transactions]/[Customer Visit])*100.
    So my requirement is that CustomerConversionRate is  to be display  into a pie chart in WEBI . CustomerConversionRate always a percentage.I
    hereby attached a sample pie-chart based on my requirement.
    Eg:CustomerConversionRate=79.27 and Remaining = 20.73
    I want to display  CustomerConversionRate=79.27  and Remaining = 20.73 into a pie chart in WEBI

    Hi ,
    Add 1 more Query with dimension that will have values
    Completed      Or      X
    Remaining      Or      Y
    Duplicate your Query And Keep only 1 Dimension [Extra_Dim]( Remember this Dim Name you have to use it in different way so it would be better if use any Dimension which is not there in First Query )
    Go To--> View Script --> Custom SQL
    write below code in Query Script Editor
    SELECT
      'Completed' As "CATEGORY"
    FROM
      "YOUR_TABLE"  Table__1
    Union
    SELECT
      'Remaining' As "CATEGORY"
    FROM
      "YOUR_TABLE"  Table__2
    And Save this Query .
    Now Rename this Query as Pie Dimension .
    Now You can Use [Extra_Dim] As [Achievment_Status]
    Create Measure Variable [Achievment_Val] as mention above .
    And use it

Maybe you are looking for