To display percentage value dynamically in SSRS chart

Hi,
I have got a requirement to show percentage values in Y AXIS.
X axis is year. There is legend color. Below the result set of the query, on top of this i have to do report. (Data set query cant be changed as it already using for other report)
Sample Data
Year Color
2012 Black
2012 Black
2012 Red
2013 Black
2013 Black
2013 Red
2013 Red
My requirement is like  year 2012, for black 66% (2/3) and for red  33%(1/3).
How can we achieve this without using extra dataset and lookup? 
Your help is highly appreciated.
Thanks!
Shamsuddeen

Hi Shamsuddeen,
According to your description, you want to display the proportion for each color within each year.
In your scenario, you can achieve your requirement follow steps below:
1. Design a chart, specify the Category Groups with [Year] and [Color]. Then check the group name of the [Year].
2. Specify the expression within Values panel like below:
=Count(Fields!Color.Value)/Count(Fields!Color.Value,"Chart1_CategoryGroup")
3. Right click the chart to open Seriese Label Properties, change the number formatting option as Percentage on Number page. Then preview the report.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support

Similar Messages

  • Flash Chart : Percentage values in the pie chart and  values in the legend

    Hi All,
    Query is :
    SELECT null link
    ,GN.region Region
    ,ROUND(100*ratio_to_report(COUNT(DISTINCT GN.submittedbyemail)) over (),2) value
    FROM goodnews_stories GN
    GROUP BY GN.region
    I use the above query to display the flash pie chart percentage values.
    The values are displayed in percentage in legend as well as on the chart.
    I need to display the values in the legend and percentage values in the chart.
    How this can be achieved ?
    Regards,
    Archana

    Hello,
    Can we do this using apex? I have observed in legend as well as on chart it displays the same values which are generated by the sql query.
    Regards,
    Archana

  • JDEV 10G: how to display the value of the line chart using jChart in JSP

    I have draw the line chart in JSP using the JChart and now I wan to display the value label in the line there..
    but the value wasn't show..
    anyone can help me..
    thx..

    Hi,
    what I do understand, you want to display the value of each point in your Line Graph.
    I guess you will be having BIGraph.xml file. In this file check the "Show Data Tips When Mouse is over bars" checkbox.
    Lets try with this.
    --Abhijit                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • Problem in showing numeric & percentage values in  the  same chart.

    Hi,
    We are using Crystal Xcelsius 4.5, In our data we have numbers as well as percentage values.
    For some Buttons we need numeric chart & for some Buttons need Percentage chart, in a single chart. Whether it is possible or not.
    In some scenerio we need dual axes. Where in crystal xcelsis it doesn't have dual axes chart. Can we have dual axes in Crystal Xcelsius? If so, please give me the procedure to add dual axes chart.
    Thanks in Advance
    Srinivas

    Couldn't clearly understand what you want. But try this and check out if this is what you want.
    select a.name, a.url from emp a
    union
    select b.name, b.url from emp1 b
    /Cheers
    Sarma

  • Legend needs to display Prompt values / Remove filters from chart query

    Hi
    I have 2 questions for the same chart so I hope it's OK to add them in one post.
    Firstly I have created a chart & added three Select List filters which work fine, the query is below, problem is that when I change back to '-ALL-' I get no data, it has filtered out all records as no data matches the value of '-ALL-' does anyone know the code to get around this?
    My chart query;
    select null link, P_MONTH AS MONTH, SUM(CALLS) AS data
    from DATA.MAIN_DATA
    WHERE WAREHOUSE = :P1_WAREHOUSE
    AND ANS_UNANS = :P1_ANS_UNANS
    AND PRODUCT = :P1_PRODUCT
    GROUP BY P_MONTH
    As I will have several queries like the one above for different options on the same chart, I would like the Legend to show what the user has chosen each time the options are changed ie;
    Something like the bolded text in the query to display the chosen values in the legend;
    select null link, P_MONTH AS MONTH, SUM(CALLS) AS *'P1_WAREHOUSE' || 'P1_ANS_UNANS' || 'P1_PRODUCT'*
    from DATA.MAIN_DATA
    WHERE WAREHOUSE = :P1_WAREHOUSE
    AND ANS_UNANS = :P1_ANS_UNANS
    AND PRODUCT = :P1_PRODUCT
    GROUP BY P_MONTH
    Any ideas/suggests?

    Woof777 wrote:
    Any ideas/suggests?Try the APEX forum ;)

  • How to show first parameter value in drop down list as a default value dynamically in ssrs report?

    Hi,
    in my ssrs report i have two parameters, accounts and Manager ,there is a cascading between the accounts parameter and manager parameter, as per the cascading we will get managers names based on the account we selected in the accounts parameter,
    my requirement is the first name in the mangers drop down list  has to get selected as default value.
    please help me with this, it is an urgent requirement.
    Thanks in advance,
    Naveen

    Hi NaveenMSBI,
    According to your description, you want to use cascading parameters in the report, if the accounts are selected when you preview the report, the first manager name will be selected from drop down list as the default value. If so, there can be two scenarios:
    • If manager is single-valued parameter, we can get Available Values and Default Values from the same query as below. Then when the accounts are selected, the first manager name will be selected as default value.
    SELECT managerName FROM table_name WHERE accounts IN (@accounts)
    • If manager is multi-valued parameter, we need to use different query for Available Values and Default Values. In this case, please refer to Patrick’s solution.
    For more information about Adding Cascading Parameters, please refer to the following document:
    http://technet.microsoft.com/en-us/library/aa337498(v=sql.105).aspx
    If you have any questions, please feel free to let me know.
    Best Regards,
    Wendy Fu

  • Problem with Displaying Percentage Value

    Hello Everyone,
    I have a report that calculates a percentage based on 2 figures. For Example, Actual_count = 15000 and forecast_count = 14900. To calculate the percentage i use the following SQL statement
    select ROUND(((ACTUAL_COUNT-FORECAST_COUNT)/FORECAST_COUNT)*100,1) as "PERCENTAGE" from tableThis gives me the result of "-.7". This is the correct answer but what i would like is for the answer to display "-0.7".
    Obviously i only want this when the percentage is minus, when it is plus it is not a problem.
    The reason i want this is because it is easier to read, my manager has been confusing the figures thinking that the minus figures are the plus figures (apparently his eye sight is not what it was 8-P).
    Would this be possible?
    Thanks in Advance,
    -N.S.N.O.

    After Experimenting a bit with your approach Shijesh, i would suggest using Bens format mask code.
    Say for example i use 0.00 like you suggested but my percentage is -20.1 then the report would display ####. To combat this i changed 0.00 to 000.00 this then displayed the -20.1 percentage as -021.1. I know it is still the same answer but it is not as pleasing on the eye :)
    Ben if you dont mind me asking, where did you get that format mask code?
    Thanks,
    N.S.N.O.

  • Repeating Values on axis (SSRS Chart)

    Hi ,
         i have repeating values on axis .i am not sure sure how to get rid of this problem.i did workaround like changing interval property expression to iif(max(count(Fileld))<4,1,0) but it didn't help.i have attached  image file
    for reference .

    Hi Zamin,
    From your screenshot, it seems that the interval of the axis is 0.5, and the "Decimal places" was set to 0 in the “Number” tab, right? So 0.5 becomes 1 and 1.5 becomes 2. To avoid this issue, please set the "Decimal places" to 1 in the “Number” tab.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    TechNet Community Support

  • How to display the dataset field values in my ssrs bar chart report ?

    HI i have a Bar Chart report in that i want to display the dataset one  field values in my x-axis of my ssrs report? so how should i display those values into my bar chart report?
    consider i want to display the Every Qtrly details in my x-axis so how should i ?
    can you pls help me out for this 

    I have added the Category Group into my Report area with required field ,now i will get my required output.

  • How to show colmn value in the legend in ssrs Chart?

    How to display Legend values in my ssrs Report like below 
    I want the values like below.
    SuccesCount-2000
    FailCount-100
    No status-150
    Can U pls help me for this
    ThanX!

    I will found the soluction for this ,
    Go to Chart Area ->Series Properties->Left Side you have noticed Legend->There you need to add expression in the
    fx
    i.e ="SuccessCount" & " "& Fields!SuccessCount.value
    so you finally get the out put like below
    o/p :SuccessCount 2000

  • Need Help: Dynamically displaying parameter values for a procedure.

    Problem Statement: Generic Code should display the parameter values dynamically by taking "package name" and "procedure name" as inputs and the values needs to be obtained from the parameters of the wrapper procedure.
    Example:
    a) Let us assume that there is an application package called customer.
    create or replace package spec customer
    as
    begin
    TYPE cust_in_rec_type IS RECORD
    cust_id NUMBER,
    ,cust_name VARCHAR2(25) );
    TYPE cust_role_rec_type IS RECORD
    (cust_id NUMBER,
    role_type VARCHAR2(20)
    TYPE role_tbl_type IS TABLE OF cust_role_rec_type INDEX BY BINARY_INTEGER;
    Procedure create_customer
    p_code in varchar2
    ,p_cust_rec cust_in_rec_type
    ,p_cust_roles role_tbl_type
    end;
    b) Let us assume that we need to test the create customer procedure in the package.For that various test cases needs to be executed.
    c) We have created a testing package as mentioned below.
    create or replace package body customer_test
    as
    begin
    -- signature of this wrapper is exactly same as create_customer procedure.
    procedure create_customer_wrapper
    p_code in varchar2
    ,p_cust_rec customer.cust_in_rec_type
    ,p_cust_roles customer.role_tbl_type
    as
    begin
    //<<<<<---Need to display parameter values dynamically for each test case-->>>>>
    Since the signature of this wrapper procedure is similar to actual app procedure, we can get all the parameter definition for this procedure using ALL_ARGUMENTS table as mentioned below.
    //<<
    select * from ALL_ARGUMENTS where package_name = CUSTOMER' and object_name = 'CREATE_CUSTOMER'
    but the problem is there are other procedures exists inside customer package like update_customer, add_address so need to have generalized code that is independent of each procedure inside the package.
    Is there any way to achieve this.
    Any help is appreciated.
    // >>>>
    create_customer
    p_code => p_code
    ,p_cust_rec => p_cust_rec
    ,p_cust_roles => p_cust_roles
    end;
    procedure testcase1
    as
    l_cust_rec customer.cust_in_rec_type ;
    l_cust_roles customer.role_tbl_type;
    begin
    l_cust_rec.cust_id := 1;
    l_cust_rec.cust_name := 'ABC';
    l_cust_roles(1).cust_id := 1;
    l_cust_roles(1).role_type := 'Role1';
    create_customer_wrapper
    p_code => 'code1'
    ,p_cust_rec => l_cust_rec
    ,p_cust_roles => l_cust_role
    end;
    procedure testcase2
    as
    l_cust_rec customer.cust_in_rec_type ;
    l_cust_roles customer.role_tbl_type;
    begin
    l_cust_rec.cust_id := 2;
    l_cust_rec.cust_name := 'DEF';
    l_cust_roles(1).cust_id := 2;
    l_cust_roles(1).role_type := 'Role2';
    create_customer_wrapper
    p_code => 'code2'
    ,p_cust_rec => l_cust_rec
    ,p_cust_roles => l_cust_role
    end;
    end;

    Not possible to dynamically in a procedure, deal with the parameter values passed by a caller. There is no struct or interface that a procedure can use to ask the run-time to give it the value of the 1st or 2nd or n parameter.
    There could perhaps be some undocumented/unsupported method - as debugging code (<i>DBMS_DEBUG</i>) is able to dynamically reference a variable (see Get_Value() function). But debugging requires a primary session (the debug session) and the target session (session being debugged).
    So easy answer is no - the complex answer is.. well, complex as the basic functionality for this do exists in Oracle in its DBMS_DEBUG feature, but only from a special debug session.
    The easiest way would be to generate the wrapper itself, dynamically. This allows your to generate code that displays the parameter values and add whatever other code needed into the wrapper. The following example demonstrates the basics of this approach:
    SQL> -- // our application proc called FooProc
    SQL> create or replace procedure FooProc( d date, n number, s varchar2 ) is
      2  begin
      3          -- // do some stuff
      4          null;
      5  end;
      6  /
    Procedure created.
    SQL>
    SQL> create or replace type TArgument is object(
      2          name            varchar2(30),
      3          datatype        varchar2(30)
      4  );
      5  /
    Type created.
    SQL>
    SQL> create or replace type TArgumentList is table of TArgument;
      2  /
    Type created.
    SQL>
    SQL> -- // create a proc that creates wrappers dynamically
    SQL> create or replace procedure GenerateWrapper( procName varchar2 ) is
      2          procCode        varchar2(32767);
      3          argList         TArgumentList;
      4  begin
      5          select
      6                  TArgument( argument_name, data_type )
      7                          bulk collect into
      8                  argList
      9          from    user_arguments
    10          where   object_name = upper(procName)
    11          order by position;
    12 
    13          procCode := 'create or replace procedure Test'||procName||'( ';
    14          for i in 1..argList.Count
    15          loop
    16                  procCode := procCode||argList(i).name||' '||argList(i).datatype;
    17                  if i < argList.Count then
    18                          procCode := procCode||', ';
    19                  end if;
    20          end loop;
    21 
    22          procCode := procCode||') as begin ';
    23          procCode := procCode||'DBMS_OUTPUT.put_line( '''||procName||''' ); ';
    24 
    25          for i in 1..argList.Count
    26          loop
    27                  procCode := procCode||'DBMS_OUTPUT.put_line( '''||argList(i).name||'=''||'||argList(i).name||' ); ';
    28          end loop;
    29 
    30          -- // similarly, a call to the real proc can be added into the test wrapper
    31          procCode := procCode||'end;';
    32 
    33          execute immediate procCode;
    34  end;
    35  /
    Procedure created.
    SQL>
    SQL> -- // generate a wrapper for a FooProc
    SQL> exec GenerateWrapper( 'FooProc' );
    PL/SQL procedure successfully completed.
    SQL>
    SQL> -- // call the FooProc wrapper
    SQL> exec TestFooProc( sysdate, 100, 'Hello World' )
    FooProc
    D=2011-01-07 13:11:32
    N=100
    S=Hello World
    PL/SQL procedure successfully completed.
    SQL>

  • How to display values inside the Pie chart?

    Hi Expert,
    How to display the values inside the Pie chart, instead of Mouse over values. Can u pls help me to do this one.
    Is it possible can we use mentioned below kind of pie charts in Xcelsius 2008.
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 10:41 AM

    Hi A G,
    Thank You for quick response!!!
    in this Text tab I am able to see below check box only
    1) Chart Title
    2) Sub Title
    3) Legend
    4) Mouse-Over
    Kindly advise me if i am wrong and let me know how to achieve this.
    Note: We have Xcelsius 2008 environment
    Thanks & Regards,
    Tamil
    Edited by: Rajesh Kumar Thoppe on Dec 13, 2010 1:58 PM

  • How to display Month values in SSRS report

    Hi All,
        I have a requirement to display month values in SSRS Chart. x-axis should display all month names from January till current month. How can I set this properties and show it in a line graph
    Thanks & Regards,
    Regards RCP

    Hi,
        The above link is not meeting my requirement. I need January till July to be displayed in x-axis
    labels of graph. How this can be achieved ??
    Regards RCP
    You can create a calendar table on the fly and use it for your dataset to be used in the graph. Use logic as below
    http://visakhm.blogspot.in/2010/02/generating-calendar-table.html
    For getting January till current month use query as
    DECLARE @Start datetime,@End datetime
    SELECT @Start = DATEADD(yy,DATEDIFF(yy,0,GETDATE()),0),
    @End = GETDATE()
    SELECT *
    FROM dbo.CalendarTable(@Start,@End,0,1) f
    As a long time persistent solution best option would be to create a calendar table in the database.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • How to display the value of a column in a chart at the top of each column

    How to display the value of each column in a chart at the top of each column?

    Like this?
    Done using chart Inspector.
    For details, see Chapter 7,  Creating Charts from Numerical Data in the Numbers '09 User Guide. The guide may be downloaded via the Help menu in Numbers.
    Regards,
    Barry

  • How to add a column to a list created with the Dynamic List Wizard to display the values of the fiel

    Hi,
    ADDT, Vista, WAMP5.0
    We have 2 tables: clients_cli (id_cli, name_cli, tel_cli, and several more fields) and cases_cas (id_cas, idcli_cas, court_cas, and a lot of other fields).
    Clients may have many cases, so table cases_cas have a foreign key named idcli_cas, just to determine which case belongs to which client.
    We designed the lists of the two tables with the Dynamic List Wizard and the corresponding forms with Dynamic Form Wizard.
    These two forms are linked with the Convert Dynamic List and Form Wizards, which added a button to clients list named "add case".
    We add a client and then the system returns to the clients list displaying all clients, we look for the new client just added and then press "add case", which opens the Dynamic Form for cases, enter all case details and everything processes ok.
    However, when we view the cases list it display all the details of the case, including the column and values for the foreign key idcli_cas. As you can image, it is quite difficult for a human to remember the clients ids.
    So, in the cases list we added a another column, named it Name, to display the names of the clients along with cases details. We also created another recordset rsCli, selected the clients_cli table, displaying all columns, set filter id_cli = Form Variable = idcli_cas then press the Test button and everything displays perfect. Press ok.
    Then, we position the cursor inside the corresponding cell of the new Name column, go to Bindings, click on name_cli and then click on insert. The dynamic field is inserted into the table cell as expected, Save the page, and test in browser.
    The browser call the cases list but fails to display the values of the Name column. The Name column is simply empty.
    This issue creates a huge problem that makes our application too difficult to use.
    What are we doing wrong?
    Please help.
    Charles

    1.     Start transaction PM01, Create Infotype, by entering the transaction code.
    You access the Create Infotype screen.
    2.     Choose List Screen.
    3.     In the Infotype no. field, enter the four-digit number of the infotype you want to create.
    When you specify the infotype number, please remember to enter any leading zeros.
    4.     In the Screen Number field, enter the screen number of the list screen you want to enhance.
    5.     Choose Create.
    The Dictionary: Initial screen appears:
    6.     Create the list screen structure.
    7.     Choose Activate.
    8.     Return to the Enhance List Screen in the Enhance Infotypes transaction (PM01).
    9.     Choose Create All.
    The additional fields are displayed on the list screen, however, they contain no data.
    The fields can be filled in the FORM routine FILL-LISTSTRUCT in the generated program ZPnnnn00. The FORM routine is called for each data record in the list.
    Structure ZPLIS is identified when it is generated with a TABLES statement in the program ZPnnnn00.
    The fields can be filled from the Pnnnn structure or by reading text tables.

Maybe you are looking for

  • Maintain settlement rules for order category 30(Maintenance order).

    Hi Gurus, Can we maintain two settlement rules for an order without distribution rule? Eample:-  In an order there are three  different costs i.e. material cost,external labour cost and internal labour cost.We want to settle the material cost and ext

  • How to convert XML content into SQL INSERT statements

    Hi all, I'm very new to XML. Forgive me if I don't use technical XML terms. :-) We are planning to convert SQL queries into XML format using a third party tool. After that we have to read the XML files and use the tokens to insert into custom tables.

  • MDT 2012 to Migrate from Windows 2003 32 Bit to Windows 2012 R2 64 Bit

    I have used MDT for so long however only for client OS upgrade - XP to Windows 7/8. We wish to use MDT to migrate from Windows 2003 32 Bit to Windows 2012 R2 64 Bit. All servers are virtual on HyperV or VMWare - plan is to use USMT hardlink Migration

  • What to be aware of upgrading from 10.2.8 to Tiger

    I have an iMac superdrive G4 17" flatpanel. I am running on 10.2.8 currently but am considering upgrading to Tiger. What should I be aware of with regards to my software if I do upgrade - most importantly my Photoshop 7, Illustrator 10, InDesign 2 (a

  • Session geting null in AM Impl class

    All, In my root AM IMPL class i am setting the session variables as follows         if(pAccountNumber!=null) getSession().getUserData().put("accountNumber",  pAccountNumber);         System.out.println("User Account Number from Session is : " + getSe