Incorrect results with To-Date Measures

Hi , I have a report like year Quantity , Quantity -YTD .
Though dates are from 1980 to 2030 , i have filtered the dates succh that i have imported the dates greater than or equal to 2008 .
So now year should start from 2008 to 2030 .
If the report has year and quantity the dates are from 2008 , but when i add Quantity-YTD column in the report the dates are from 1980 .
There are no values for Quantity from 1980 to 2008 but Quantity -YTD has values .
I dont understand the behavior , can some one please help me out in finding the solution , i need it asap please .
Thank you

Hi Raj,
As per your description, Quantity has no value at all from 1980-2008. However, Quantity-YTD is getting values here in the report. May I request you to further check if
1. There are any other sources in the fact that can get the Quantity-YTD values. Some like aggregate tables etc might have data for previous quantity.
2. To_date accumulates the value from the beginning of time to the current displayed time. So, say if your current report is for year 2010- Quantity YTD will get values just because 2009,2010 year's quantities are also computed too in to_date.
3. To check if the Quantity-to_date is working as intended or not, create the report for the year <=2008 and see if this still gets values.
Hope this helps.
Thank you,
Dhar

Similar Messages

  • Currency conversion issue in SPM. We are getting incorrect results with SPM conversion function from one of the document currency to USD.

    Currently we are using SPM 2.0 version and we have been facing currency conversion issues.
    Please help me in following aspects.
    1) Where actually currency conversion happens in SPM. Is it the global program which does the conversion or other way.
    2) We have conversion issue for one of the currency where conversion function is giving incorrect results when converting from one of the document currency to USD. here The respective document currency is considering the 1:1 ratio with Dollar which is actually incorrect.
    3) We have verified in both BI side(currency tables) and even ECC side.
    Please help me in understanding this issue and let me know if you need more information on this.
    Its an production issue and appreciated your immediate inputs.
    Thanks
    Kiran

    Hi Arun,
    The following information may be helpful to you.The SSA_HELPER_PROGRAM has options regarding currency settings.
    EXCH_RATE_TYPE: This flag governs the exchange rate type which will be used for currency conversion in data management. For example if RSXAADMIN contains an entry EXCH_RATE_TYPE = „ZSPM‟ then the conversion type used for currency conversion is ZSPM. The default value for the exchange rate type is „M‟. More details can be found in the note 1278988.
    CURRENCYCONVERSION: By default data management converts all the measures in transaction currency to reporting currency and copies over to the corresponding measure in reporting currency. If the measure in reporting currency is already available in source it might be desirable to disable the currency conversion. To disable the conversion you can make an entry CURRENCYCONVERSION = „ „ in the table RSXAADMIN. This can also be achieved by running the program SSA_HELPER_PROGRAM with the option DEACTIVATE_CURRENCYCONVERSION. The conversion can be reactivated by running the same program with option ACTIVATE_CURRENCYCONVERSION.
    UNITCONVERSION: Similar to above. To deactivate unit conversion you can use the program with option and DEACTIVATE_UNITCONVERSION and to reactivate ACTIVATE_UNITCONVERSION. By default both the conversions are switched on
    EXTERNAL_CURRENCIES: Normally most of the international currencies are stored with two decimal places however certain currencies do have 0 and 1 decimal place too. For example JPY has 0 decimal places. SAP internal format stores even these currencies with 2 decimal places and at the time of display it changes the value to right decimal places. In case a file from external source is loaded to SPM it might have the format with 0 decimal places in the file. To convert it to SAP standard format post processing needs to be done on this value. If that is the case you can set the flat EXTERNAL_CURRENCIES = „X‟ in the table which will enable the post processing for these values. This flag can also be set and reset using the helper program using the option TURNON_EXT_CURRENCY_FORMAT and TURNOFF_EXT_CURRENCY_FORMAT.
    Kind Regards,
    John Harris
    Senior Support Engineer, SAP Active Global Support

  • Incorrect results with design-time artifacts

    Hi,
    Problem description:
    After creating design-time artifacts, Analytic view with Anlaytic privilege having assign restriction as repository procedure is not returning desired results.
    HANA AWS revision 70.
    Problem Recreation:
    Below I am giving the process for problem recreation.
    1. EDW.hdbschema:
    schema_name="EDW";
    2. EDW_DD.hdbdd:
    namespace excent.P1;
    @Schema : 'EDW'
    context EDW_DD {
    type TT_LV {
    LowValue : String(18);
    entity USER {
    @Catalog.tableType: #COLUMN
    key User              : String(10);
    key InfoObject        : String(10);
    key Option            : String(2);
    key LowValue          : String(18);
    HighValue             : String(18);
    ChangedOn             : LocalDate;
    ChangedBy             : String(8);
    3. Created Analytic view (AN_EDW_SALES.analyticview) based on VBAP table with output as VBELN, MATNR, NETWR. Apply privileges is left empty.
    4. Created repository procedure (LowValue_IN.procedure)
    CREATE PROCEDURE LowValue_IN (OUT RES "EDW"."excent.P1::EDW_DD.TT_LV" )
           LANGUAGE SQLSCRIPT
           SQL SECURITY DEFINER
           DEFAULT SCHEMA _SYS_BIC
           READS SQL DATA AS
    v_cnt INT;
    BEGIN
    RES = SELECT "LowValue" FROM  "EDW"."excent.P1::EDW_DD.USER"
                 WHERE "User"            = SESSION_USER
                   AND "InfoObject"       = 'MATNR'
                   AND "Option"           = 'EQ'
                 GROUP BY "LowValue",  "User"
    SELECT COUNT(*) INTO v_cnt FROM :RES;
    IF :v_cnt = 0
    THEN RES = SELECT 'EMPTY' AS "LowValue" FROM DUMMY;
    END IF ;
    END;
    5. Created Analytic privilege(AP_EDW_SALES.analytic privilege) with assign restriction on Repository procedure (LowValue_IN.procedure) with operator "IN" and Privilege Validity with operator as ">=", From date as yesterday (2014-03-24)
    6. Created Role (EDW_SALES.hdbrole) and assigned the below privileges:
    system privilege: CATALOG READ;
    catalog sql object "SYS"."REPOSITORY_REST": EXECUTE;
    catalog schema "_SYS_BI": SELECT;
    catalog schema "_SYS_BIC": SELECT;
    analytic privilege: excent.P1:AP_EDW_SALES.analyticprivilege;
    package excent.P1: REPO.READ;
    7. Created user from Systems view (EDWUSER) and assigned the role (EDW_SALES.hdbrole).
    8. In SQLConsole, executed the query to insert 1 record, which has in VBAP:
    insert into "EDW"."excent.P1::EDW_DD.USER" values('EDWSALES','MATNR','EQ','M-08','','','');
    Now when I do the data preview, I can see all the records instead of only 1 record with MATNR "M-08".
    Few Observations:
    1. When SELECT statement of procedure when executed in SQLconsole for EDWUSER(with extra privilege SELECT on EDW schema) it returns only 1 row but not the Analytic view.
    2. Also the repository procedure can be used as catalog procedure in Analytic privilege. This also behaving the same.
    3. When I change the "Apply Privileges" option to "Analytic Privileges" in Analytic view, I am getting below error when doing data preview.
    I could not understand where I am doing wrong. Is it a product bug or mistake from my end?
    Regards
    Raj

    Ohh! Yes.. Got it now.
    Well I tried to recreate your scenario: ( Tested on Rev 70)
    1) Am sure you might have used the correct insert statement:
    insert into "EDW"."MarchBatch.tst::EDW_DD.USER" values('EDWUSER','MATNR','EQ','1400-310','','','');
    The user name must be EDWUSER not EDWSALES.
    2) Have created Analytic Privilege with Validity date and others as mentioned by you. Only difference is am using a Repository procedure created under Content folder using Modeller Perspective (PROC_TEST) as shown in the below screenshot.
    3) The data preview for EDWUSER as shown below is showing expected results i.e MTNR = 1400-310 is only showing up.
    4) When I used the .procedure (LowValue_IN) , I also hit the same error same as you mentioned below:
    With only difference being the way the procedure is created, the issue must be in the way .procedure is used. May be a bug I guess
    Regards,
    Krishna Tangudu

  • Measurement slightly incorrect with raw data measurements

    Hello everyone,
    I am reading raw data continuously at a sample rate of 10 kHz at 16 analog channels between 0Volt and 5Volt. The voltage is supplied by the 5 Volt output of the DAQ device. Because I am reading raw data, I have to calculate the real value in Volts. When I do this I only get to 4,9 Volt. Is this normal when running in raw data mode, because the scaling cannot be changed? Could anyone please help me with this problem?
    Thanks in advance,
    Souza
    By the way, I am using the following hard- and software:
    NI6220(PCI M-series)
    Visual Studio 2003 C#

    Souza,
    I am curious as to what formula you are using to scale your raw values into voltages.  One thing to keep in mind is that your M-Series device is software calibrated.  Therefore using a formula such as (AI Range/2^ADC resolution)*raw value read may not give a correct result, as there is some additonal scaling that needs to be done by software.  However, you should be able to query the driver to determine what scaling coefficients to use by calling DAQmxGetAIDevScalingCoeff on your task.  From the DAQmx C reference help:
    Analog Input >> General Properties >> Advanced >> Device Scaling Coefficients >> Device Scaling Coefficients
    Data Type:
    float64*
    Description:
    Indicates the coefficients of a polynomial equation that NI-DAQmx uses to scale values from the native format of the device to volts. Each element of the array corresponds to a term of the equation. For example, if index two of the array is 4, the third term of the equation is 4x^2. Scaling coefficients do not account for any custom scales or sensors contained by the channel.
    Restrictions:
    Not Settable
    You can get this property using: 
      DAQmxGetAIDevScalingCoeff
    Hope this helps,
    Dan

  • SQL query result with HTML Data in output

    Hello,
    I have a SQL table , in one column I store HTML data. I need to query the table and get the HTML data in the columns that have 'HREF'. The output shows as grid on the sql management studio, however when I export it to excel, the HTML data does not get copied
    correctly, since there are HTML tags etc.
    How can I export the report correctly from SQL ?

    Hello,
    The HTML data is stored in a column with datatype as nvarchar(max). Sample data in the column is shown below. It is with formatting etc and is rendered as is on the web page. the business wants to generate a quick report so that they can see the pages that
    have links displayed. I can do that by querying the columns that have a 'HREF' in the text.
    Can I get the exact HREF values using just sql query? There can be more than one links on a page.
    Also, If I just want to copy the whole column and paste it on excel, how can I do that? If I copy the data below and paste, it does not get copied in one cell.. it spreads across multiple cells, so the report does not make any sense.
    <br />
    <table border="0" cellpadding="0" cellspacing="0" style="width: 431pt; border-collapse: collapse;" width="574">
    <tbody>
    <tr height="19" style="height: 14.25pt; ">
    <td height="19" style="border: 0px blue; width: 431pt; height: 14.25pt; background-color: transparent;" width="574"><a href="https:"><u><font color="#0066cc" face="Calibri">ax </font></u></a></td>
    </tr>
    </tbody>
    <colgroup>
    <col style="width: 431pt; " width="574" />
    </colgroup>
    </table>

  • Essbase Date Measures as DATE in OBIEE

    Hi,
    We have created an ASO Cube in Essbase 11.1.1 with a Date Measure member call "Maturity Date" in Measure dimension (Tagged as Accounts).
    Once we create the Physical layer Administrator tool on OBIEE this member refers as a double data type. And also when we create a criteria on Answers and displays the result it is shown as a number.
    But on excel (with essbase add-on) data shows as a date. (Ex: 2009-09-20)
    Can anyone tell what has to be changed to display a Date Measures as Date type on OBIEE or suggest another alternate.
    Thanks!
    Nilaksha.

    Hi Nilaksha,
    I thought you might say that, I think this is because Essbase doesn't use data types as such, all data is stored as a value and characteristics of that data or how it is treated are more like meta data. This certainly rings true for the time dimensions I have seen. I think your best bet is to look at how you can format the numbers in the columns to make them appear in the format you require.
    Regards
    Ed

  • Hot News: Possible incorrect results in SAP BW system

    Everyone ,
    We recently identified an issue in SAP ASE which potentially causes incorrect results in a SAP BW system running on SAP ASE.
    The issue affects any application running on SAP ASE using optimisation goal 'allrows_dss' or a user created optimisation goal that enables 'advanced_aggregation' . 
    SAP BW specifies optimisation goal 'allrows_dss' for ceratin DSS queries and is affected by the issue.
    SAP ERP system running on ASE are typically not affected as in SAP ERP systems typically optimisation goal 'allrwos_mix' has been configured. 
    Details and corrections are available in SAP note
    2026328 - SYB: Incorrect results with SUM aggregation on decimal fields
    We strongly suggest to implement the corrections in SAP BW as soon as possible.
    With kind regards
    Tilman Model-Bosch

    Hi,
    Yes, I am using the MDX driver. 
    Is there any pre-requisites of importing certain ABAP transports into SAP Server since I haven't done any? Please  recommend.
    Thanks,
    Amogh

  • Incorrect result set with using isnull() function  in IQ 16

    Hi team,
    We have IQ 16 on HP UX.
    When we use isnull() function in where clause we get incorrect result set if we do not use column name in the result set.
    In first select we get result with one row but in second one we get an empty result set.
    select ID, dat_start, dat_end, dat_stop
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    select ID
    from table_test
    where ID=1105935925
    and isnull(dat_stop,dat_start) <> dat_end
    It depends on number of row or volume of data in table, It is possible to use option Revert_To_V15_Optimizer to get the correct result.
    Do you have any different idea how to solve it?
    Thanks Milos.

    We have tested two versions:
    Sybase IQ/16.0.0.653/131122/P/sp03/ITANIUM/HP-UXi 11.31/64bit/2013-11-22 01:49:18
    SAP IQ/16.0.0.807/140507/P/sp08/ITANIUM/HP-UXi 11.31/64bit/2014-05-07 21:11:45
    Both versions have given same mistake.
    We have not opened any support case for this issue because it is data depended issue. It is not easy to simulate it as an example.
    Do you think we should open a support case for it?
    Miloš

  • Formula Created in BI Query appears in Universe as Measure with No Data

    Hi,
    I have created the universe on top of SAP BI Query(Which is built on Infoset).
    There are some formulas created in BI Query as mentioned below:
    Eg: Status1=
                        If Completion Code = null then Status1 = 0 
                        If Completion Code = =10,11,18 then Status1 = 1
          Status2=
                         If Status1= 1 and Field Completion Date <= Regulatory Due Date then Status 2 = 3
                         If Status1= 0 and Report Date <= Regulatory Due Date then Status 2 = 4
    In the Universe I get Status1 and Status2 as Measures.
    When I use these Measure Objects in WebI report, I donu2019t see any Data for these objects in WebI Report. Both the columns for Status1 and Status2 appear Blank with no data in it, although I get the data in SAP BI Query for both Status1 and status2.
    Is there any issue with the formulas to be used in SAP BI Query?
    Are Formulas supported in Business Objects from SAP BI Query?
    regards,
    Nisha

    Hi Ingo,
    I tried running the standard test MDX in MDXTEST and I got the data for those calculations.
    But I wonder why there is no data in WebI for those formulas(Key Figures)?
    In Standard test MDX the MDX Query is as Follows:
    SELECT
    [Measures].MEMBERS ON COLUMNS,
    NON EMPTY [Z_WM_IS01___F98].[LEVEL01].MEMBERS ON ROWS
    FROM ZWM_M02/Z_ZWM_M02_Q001 SAP VARIABLES
    [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Based on above Query I created the WebI report which includes the objects as described below:
    one Dimension Object Notification Number which is equivalent to [Z_WM_IS01___F98].[LEVEL01].MEMBERS  from above query.
    Selected All the measures objects available in query which refers to [Measures].MEMBERS
    And  one Prompt on Region which is equivalent to [!V000001] INCLUDING [Z_WM_IS01___F15].[3]
    Why there is no data for Calculation columns (Key Figures Status1 and Status2) in WebI Report???

  • Crystal 2013 is casting a function with a date result as a string result, sometimes??

    I have an SQL Server function to take a JDEdwards numeric date and convert it to an SQL Date field. 
    CREATE FUNCTION [dbo].[date_ccyyddd_to_mmddyyyy]
      @JulianDate as Numeric(18,0)
    RETURNS Date
    AS
    BEGIN
    Declare @ResultDate as Date
    Set @ResultDate = DATEADD(YEAR, @JulianDate / 1000 + 1899, Cast('01/01/0001' as Date))
    Set @ResultDate = DATEADD(Day, @JulianDate % 1000 -1, @ResultDate)
    RETURN @ResultDate
    END
    In many query based reports we have used the function.  It works quite nicely for all but one user.  For this one user Crystal is casting the date result as a string, it will then display as a yyyy-mm-dd format instead of his default mm/dd/yyyy short date format.  It would generally be ok but since it is typed as a string if the user exports the results to excel it is not recognizing the column as a date either.  The strange piece of the equation is that if the user saves the report to the enterprise server and I open it, go to edit the SQL command, do nothing, close the edit box, it gives me the unmapped fields wizard where I can fix the report.  Thus when I open or generate a new report with this function it "knows" the result is a date but with a specific user it sees the result as a string.
    Has anyone had a similar situation or can lead me in the correct direction to fix this?  Unfortunately, this user is our power user, he writes more reports than anyone else.  It appeared as a problem when we upgraded from Crystal Enterprise 2008 to 2013.
    Current work around for user is to use a crystal CDate() function on the report side but I would like to get the correct solution.
    Any assistance appreciated,

    To add to Dell's suggestion:
    If OLE DB then use:
    MS SQL 2005 - OLE DB Provider
    MS SQL 2008 - SQL Native 10
    MS SQL 2012 - SQL Native 11
    MS SQL 2013 - SQL Native 11
    If ODBC then use:
    MS SQL 2005 - SQL Native
    MS SQL 2008 - SQL Native 10
    MS SQL 2012 - SQL Native 11
    MS SQL 2013 - SQL Native 11
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • Query with Cost Center Hierarchy giving incorrect results

    Hi All,
    I have a universe built based on BEx query on Cost Center cubes. When enabling hierarchy in BEx Query and building Web intelligence Report based on the universe, I get incorrect results.  The levels of the hierarchy is incorrect, many of the cost centers are missing etc. I checked the universe and confirmed that all levels of hierarchy are generated correctly. The Lov generated for these levels are correct and I see the complete hierarchy when using the BEx Variable in Universe for filtering.
    I tried the same query with Hierarchy disabled with a different universe and it is providing correct results. Not sure what I'm missing here. Any inputs regarding this is appreciated.
    Thanks & Regards,
    Sree

    Ingo, Thanks for your suggestion. Of course, I did update the Universe after any changes in the query. Tried different query setting related to hierarchy  to make it work, but didn't many any difference and I get consistently incorrect results.
    One thing what I wanted to confirm is, if there is any known bug in SP 2 Fix Pack 2.7 related to hierarchies. If not, it might be me doing some thing wrong  and I will look into in more detail.
    Thanks & Regards,
    Sree

  • Execute query  run fine with numeric data not give result on string data

    Hi master
    Sir I use under blow code for execute query
    sir when I use numeric data then run fine but when I use character data then not give any result
    with numeric run fine
    DECLARE
         DD VARCHAR2(15);
    BEGIN
         DD:=10;
    set_block_property('emp', default_where, 'where DEPTNO='||DD);
    go_block('emp');
    execute_query;
    set_block_property('emp', default_where, '');
    END;
    With character not give any result
    DECLARE
         DD VARCHAR2(15);
    BEGIN
         DD:='SALESMAN';
    set_block_property('emp', default_where, 'where RTRIM(EMPNO)='||DD);
    go_block('emp');
    execute_query;
    set_block_property('emp', default_where, '');
    END;
    Please give me any idea

    bro it is not working on string format coz of the missing quotes. e.g. 'smith' or smith. so the quoted string will be compared. in set_block_property u have to include extra quotes on the variable. e.g.
    set_block_property('emp',default_where,'where ename='''||:emp.ename||'');
    or with conditional statement
    set_block_property('emp',default_where,'where ename='''||:emp.ename||''' and dname='''||dept.deptno||'');
    there i included two extra qoutes before joining ename and in the an extra quote to complete to string. if u would like to debug at runtime to show if the qouted string condition is proper then assign the where clause to a variable and message it up.
    like
    myvariable:='where ename='''||:emp.ename||'';
    message(myvariable);
    message(myvariable);
    set_block_property('emp',default_where,myvariable);
    after the string is quoted properly the execute query will work fine, also use the function upper or lower to compare strings.
    zaibi.

  • Incorrect result between maintain master data and bex query, how can i fix?

    Hi ALL,
    i get some messages from the users there is incorrect result between SAP R/3 and Report on BW. i controlled the monitor and i saw there was a job for 0CUSTOMER_ATTRIBUTE that it finish correctly but the processing it was only in PSA, i started the full update immediately from PSA into Data Targets and is finished correctly. after when i control the content of the 0CUSTOMER (right click maintain master data) i get the correct attribute result that match the data in SAP R/3, but the problem is when i execute a query Bex on this master data it will not return the same attributes data.
    Can SomeBody Help please
    Bilal

    hi,
    For any master data attributes loaded you will have to run "Attributes Change Run" for that.Execute for Master data 0CUSTOMER.
    The same is avilable in rsa1->Tools(top menu)->apply hierarchy/attribute run.
    hope it helps,
    regards,
    Parth.

  • Best Practise comparing measure with historic data?

    Hello everyone,
    we are currently trying to compare a measure for a certain week with the same measure of the weeks before. To make a condition such as: "If number of alerts in the 3 previous weeks > 100 then 1 else 0 [for this specific week]".
    However we are struggling because it seems that Measures and Dimensions are strictly separated from each other. "number of alerts" would be a measure, "week" would be a dimension. When creating a measure only other measures are available in the formula creator, when creating a dimension only other dimensions are available. In our understanding we would have a formula with both measures and dimensions in it.
    Any suggestions?
    Thanks in advance!
    Marvin

    thank you for your fast reply. That's a good thought, however I currently don't see a possibility for aggregations in the formula of a dimension. Hence the logic "if number of alerts in the previous 3 weeks  > 100 then 1 else 0" still struggles me.
    The values in my table are on the alert-level but for my measure I have to aggregate them at the level of the object, where the alert occurred (a dimension).

  • Incorrect results for calculation based on diff dimensions - 11.1.1.5

    Hello All,
    OBIEE gives incorrect results when i try to perform a calculation (for eg: addition) based on 2 measures. For eg:
    (Note: "->" signifies 1:M)
    Rpd (Physical model & BMM): dim_fe -> dim_gl-> Fact_Legder <- Dim_param
    Fact_Ledger (agg measures) -> YTD_01, YTD_02...... YTD_12 ( here 01,02...12 represent month i.e. if "Feb" selected in prompt then we need to use YTD_02 and so on for other months)
    Answers: Created a report with following columns
    Column Name : Formula
    =================
    Line Item : 'Net Profit'
    Prev Yr Act: (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013}-1 and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=100)/1000) /
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013}-1 and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=100)/1000)
    Curr Yr Act: (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=100)/1000) /
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=100)/1000)
    Curr Yr Plan: case when '@{pmonth}{Jan}='Jan' then
    (filter("Fact Ledger"."YTD_01" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=200)/1000)/
    (filter("Fact Ledger"."YTD_01" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=200)/1000)
    when '@{pmonth}{Jan}='Feb' then
    (filter("Fact Ledger"."YTD_02" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=200)/1000)/
    (filter("Fact Ledger"."YTD_02" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=200)/1000)
    when '@{pmonth}{Jan}='Dec' then
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_Param"."PL_Line" in ( 'Item 1','Item 2','Item 3') and "Fact_Ledger"."Code"=200)/1000)/
    (filter("Fact Ledger"."YTD_12" using "Fact_Ledger"."YEAR"=@{pYear}{2013} and "Dim_FE"."Item" in ( 'L1','L2','L3') and "Fact_Ledger"."Code"=200)/1000)
    endthe results are incorrect. Any help appreciated.
    Qry generated is like
    (select...
    case when year=.. and pl_lin=... and code=100 then ytd_01,
    case when year=.. and pl_lin=... and code=100 then ytd_03,
    case when year=.. and pl_lin=... and code=100 then ytd_04,....,
    case when year=.. and pl_lin=... and code=200 then ytd_01,
    case when year=.. and pl_lin=... and code=200 then ytd_03,
    case when year=.. and pl_lin=... and code=200 then ytd_04,....,
    from...
    where ... year in (2013-1,2013) and pl_line('Item1,'Item2','Item3') or fe.item('l1','l2','l3') and code in (100,200)... ) D1
    (select
    case when 'Apr'='Jan' thne d1.c1 when 'Apr'='Feb' then d1.c2......
    from D1
    Regards..
    Shruti

    See if this explains it better for my crosstab with page items of Vendor Number 1234.
    Vendor 1234
    Dc Nbr 1 2 4 AAAA
    Sum Invoice Amt 1387.04 300.82 327.29 2015.15
    Sum Cost 44.86 57.43 25.54 127.83
    Sum Advanced Cost 102.44 0 0 102.44
    Sum Consolidation Cost 30.37 0 0 30.37
    Sum Allowance Amt 27.74 6.02 6.54 40.30
    Net Freight Cost 149.93 51.41 19 220.34
    Freight Percent 10.81 17.09 5.81 ****
    As stated before, Frieght Percent is a calculation I created in Discoverer that looks like this :
    ( NVL(Sum Cost,0)+NVL(Sum Advanced Cost,0)+NVL(Sum Consolidation Cost,0)-NVL(Sum Allowance Amt,0) )/NVL(Sum Invoice Amt,0)*100
    Column AAAA was created in Discoverer using Sum of field and show to the right.
    What I need is for the **** to be the correct calculation for the totals in column AAAA. If I use do a total for Freight Percent using the Cell Sum I get 33.70., what I want is it to be 10.93, which is (127.83 + 102.44 + 30.37 - 40.30)/2015.15*100.
    If I use an Average Total row for Freight Percent, I get 11.24 which is 33.70 / 3 (the 3 would be the # of dc nbr's)
    I did start with using the detail level data to create this crosstab. Then I made a new version and used the SUM data. I seem to get the same results but am still having issues with the one **** value.
    Hopefully this explains it better.
    Thanks for the ideas so far.

Maybe you are looking for

  • Important issue. In Illustrator CC 2014 extensions don't cover all the panel at start

    I created a extension in illustrator CC 2014 (last version in spanish) that works fine until two weeks ago. It shows a image that covers all the panel. Now, at start it doesn't covers all the panel (only a part) and I must resize the panel for cover

  • Apple Remote Desktop Requiring Serial Number Each Time....

    Apple Remote Desktop Admin has suddenly started asking for the serial number every time it is launched. I tried uninstalling and reinstalling - same thing. Last time this happened it required a full reimage of my Mac to get it to work again. This is

  • (OSStatus error -2009.)" Can anyone help with this?

    I am trying to export an iMovie and I keep getting the error "The project could not be prepared for publishing because an error occurred. (OSStatus error -2009.)"  Can anyone help with this?

  • What is Disassembly production order?

    Hi Expert I want to know that what is use of disassembly production order. I want to create a production order which will give two item output but issue will be one item. how it is possible ? When I issue main component then it automattically increas

  • Find my friends contact information

    In Find My Friends I was presented with a button to add contact information. Unfortunately I selected the wrong contact. Now the name shown is incorrect but I see no way to edit or change it.