Formula in Query row suppress the formula in Query column

Hi all,
I have a problem that I hope you can help me with.
I have created a query to report the following in the row:
- Units    (reading the data from a cube)
- Gross Sales (reading the data from a cube)
- Discounts   (reading the data from a cube)
- Net sales    (a formula = Gross Sales - Discounts)
- Net sales/units  (a formula = Net sales/Units)
In the column, I want to compare 2 version: Plan and Actual. Thus in the column, I have the following:
- Actual (restricted with 0VERSION=001, 0FISCPER=001.2007-012.2007)
- Plan (restricted with 0VERSION=999, 0FISCPER=001.2007-012.2007)
- Actual - Plan (a formula = Actual - Plan)
I do not get the correct result for Net Sales/Units. The reason, for as far I can analyze is because the formula in Row suppress the formula in Column.
Thus what happened:
'Description';   'Actual';           'Plan';         'A-P(should be)';      'A-P(current result)'
'Units';               200;                150;                50;                          50
'Gross Sales';    100000;            75000;             25000;                    25000
'Discount';           20000;            10000;             10000;                    10000
'Net Sales';          80000;            65000;             15000;                    15000
'Net Sales/Unit';     400;             433,33;             -33,33;                     300
                                                                                As you can see from the example above, I cannot get the correct result in the Actual - Plan column.
Do you know which formula/setting that I can use to get the correct result?
Any help/advice will be highly appreciated.
Thank you very much in advance.
Fen

Sanyoto,
Use formula collision - in the K concerned right click - select properties and then you will ind a "Formula collision" dropdown in the bottom part - select the appropriate ormula for the same there.
Arun

Similar Messages

  • Return the rows of the table where a column contains a specific value first

    I want my query to return the rows of the table where a column contains a specific values first in a certain order, and then return the rest of the rows alphabetized.
    For Example:
    Country
    ALBANIA
    ARGENTINA
    AUSTRALIA
    CANADA
    USA
    Now i want USA and CANADA on top in that order and then other in alphabetized order.
    Edited by: 986155 on Feb 4, 2013 11:12 PM

    986155 wrote:
    If it is 2 then i can write a case... i want generalised one where may be around 5 or 6 mentioned should be in descending order at the top and remaining in ascending order there after.Computers tend not to work in 'generalized' ways... they require specifics.
    If you store your "top" countries in a table you can then simply do something like...
    SQL> ed
    Wrote file afiedt.buf
      1  with c as (select 'USA' country from dual union
      2             select 'Germany' from dual union
      3             select 'India' from dual union
      4             select 'Australia' from dual union
      5             select 'Japan' from dual union
      6             select 'Canada' from dual union
      7             select 'United Kingdom' from dual union
      8             select 'France' from dual union
      9             select 'Spain' from dual union
    10             select 'Italy' from dual
    11           )
    12      ,t as (-- top countries
    13             select 'USA' country from dual union
    14             select 'United Kingdom' from dual union
    15             select 'Canada' from dual
    16            )
    17  select c.country
    18  from   c left outer join t on (t.country = c.country)
    19* ORDER BY t.country, c.country
    SQL> /
    COUNTRY
    Canada
    USA
    United Kingdom
    Australia
    France
    Germany
    India
    Italy
    Japan
    Spain
    10 rows selected.

  • Computational Error when using if then formula in a block, when the formula

    Hi all,
    I am getting a computational error on one of my reports,
    where i have created a new variable. The variable is an "if and
    then" formula which uses the date variable. However if i leave the
    date variable in the report block then the new variable is fine and
    works. However due to the nature of the report we would like the
    report to give a summary over a date range. In normal circumstances
    i would be able to simply drag out the date variable from the report
    block and it would create a summary. Unfortunatley in this instance
    i get the dreaded "computational error". I know its due to the fact
    that business objects requires the date variable present. Is there
    any way around this...
    I've seen some manual work arounds i.e table
    properties and hide the date field, and then group header for each
    category with totals and then table properties and select Fold so
    that it shows the total (one for each product, rather one for each
    day and each product). Just wandering if there is perhaps a more
    efficient way around this. your help will be much appreciated.
    Nandeep

    I don't think it is possible to lock in the date and time using a formula. You could put NOW() in a cell, copy, and Edit Paste Formula Results where you want the result.
    Or if you are "time stamping" a lot, you may find this Automator Service (Dropbox download) helpful. It puts a "Today" function (actually it should be named "Now" because it includes both date and time) in your Services menu like this:
    Just doubleclick the .workflow package to install it. You may have to click "download anyway" in System Preferences > Privacy & Security.
    If you want you can assign the service a keyboard shortcut in System Preferences here:
    SG

  • I want to create a formula for telephone numbers in the formula editor

    Is there a way to create a formula for telephone numbers in the "custom" editor in the inspector
    IE if I enter 2123456789 into a cell it automatically formats it to look like this (212) 345-6789

    You can create a new format by opening the Cells Inspector, then selecting "Custom" from the format menu:
    You can add the ### fields and click the menu on the left of the field:

  • Adding new rows in the input-ready query

    Hello everybody!
    Could you please advise what setting should be done in the ready for input query to make it possible to add rows in it.
    I succeeded in creating input ready queries where it is possible to modify key figure value for the existing records, but I haven't succeeded yet in creating query with input-ready rows.
    Thank you in advance,
    Kind regrds,
    Maria Kazakova

    Hi Gregor!
    Thank you.
    Of course before posting a question, I've read this help topic attentively.
    I created Aggregation level ZPPLAN with characteristics:
    •     Version
    •     Cal. Year/Quarter
    •     Currency
    Key figure:
    •     ZSUM_BDG
    Query ZPRQUERY3 is based on aggregation level ZPPLAN
    Query settings:
    Rows:
    •     Version
    •     Cal. Year/Quarter
    •     Currency
    Key figure:
    •     ZSUM_BDG
    in the key figure properties, tab Planning option "Data can be changed using user entries or planning functions" is selected.
    Execution of the query returns the table with input-ready cell and <u><b>empty new rows doesn't present</b></u>.
    so could you please advise what else settings should be done for query, to make input ready rows available in the query? so as to make it possible to enter new records in the input ready query?
    Following settings are done for the Analysis Grid properties:
    tab "General":
    - Display sort icons
    - Apply formatting
    - Allow navigation
    - autofit
    - Display hierarchi icons
    Tab "Clipping":
    Full size for horisontal and vertical.
    Sorry for so long quetion,
    I would be grateful for an answer,
    Kind regrds,
    Maria Kazakova

  • Need Sql Query that Suppress the repeating rows.

    Hi Sir,
    I have below data set.
    DeptID  Sum(SAL) Avg(Sal)
      10      1300      1300
      10      2450      1300
      10      5000      1300
      20      800        800
      20      1100      800
      20      2975      800
      20      3000      800
      30      800        800
      30      1100      800
      30      2975      800
      40      3000      800
      40      4000      900
    I Need  SQL query that can remove the duplicate or suppress.Just like below data set.
    Output:
    DeptID  Sum(SAL) Avg(Sal)
      10      1300      1300
                2450      1300
                5000      1300
      20       800        800
                1100      800
                2975      800
                3000      800
                800        800
      30      1100      800
                2975      800
      40      3000      800
               4000      900
    Could you please help me on this..

    Your requiremnt is more of a reporting request which should not be handled in SQL. For example in SQL Plus you can use the BREAK command
    SQL> break on deptno
    SQL> select deptno, ename from emp order by deptno;
        DEPTNO ENAME
            10 KING
               CLARK
            20 JONES
               SCOTT
               SMITH
               ADAMS
            30 TURNER
               MARTIN
               WARD
               ALLEN
               BLAKE
    11 rows selected.
    SQL>
    But if you still wish to do it in SQL you can use ROW_NUMBER analytic function and achieve it like this
    select decode(rno, 1, deptno) deptno
         , ename
      from (
              select row_number() over(partition by deptno order by ename) rno
                   , deptno
                   , ename
                from emp

  • How to divide the totalorderprice in 1st query with totalorders in 2nd query and save the result in new column

    SELECT o.OrderID,SUM((od.UnitPrice * od.Quantity) - (od.Discount/100))+ o.Freight AS TotalOrderPrice
     FROM [Order Details] as od join Orders as o on o.OrderID=od.OrderID
     GROUP BY o.OrderID, o.Freight
    select distinct o.employeeid, count(o.OrderID)as totalorders from Orders o group by o.EmployeeID

    As suggested above, you need a common key for JOINing the queries (CTE-s):
    WITH CTE1 AS
    (select distinct o.employeeid, count(o.OrderID)as totalorders from Orders o group by o.EmployeeID)
    CTE2 AS (SELECT o.OrderID, SUM((od.UnitPrice * od.Quantity) - (od.Discount/100))+ o.Freight AS TotalOrderPrice
    FROM [Order Details] as od join Orders as o on o.OrderID=od.OrderID
    GROUP BY o.OrderID, o.Freight)
    SELECT
    FROM CTE1 INNER JOIN CTE2 .....
    CTE example: http://www.sqlusa.com/bestpractices2005/cte/
    Kalman Toth Database & OLAP Architect
    Free T-SQL Scripts
    New Book / Kindle: Exam 70-461 Bootcamp: Querying Microsoft SQL Server 2012

  • Changing the formula to a key figure on a query

    Hello All,
    I do not have access to BEx. I would please like to know how to change the formula to a key figure "Total $" in a QD Promo Analysis query (technical name - N03_Q_D_N03_SD_502_0003). Will transaction RSRT take me to the query and eventually the formula so I can change it? If so please give me guidance as this is the first time I go into transaction RSRT. If there is another way please also give guidance.
    Thank you and kind regards
    Keith Kibuuka

    Hi Vishvesh,
    Thank you for your response. Maybe access to BEx was the wrong word - I do have access although I was trying to avoid configuring the SAP logon to add this particular client onto because I have not done this before. My boss has helped me and I have now have "access".
    Therefore from the query designer can you please guide me on how to change the formula to a key figure on a query? Input from all people is also be very much appreciated.
    Thank you and kind regards,
    Keith

  • Delete the data in several rows without deleting formulas?

    Hello, Is there a clever way to delete data on several rows at a time without also deleting the formulas or formatting in the columns?

    As far as I can tell, "data," "values," and "numbers" are all the same thing, and formulas act upon the data as necessary. I have several columns of data, then a column that figures a percentage, in currency, of the previous column. The totals for all the numbered data is added at the bottom. I found that if I delete the entire row, however, I also delete the formula. I wanted to find out how to do this quick and easy, without deleting the formula. I decided it's easier to delete just the data from the cells previous to the formula column, which leaves the formula intact. Then I must also delete the entries (data) in the rows following the formula.
    There are also occasions when I wish to move several rows down, but I found that by doing this, I also delete the formula, and it must be re-entered manually. I just wish there was a way to keep the formula intact, but apparently the only way to do that is to delete only the columns that do not contain a formula.
    Perhaps it's that I'm not familiar with spreadsheets. I've used Filemaker Pro for several years, and find it more user-friendly than Numbers.
    Thanks for your suggestion.

  • How to add a PERCENTAGE sign to the formula

    I was using %A in a fomula to calculate variance %age.
    Because %A is based on absolute value that eliminates the sign it wont work for us.
    I am planning to do direct calculation without %A to calculate pecent varaince but then I lose the % sign from the cell.
    I am sure you can help.
    I need to calculate %age and then also display % sign in the cell. For example the cell should show 20.00 % not just 20.00.
    If I get a prompt reply not only I will be thankful will also give full credit.

    Hi Ram,
    you can display the % sign in the query report
    In the formula select , instead of using percantage share , I think you can use either try with (%CT) or (%GT) and this will be available in percantage functions
    I have done for one my report and able to display % sign.
    kindly try with the above options if not able to achieve then let me know, I will provide the step by step doc.
    thanks

  • What formula to add up the values in one column only if a box is checked in the next column?

    Hi guys,
    I am creating a spreadsheet for my wedding guestlist.
    In one column I have a number to tell me the total number of adult guests the party (e.g fried and girlfriend = 2) and then the next two colums are check boxes, one for daytime and the next for nighttime.
    What I would like to do is in a footer row under the daytime time checkbox column is to total the first colum (the total number of wedding guests in each party).
    I hope that I am explaining this ok, sorry if it is vague.
    I understand to use COUNTIF to total the number of checked boxes in the column and have been working on COUNTIF + the sum of the previous column but it's not really working.
    Any help will be greatly appreciated.
    Thanks,
    Phil

    Phil,
    Here's an example of what you might do:
    The expression in the footer of column B is:
    =SUMIF(B, TRUE, $A)
    and, the expression in the footer of column C is:
    =SUMIF(C, TRUE, $A)
    Regards,
    Jerry

  • How to hide the all rows except the result row in a report?

    Hi Experts,
    We have a report in which the user is interested to see only the result rows and I need to HIDE the characteristics in the rows. I was successfull in doing the same for Key figures in columns using "Calculate single value as suppress result". But I am not finding a way out to hide the characteristics in the rows.
    If I move the characteristics in rows to Free characteristics, the result row is not getting dispalyed. Also, the characteristics are  used dynamically by the formulae in columns and hence i cant remove these characteristics from the query. . The user wants the query to contain only one characteristic in the row and the result row for the key figures in columns. The report currently displays Invoice level data for each customer and this needs to be eliminated and it should display the summarised  data for every customer. Please suggest how this can be accomplished
    Regards,
    Kavitha

    Moving the char to free char will show the equivalent of result.
    Your issue likely is that this breaks the calculations since you do want the calculations done at detail level.
    To achieve this, move your char to free char (say it is 0CUSTOMER).
    For the CKF/Formula, go to aggregation tab, set the exception aggregation as Total (or whatever it was in standard behavior) and specify reference characteristic (in this case 0CUSTOMER), also check the 'Before aggregation' if you have that checkbox there.
    This will ensure the calculation is done at detail level even though the char is not included in the rows.
    If you have multiple chars to be moved to free char but included in detailed calculation, you will need to build cascading CKFs (CKF1 with ref char1, CKF2 eq to CKF1 with exception aggr on ref char2...and so on).
    Added:
    I understand you do want 0CUSTOMER in there, but something else (let us say 0DOCNO) removed. Use 0DOCNO in place of 0CUSTOMER in the case described above.
    Edited by: Ajay Das on Aug 5, 2009 8:57 AM

  • De-Activating the 'Change Query' option from the Bex Menu

    Hi,
    I want to deactivate the button 'Change Query' in BEx Excel. I have the restricted the user for not to change the query through PFCG. When the user selects this option, a error message 'You do not auth. for change' is displaying but he can view the query and also the formulas which are written in the query.
    I want to avoid the user to see the formula and details in the query.
    Can anyone help in deactivating this option from the menu.
    Thanks
    Ramesh Ganji

    hi,
    check if helps
    Bex Analyzer Toolbar in Excel
    Disable or remove "Business Explorer" in the menu bar

  • Query to find the no of columns in a table

    Is there a query to find the total number of columns in a table?

    Dou you know read?
    -- the number of rows in a table named yourtable:
    select count(1) from yourtable;
    -- the number of columns in a table
    -- If is a user's table:
    select count(1)
    from user_tab_columns
    where table_name='YOURTABLE'
    --If it is´t
    select count(1)
    from DBA_tab_columns
    where owner = 'USEROWNER'
    and table_name='YOURTABLE'

  • How to execute query to store the result in the target table column ?

    Hi
    Source: Oracle
    Target: Oracle
    ODI: 11g
    I have an interface which loads the data from source table to target. Some of the columns in the target tables are automatically mapped with source table. Some of the column remain un-mapped. Those who remain un-mapped, I want to load the values in that column by executing an query. So can anybody tell me where I should mention that query whose result would become the value of the specific column.
    -Thanks,
    Shrinivas

    Actually I select the column from the target table then in the Property Inspector-->Mapping properties-->Implementation
    tab I have written the query which retrieve the value for that column. Is the right place to write the query? How can do this ?
    -Shrinivas

Maybe you are looking for

  • Can I download Acrobat 9 Pro online?

    I have to re-install my Acrobat 9 Pro software, but my computer's disk drive has decided to go on strike. I attempted to contact support but must have a support account in order to receive help on a product this old. Is there, perhaps, a place somewh

  • Adding 2 variables to one Infoobject

    Hello Experts,                     I want to add an additional variable (customer exit) to an infoobject for which already one variable (user entry/default value) is existing. When I try to add the customer exit variable system is not allowing to add

  • ALV grid disable right click options

    Hi experts, Iam working on <b>normal</b> ALV grid. In the output of the ALV, if we click right click, we can see 'Cut', 'Copy text', 'Insert with Overwirte' options. How can i disable(or remove) these 3 options? Pls give me suggestions Reward guarant

  • Elements and iPhoto

    iMac 10.8.3 I have installed Photo elements 11 in trial mode. When I select an image in iPhoto to edit in an external editor,  Elements opens with a flash screen. I select "continue Trial" and the editor opens but the image that I wish to edit does n

  • Why do I get a Premiere Pro CS4 symbol in the project folder when I save a CC-project?

    When I save a project edited with Premiere Pro CC in the project folder I get a symbol for Premiere Pro CS4  instead ot getting the CC-symbol. I can't open the CC-project by clicking the CS4-symbol. Why?