I want to show sum of two measures in Crosstab, is it possible?

Hello,
I want to show sum of two measures in Crosstab. There are only two measures in BW query, and I want to show sum of them by new column in Crosstab component.
For example:
Measure 1
Measure 2
Sum (New Column)
100
200
300
50
30
80
30
90
80
Is it possible ?
Thanks.

Hi,
Design Studio is not capable to calculate that. If you like you can do it in BEx Query Designer as mentioned above.
Alternatively you can open your Query in Analysis Office and do the calculation there. Then you can smart copy and paste the navigation state into Design Studio.
Dirk

Similar Messages

  • Compute sum of two columns - display result in the third column

    Hello,
    I have a report and I want to compute sum of two report columns and display the total in the third column.
    For example: Sample_My_Report
    Col1 Col2 Total (Col1+Col2)
    3 7 10
    can anyone help me out with this issue.
    thanks.

    thanks for replying. One more thing is that
    How can I compute Avg for a particular column in a Master detail report. I need the avg(sal) to be displayed at the end of the report similar to sum(reports total).
    Can you help me out with this issue.
    thanks.

  • Sum of two columns

    Hi guys
    i need to insert one column in a row with forumla as col1+col2. how can i do that in simple tabular report. My two columns in XML are like this:-
    <T_AMT>240.6</T_AMT>
    <TAX_AMT>0</TAX_AMT>
    Can i use substring function while creating template in word or i need to use substring while writing query...
    thanks
    Edited by: ObieeUser on 28-May-2010 03:07

    Hi Vetsrini
    thanks for your reply...
    for showing sum of two columns:-
    is it possible to do with GUI instead of writing code or doing tweaks in the sql... the main drawback of doing tweaks in sql is after i make changed in sql and then i click on sql builder it doesn't show me the changes which i have done....
    Use of Substr/Decode/Case When or other oracle function
    another question is like if i need to use substr function in sql can't i do it in SQL builder if yes then how as i have seen function drop down in sql builder but it doesn't show such function?
    regards

  • Dont want to show the divided line between two rows in a Grid.

    Hello Friends,
    I want a Grid in which I want multiple rows but i dont want to show the divided line between two rows.
    It is just like a grid on Territories form(Administrator->SetUp->General->Territories)
    Thanks.

    Mithun,
    The component you're talking about is not a grid, and that component is not exposed by the UI API so you cannot use it.
    Regards,
    Vítor Vieira

  • Different aggregation operator for two measures in single cube

    Hi,
    I have three measures age_month and age_year,pages for which aggregation operator should be like this
    for age_month and age_year
    time - max
    account - sum
    sales org - sum
    for pages
    time - sum
    account - sum
    sales org - sum
    I am creating MOLAP cube in OWB and deploying to AWM. I can create above structure in OWB but when I deploy it to AWM I see that for all the dimensions and all the measures aggregation operator as sum. Off course I can change the aggregation operator at cube level but it make changes to all underlying measures too.
    Also I can see in XML of the cube and see the operator for two measures is as max but UI shows as sum. After load also I am seeing in report it is calculating as sum instead of max along time dimension.
    Any help would be highly appreciated.
    Thanks
    Brijesh

    If you have an existing cube (already defined and aggregation setup) then modifying the aggregation behavior like changing order of dimensions/aggregation operators is not very robust (likely to fail due to inability of internal objects to sync up to modified defintion). Its always better to take a backup of cube definition and drop/rebuild a fresh cube with new dim order/agg operators.
    How can you have a compressed cube and also set the aggregation property per dimension?
    I was under the impression that if it is a compressed cube, then not only is there a restriction that all measures have same aggregation properties (defined at cube level) but also the aggregation behavior defined at cube level should use the same operator (note: any one operator out of sum or max or min) for all dimensions.
    Edited by: Shankar S. on Dec 19, 2008 11:54 AM
    Perhaps this additional restriction is only required if we intend to use the Cube as a source for relational queries using Cube organized MVs.
    Another way to do this is given below:
    I'm assuming that when you say that you require Max along Time and Sum along other dimensions, you mean that you want LAST (chronological) along time at leaf level and SUM along other dimension. Also assuming that Time hierarchy has the following levels: DAY, MONTH, QUARTER, YEAR. Big assumption :) as finding out Max along time requires the help of the fact/measure whereas finding out last along time requires us to use the dimension (along with dimension metadata) alone.
    Define 1 Cube: Cube1 ... Structure: Compressed Composite, datatype: DECIMAL
    Set Aggregation: SUM along all dimensions
    Create 3 stored measures ( age_m_sto, age_y_sto and pages)
    You may want to set description for age_m_sto/age_y_sto as "******** INTERNAL: DO NOT USE ******** Stored Measure used for age_month/age_year"
    Create 2 calculated measures - age_month and age_year defined as follows ...
    olap expresssion to be given in AWM:
    <age_month>: OLAP_DML_EXPRESSION('cube1_age_m_sto(time if time_levelrel eq ''DAY'' then time else statlast(limit(time to bottomdescendants using time_parentrel time(time time))))', DECIMAL)
    <age_year>: OLAP_DML_EXPRESSION('cube1_age_y_sto(time if time_levelrel eq ''DAY'' then time else statlast(limit(time to bottomdescendants using time_parentrel time(time time))))', DECIMAL)
    NOTE: The caculated measure performs the LAST along time action using the stored measure. For every higher level time dimension member, it reaches along the dimension to the last leaf level member and reads the stored measure for that lowest level time member.
    Map and Maintain Cube.
    From the SQL Cube View: Use only the columns corresponding to stored measure: pages and calculated measures: age_month, age_pages (ignore columns corresponding to age_m_sto, age_y_sto)
    HTH
    Shankar

  • Two measures with Different filters in a query

    Hello,
    I have requirement where I have two measures in a query and have to filter those measures differently based on month. Like For actual values, I want to restrict the data as per end user selected parameter but for Plan data, I want to show till the end of
    the year. Eg. If user select July 2014 as month parameters then we have to display Actual data  from Jan 2014 to July 2014 where for Plan, I have show data from Jan 2014 to Dec 2014.
    Here is an example of query  which works in Management studio but does not work in query designer for ssrs:
    SELECT NON EMPTY
    { ([Measures].[actual]*[Date].[Year to Month].[Month]),
    ([Measures].[plan],ANCESTOR(strtomember("[Date].[Year to Month].[Month].&[2014]&[7]"),2).FIRSTCHILD.FIRSTCHILD:strtomember("[Date].[Year to Month].[Month].&[2014]&[7]"))}  ON COLUMNS,
    NON EMPTY
      ( [Date Calculations].[Date Calculations].AllMembers )
    } on ROWS
    FROM
    [abc]
    I want a functionality similar to this query replacing data parameter with date prompt. How do I do this kind of stuffs in query designer?

    For multiprovide scenario that's ok if you didn't have same key figures between them,
    but your record in report will be doubling.
    Have you try infoset? Check this link:
    [http://help.sap.com/saphelp_nw04/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/ed/084e3ce0f9fe3fe10000000a114084/content.htm]
    Regards,
    Steph

  • Compare two datasets in crosstab by showing percentage of sales

    I am wanting to compare two datasets in a crosstab chart.
    Basically I have a sales table and a business costs table. 
    My business costs table fields look like this:
    Category
    CostDate
    CategoryCost
    My sales tabel looks like this:
    PartNumber
    SalesDate
    SalesAmount
    In my crosstab I want to group my rows by Category and my columns by Month.
    So that in my summaries I can show sum of category cost and the percent of sales for that particular month.  I can do everything except show percent of sales for that specific month. My sales table has a SalesDate that I will be using to group off of.
    Any ideas on how to do this, I am not sure where to even start. I am still new with crystal reports.
    my sales data
    PartNumber     SalesDate     SalesAmount
    Part1     1/1/2011      $1.00
    Part2     1/1/2011      $1.00
    Part3     1/1/2011      $1.00
    Part4     1/1/2011      $1.00
    Part5     1/1/2011      $1.00
    Part6     1/1/2011      $1.00
    Part7     2/1/2011      $1.00
    Part8     2/1/2011      $1.00
    Part9     2/1/2011      $1.00
    Part10     2/1/2011      $1.00
    Part11     2/1/2011      $1.00
    Part12     2/1/2011      $1.00
    Part13     2/1/2011      $1.00
    My business cost data
    Category     CostDate     CategoryCost
    Office     1/1/2011      $1.00
    Office     2/1/2011      $1.00
    Warehouse     1/1/2011      $1.00
    Warehouse     1/15/2011      $1.00
    Warehouse     2/1/2011      $1.00
    Quality     1/1/2011      $1.00
    Quality     2/1/2011      $1.00
    Quality     2/15/2011      $1.00
    What I want my crosstab to look like
                      Total       |                     1/2011  |                   2/2011     
         Business cost  |  % of Sales  |  Business cost  |  % of Sales |  Business cost  |  % of Sales
    Total  |  $8.00  |  62%  |  $4.00  |  67%  |  $4.00  |  57%
    Office  |        $2.00  |  15%  |  $1.00  |  17%  |  $1.00  |  14%
    Quality  |        $3.00  |  23%  |  $1.00  |  17%  |  $2.00  |  29%
    Warehouse  |  $3.00  |  23%  |  $2.00  |  33%  |  $1.00  |  14%

    Hi Joshua,
    assuming that you have linked your two tables and built a crosstab report:
    In the summary data field you summarize 2 fields
    1. your SUm of Business Cost
    2. your Sum of sales.  -> Edit that summary to show % of the Table field you want to summarize and select by column

  • How do you get the sum of two columns multipied together?

    I can't seem to figure out how to get the sum of two columns multiplied together without having to manually type out each location (example: A1*B1+A2*B2+A3*B3, etc..).  Though the idea seems to be rather simple, everything I have tried has only given me an error.  I know there must be an easier way of doing this, but I get lost in the explanations given in 'help' area of numbers, can someone help me?

    C3=SUMPRODUCT(A3:A18, B3:B18)
    the function SUMPRODUCT() takes ranges and multiplies corresponding cells in the ranges, then adds them together.
    I the case I show SUMPRODUCT() performs:
    A3*B3 + A4*B4 + A5*B5 + A6*B6 + ... +  A18*B18
    If you want to perform the same operation on the whole column (s) you could modify the formula:
    C3=SUMPRODUCT(A, B)

  • How do I make a form field validate that it is the sum of two other fields?

    Hi there,
    I am creating a form, and I would like one of the fields to validate by making sure that this field is the sum of two other fields in the form.  Does anyone have any ideas on how to go about this?  I know I'll need to run a custom validation script, but I'm not sure where to begin - I've never done one for validation before.
    Thanks for any help!

    OK, here's a sample script that I hope will clearly demonstrate the general approach. It is intended to be the custom Validate script of the field that the user enters that value that is supposed to be equal to the sum of the two others.
    // Custom Validate script
    (function () {
        // Get the value that the user entered
        var sVal = event.value;
        // If it is blank, do nothing else
        if (!sVal) {
            return;
        // Convert string to a number
        nVal = +sVal;
        // Get the values of the fields, as numbers
        var v1 = +getField("text1").value;
        var v2 = +getField("text2").value;
        // Add them together, rounding to two decimal places, converting to number
        var sum = +util.printf("%.2f", v1 + v2);
        // Compare entered value to the sum of the other two fields
        // Alter the user if they do not match
        if (nVal !== sum) {
            app.alert("The value you entered does not equal the sum of text1 and text2. Please correct.", 3);
            // If you want the entered value rejected, include the following
            event.rc = false;
    Replace "text1" and "text2" with the actual field names.

  • Calendar help: how do I get One event to show up on two calendars

    Calendar help: how do I get One event to show up on two calendars? For example I want to enter vacation only once but I wanted to show up on the calendar that I share with my husband and the calendar I have with my assistant.

    The signature should show up with each account. Usually the complaint is not having an option for multiple signatures or not being able to have a different signature for each account.

  • I want to show tick mark in oracle..

    Dear all,
    i want to show tick mark in my report.
    (Means i'm having table 'Table1' with two column 'col1, col2', the col2 is 'Y','N' check constraints , if i'm selecting the value of 'Y' in col2, i want to show with tick mark(instead of 'Y') in my report... )
    Is ther any oracle functions? could u help me any one pls?
    Thanks in advance
    Regards,
    RengarajR

    This depends on your reporting tool.
    Which are you using?
    Do you use jdeveloper at all? if yes which version?
    Timo

  • Database using in jsp : want to show 10 records on  a single page

    hi ,
    my probem is i want to show 10 records from database to html page using jsp in a table,with two links Next and Rrevious.when user click next table will show next 10 records and so on.
    and when user click on previous then table have to show previous 10 records to table.
    how can i do this i m using rs.abolute(), but it doesn't do as i want.
    plz help me

    afterv accessing alll the data from databse put them into an array and put this array in user's session and now when user clicks on next or previous extract the data from the array not from database it ill also decrease server load..

  • Top n  filter in universe based on two measures(MDX expression)

    Hi,
        I have to do filter at universe level based on two measures. for example, i have
    BusAr       year       value
    ddddfd        1997      435433.
    I can able to do filter using mdx expression for busniess area wise top 10 values in universe. using the following syntax
    <FILTER EXPRESSION="Rank([0BUS_AREA].CurrentMember, Order([0BUS_AREA].CurrentMember.Level.Members, [Measures].[D7G51I90GYJ8POGFSYVFPX24F], BDESC))">
    now i want to filter using year wise and business area wise top 10 filter  in universe.   where to add the second member yearwise in Rank () function.
    how to achieve this.
    Regards,
    Shanthakumar.

    Hi,
    I am not sure you want to make a Top n filter on 2 different measures.
    But if you want to make a Top n filter on 2 ore more different dimensions, here is the code.
    IIf(IsEmpty([Measures].[Sales Amount]),null,
      Rank(   StrToTuple( "(" + Generate(Head(Axis(1),Axis(1).Item(0).Count) AS RN,
      "Axis(1).Item(0).Item(" +
      CStr(RN.CurrentOrdinal - 1) +
      ").Hierarchy.CurrentMember",
      ",") + ")" ),
      Axis(1),   [Measures].[Sales Amount]  )    )
    Please note that the code is taking into account all dimensions involved in the rows axis, so the more dimensions yu add in the query the top n will increase the number of values.
    I have successfully tested it on MSAS but it seems that on SAP the "+" character is not allowed...
    Maybe there are some SAP notes to add.
    Didier

  • Mdx : Sum up the measure from start but need only non empty rows

    Hi All
    i have created a calculated measure where it suming up all its previous avaialable values based on Date dimension.
    Everything is working but we are getting all rows from that datetimension . how can get only till current date,
    SUM(NULL:[Date].[Hierarchy].currentmember,[Measures].[SIMID])
    Surendra Thota

    Hi Surendra,
    According to your description, you want to calculate the sum up the measure from start for those non empty rows, right?
    In this case, please try the query below.
    WITH MEMBER [Measures].[Sum from start]
    AS
    SUM ({NULL:[Date].[Calendar].CurrentMember},
    [Measures].[Internet Sales Amount])
    SELECT {[Measures].[Internet Sales Amount],[Measures].[Sum from start]} ON 0 ,
    nonempty([Date].[Calendar].[Calendar Year].MEMBERS) ON 1
    FROM [Adventure Works]
    Result
    Besides, here is a blog which describe various way to calculate running total, please see:
    http://blog.sqltechie.com/2011/01/various-way-to-calculate-running-total.html
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • Is there a better approach to show the distinct count measures?

    Experts,
    I have a requirement in which I want to diplay 20+ calculated columns. The coulmns are something like this..
    No of clients with income < 10000 (to check against sales measure in fact table)
    No of Clients with sales > 500000 (to check against sales measure in fact table)
    No of clients whose join date > 1st jan current year ( to check against cust_start_dt of client Dim)
    No of clients with size "Medium" (to check agains a column client_size of Client Dim)
    No of clients with sell product units > 500 (Need to check units in PROD Dim)
    and so on..
    Well, I can write a case statement using expression builder for each column in the criteria, but the report performance is very bad. My client dimension is a huge partitioned table. As I keep on adding columns, the report takes more time to fetch data and at some point it never comes back.
    We tried to push to calculations to database, but since users can provide any selection criteria from dashboard prompt, it doesn't seem to work.
    If anyone had done any similar request in the past, please direct.

    Jared,
    Thank you for responding to my posted message. Rendezvous is a new concept to me, maybe
    it's the solution to my problem. I have been trying to read the on line manual and
    example VIs from National Instruments website. I still have a hard time to understand
    the concept.
    One of the example I saw is using rendezvous to run some sub VIs. But in my case, I have
    only one VI that is a while loop. Inside the while loop, there are a few tasks running
    simultaneously. I don't know whether it will serve my purpose.
    Guangde Wang
    Jared O'Mara wrote:
    > Guangde,
    >
    > Referring to your 2nd method, use rendezvous (under advanced>>synchronize
    > on function palette) to synchronize two processes. There are good examples
    > that come with labview. basically, you cre
    ate a rendezvous, giving it a
    > size. Using the wait on rendezvous vi, a function will not continue until
    > all rendezvous have reached that point. Using this method, you can synchronize
    > your 2 while loops.
    >
    > Jared
    >
    > Guangde Wang wrote:
    > >I tried two ways to control the tempo of my program.>>One is to use the
    > While Loop's counter and a wait. The drawback of this>method is the cycle
    > length is dependent on the measuring load. So if the>program runs for days,
    > it will be significent off the real time.>>The other way is to use the difference
    > of the Tick Count. It provides>accurate timing but the problem is the sychronization
    > of the clock cycle>and the While Loop cycle. I can try to put a little bit
    > wait but still>can not sychronize them very well. So after a while, there
    > will be two>measures get together.>>I don't know whether there are some better
    > ways to control the program>or whether we have some ways to improve either
    > or both of the above
    two>methods to make them work better. Please let me
    > know if you have any>suggestion.>>Thank you in advance,>>Guangde Wang>

Maybe you are looking for

  • Image size from photoshop to indesign

    For some reason if I make an image the exact size in Photoshop and bring it into indesign DPS it is always smaller.  Obviously I can resize it but i was curious why this is happening.  I set my file up to be 1024 x768 at 72 dpi and save as a JPEG.  W

  • Function module for Vendor

    Hi Pls help me out, Any function module , which takes Input as a Vendor ID and returns Vendor Name(Formatted Name). Regards Arya

  • MPEG Problems

    I have a project with multiple tracks each of them with very similar content. I rendered them all using the same settings and everything worked fine. All of the tracks were viewable. I needed to re-render all of the clips because i needed to add a gr

  • PS 5 suddenly crashes

    After working properly for 4 years, PS 5 crashes immediately after opening. resinstall did not fix it. Log: Problemereignisname:    APPCRASH   Anwendungsname:    Photoshop.exe   Anwendungsversion:    12.0.0.0   Anwendungszeitstempel:    4bbc5b10   Fe

  • Why does iDVD crash every time

    I am using iDVD 7.1 (1145) on my iMac (OSX 10.6.5 / 8GB). I can start iDVD, create a new project and select a theme, but as soon as I click the media button in iDVD the program quits. Nothing else appears to be affected. The same version of iDVD runs