Value from results row of the query

Hi Gurus,
My query gives me the following result.
Cost Cent      Cost Elmnt        Cost      FTE     Cost Per FTE
  CC1                 CE1              100          -            100
  CC1                 CE2              200          -            200
  CC1                   -                   -            5               0
Result                                    300          5            60
Now my question is can I capture the result of FTE (i.e., 5) and display it in first and second rows. Basically, I would like the output to be like:
Cost Cent      Cost Elmnt        Cost      FTE     Cost Per FTE
  CC1                 CE1              100          5            20
  CC1                 CE2              200          5            40
  CC1                   -                   -            5               0
Result                                    300          5             60
Regards,
RR

Got it...Used SUMCT in another formula variable.

Similar Messages

  • Result Row in the query output

    Hi,
    If I restrict a characteristic by hierarchy then I can’t have the result row displayed. If the hierarchy active is removed then the result row gets displayed. All characteristics are marked to show the result row.
    This characteristic is Account Number. If in the query definition I remove the restriction on account numbers and just select hierarchy active and the required hierarchy in the properties then I get the result row in the output. But now it also displays all the unassigned account numbers in a separate node “Not Assigned Account Number (s)”.
    I can’t even restrict it in the output with hierarchy active selected. When I do select filter value in the output the options Include in Selection and exclude from Selection are grayed out and hence can’t select it.
    Please advice on this issue…
    Thank you,
    sam

    Hi Jaya,
    I think you misunderstood my issue.
    My problem is not that i do not want to see the field. But instead, i do not want to see only the results row in the query output.
    I need to have the results to populate a calculation via sumct formula.
    My question is, can sumct be populated if i hide/supress RESULT row ?
    Regards,
    Maili

  • Getting descrepency in the result row of the Query

    Hi All,
    I am executing a query which is having 4 Keyfigures and 2 formulas.
    I am getting wrong result in the query for formulas.
    Below is the query structure
               f1        f2         f2%f1       f3       f4            f4%f3
    date
    1
    2
             792    408        51.78        9647    8403       88.57
    All the keyfigures - result is set as total
    Formula                - result -nothing is defined(under calculation tab)
    The result I am expecting for column 3 is 408/792 = 51.51
    The result I am expecting for column 6 is 8403/9647=87.10
    To get the expecte result what changes i need to do to the formula.
    Thanks
    Jagadeesh

    Hi Anand,
    Thanks for your reply.
    If i change it to summation, it will give me sum in the result row.
    I am not looking for summation, i want percentage for (overall result F2/overall result F1).
    Thanks
    Jagadeesh

  • Wrong value in Result Row in a query which includes 1:N relationship SO/Inv

    Dear all,
    I have an InfoSet which includes sales order DSO, PO DSO and Invoice DSO. The purpose is to design a report to show 3rd party order flow.
    Now I met an issue if one sales item contains multiple billing doc. Below is an example:
    Sales doc: S001   order Qty is 600, there are two invoices for this order B001 invoice 200 and B002 invoice 400. Now in report we see below:
    Sales Doc. --   Invoice no.   ---  Order Qty  --   Invoice Qty
      S001 ---B001         -
           600        -
             200
      S002 ---B002         ---        600         -
            400
    Result Row     -
                                     1200      ---            600
    We can see in Result Row totsl order qty is 1200 which is wrong.
    I am wondering if anybody have such experience and the method soving this problem ? Many thanks in advance !

    Hi,
    Normal aggregation calculates the result row as a summation.  However, you can change this default behaviour by using Exception aggregation at "Order Qty" key figure.
    You can find a detailed article with examples about Exception aggregation at:
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/f0b8ed5b-1025-2d10-b193-839cfdf7362a
    I hope this helps you.
    Regards,
    Maximiliano

  • Finding minimum value in each row using dynamic query

    need to find the minimum and maximum value from each row using dynamic query
    [from curr] will be given as input
    Tuky

    DECLARE @t TABLE(a INT,b INT,c INT);
    INSERT @t VALUES(1,2,3),(9,8,7),(4,6,5);
    SELECT *
    ,      (   SELECT  MAX(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS MaxVal 
    ,      (   SELECT  MIN(val) 
               FROM    (VALUES (a)
                           ,   (b)
                           ,   (c)
                       ) AS value(val)
           ) AS MinVal 
    FROM @t;
    Best Regards,Uri Dimant SQL Server MVP,
    http://sqlblog.com/blogs/uri_dimant/
    MS SQL optimization: MS SQL Development and Optimization
    MS SQL Consulting:
    Large scale of database and data cleansing
    Remote DBA Services:
    Improves MS SQL Database Performance
    SQL Server Integration Services:
    Business Intelligence

  • Copying the value from a cell in the SQL results?

    I run an sql query. The results are returned in a results window. I would like to copy the value from this cell
    and paste it into an sql query. How can I do this? I can copy and paste a value from a cell in the view of the data in
    a table, but not from the test results. How do I do this? Is there a setting I need to change?

    I usually do this kind of operations and I've never had any issues, the procedure is as simple as CTRL-C in the results grid, with the required column/columns selected and CTRL-V in the worksheet or anywhere else.
    If you still have issues please post your
    - SQLDeveloper version
    - Java Version
    - OS
    - Database Version
    and if you can a small test case.

  • Presenting/Selecting the "result rows" in a query

    Hi,
    Here is a description of my problem:
    I have a query which returns values for materials grouped by purchasing groups:
    Group 1 Material A KyeFigure
    Group 1 Material B KyeFigure
    Result:  KyeFigure       
    Group 2 Material C KyeFigure
    Group 2 Material D KyeFigure
    Result: KyeFigure
    I'm using a Web application designer chart to present the values graphically. I would like only to present the result rows in the chart, not item values. But since the chart picks all KFs presented in the table (items as well) this is not the case. I've tried to find a way in the chart-settings without any luck - it seems not possible. The documentation states that you're supposed to design your table the way you want it to show in the chart. However, I'm not allowed to redesign the cube or the report. It is not possible to drill up characteristics either (this affects the calculation).
    My question is: Is there a way to extract the result rows into a new table and then base my chart on that one or simply somehow present only the result rows in a chart?
    Best Regards
    /Daniel

    Hi Daniel,
    You can create the query view in BEx Analyzer. After you execute the query, use filters, drill downs etc to get to the exact "view" of data that you would like you chart to present. Save this query view. Then in your web template assign this query view as the data provider.
    Hope this helps...

  • How to exclude the XML declaration from each row of the result set?

    Hi,
    I have a table with an XMLTYPE column and would like to SELECT a set of rows. How can I exclude the XML declaration from each row in the result set? My query currently looks like this, I'm executing it through Spring JDBC:
    SELECT XMLSerialize(CONTENT t1.xmltext) FROM myschema.event t1 WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e") ORDER BY t1.time DESC
    After selecting, in my application I convert each row into a String and concatenate all rows into one big string in order to parse it into a DOM model. I get a parser exception (org.xml.sax.SAXParseException: The processing instruction target matching "[xX][mM][lL]" is not allowed) because there are multiple XML declarations in my big string. Of course, I could manually check the String of each row whether it starts with the XML declaration, but it would be nicer if I could instruct the DB not to add it in the first place. Is there a way?
    Thanks!
    -- Daniela

    Hi,
    A couple of options I can think of :
    SELECT XMLSerialize(CONTENT
    XMLtransform(t1.xmltext,
      xmltype('<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output omit-xml-declaration="yes"/> 
    <xsl:template match="/"><xsl:copy-of select="*"/></xsl:template>
    </xsl:stylesheet>')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;or simply,
    SELECT XMLSerialize(CONTENT
      extract(t1.xmltext,'/')
    FROM myschema.event t1
    WHERE XMLEXISTS('$e/Event' PASSING XMLTEXT AS "e")
    ORDER BY t1.time DESC
    ;

  • How To Concatenate Column Values from Multiple Rows into a Single Column?

    How do I create a SQL query that will concatenate column values from multiple rows into a single column?
    Last First Code
    Lesand Danny 1
    Lesand Danny 2
    Lesand Danny 3
    Benedi Eric 7
    Benedi Eric 14
    Result should look like:
    Last First Codes
    Lesand Danny 1,2,3
    Benedi Eric 7,14
    Thanks,
    David Johnson

    Starting with Oracle 9i
    select last, first, substr(max(sys_connect_by_path(code,',')),2) codes
    from
    (select last, first, code, row_number() over(partition by last, first order by code) rn
    from a)
    connect by last = prior last and first = prior first and prior rn = rn -1
    start with rn = 1
    group by last, first
    LAST       FIRST      CODES                                                                                                                                                                                                  
    Lesand         Danny          1,2,3
    Benedi         Eric           7,14Regards
    Dmytro

  • Get values from selected row in a Table?

    Hello.
    I'm on VC 7.1 (the trial version downloaded from SDN).
    I'm trying to figure out a way to retrieve some values from the currently selected row in a Table element through the output connector.
    I have a web-service which returns results to the Table, and I want the user to be able to select one of the rows and then trigger another web-service call with some of the values from that row -- is this possible?
    Also, I can't find any documentation that lists what can and can't be done with each UI element, is there something like this some where? (the Modeler's guide doesn't help, and the Reference guide seems to focus on menu items and what the VC screen looks like)
    Thanks,
    Alon

    Hi Alon
    This is a very simple task.
    You just need drag the service which you want to execute, after select row, in model.
    Drag output connector from table to input connector of service. Then map the parameter.
    Regards
    Marcos

  • Problem in Retrive values from result set

    I have a class where i do all database operation .First i fire select query and take values from result set and based on that value i fire update query.
    Problem is that i am not getting all values from result set . i get only last value and when i fire update query i get error as :Resultset is closed.
    I am using acess and java.

    You probably are using the same Statement object for both queries? Try creating separate Statement objects for each query. (My guess is this a problem with the way you're using JDBC, not a Servlet issue.)

  • How can i select some row from multiple row in the same group of data

    I want to select some row from multiple row in the same group of data.
    ColumnA        
    Column B
    1                  OK
    1                   NG
    2                   NG
    2                          NG
    3                          OK
    3                          OK
    I want the row of group of
    ColumnA if  ColumnB contain even 'NG'
    row , select only one row which  Column B = 'NG'
    the result i want = 
    ColumnA         Column B
    1                         NG
    2                   NG
    3                          OK
    Thank you

    That's some awful explanation, but I think this is what you were driving at:
    DECLARE @forumTable TABLE (a INT, b CHAR(2))
    INSERT INTO @forumTable (a, b)
    VALUES
    (1, 'OK'),(1, 'NG'),
    (2, 'NG'),(2, 'NG'),
    (3, 'OK'),(3, 'OK')
    SELECT f.a, MIN(COALESCE(f2.b,f.b)) AS b
    FROM @forumTable f
    LEFT OUTER JOIN @forumTable f2
    ON f.a = f2.a
    AND f.b <> f2.b
    GROUP BY f.a

  • RRI Interface from result rows

    Hi,
    Is it possible to do RRI from result rows from a query.
    Thanks
    Jyothi

    Hi,
    Are you running the report from the query or from the workbook? If you have changed the query and are stilll running the same workbook, sometimes these changes do not come through...Close the workbook and try to execute the query again. Does it still happen?

  • How to suppress Result rows in a Query in Web Application Designer

    Hi
                 I am trying to post a query in Web Application Designer. I am able to run the query in WAD but the Results rows appear. I choose Suppress Result Rows always in All Characteristics option in the query in BEx Explorer but still i see result rows in the WAD. Can anyone please let me know how to suppress Result rows so that they dont appear in Web Application Designer.
    Thanks,
    Padma

    To get the enhanced menu-
    1. Open the template in WAD.
    2. Go to Web Item properties.
    3. Go to Entries in Context Menu.
    4. Find the "Enhanced Menu" property. Set it to "display" if you want it to be visible in template result.
    5. Next time when you execute your template you will be able to access it by right clicking.
    or
    If you just want to supress results without adding enhanced menu in the context menu, simply set "Calculate result as" to "No Display".

  • Result Rows in a Query

    Hi
    I have sales org, channel, customer and material along with the key figures in the rows
    of the query. I am automatically getting result for each level by default and then the
    overall result. Is there a way in which i can change all the result rows with
    the corresponding text they belong to like the material result, customer result etc.
    Thanks
    Rashmi.

    Hi
    Not Sure, But try replacement path Variable (with Material Result...etc) and the ckf/Formula(total all the Material, channel...etc) for the same to appear the totals Row .
    /people/kamaljeet.kharbanda/blog/2006/12/28/bex-characteristic-variable-with-replacement-path
    Hope it helps and clear

Maybe you are looking for