Cumulative keyfigure value based on condition

Hi All,
I have a requirement where in I need to display cumulative results on keyfigures. At present I am displaying  keyfigures values for fiscal year & fiscal period included in query at column level.
But, If user add  comapny code (from filter) & removes fiscal period at run time (in BEx screen), the data is displayed cumulative across company codes.
The requirement is: data should get displayed cumulative based on company code codes. 
Kindly suggest your inputs.
-Thanks
Shamkant

Hi Shamkanth,
In general we will use time char for calculation of time fields but when we are using for calculation purpose ,we have to consider key figures for developing time fields.
The reason why we have to use is: at the time of dril down with respect ton other fields across the report,it will show exact result but we if we use time char it will show wrong counter.
Hope this helps you..
Best Regards,
maruthi

Similar Messages

  • Selection Screen search help values based on condition

    Hi All,
    I am developing this report for HR.And the requirement is in one of the selection screen field the
    value's should be appeared(when f4) based on some condition,ie not all values should come.
    My field is HRP1001-sobid,here there are many values,they dunt want all that to be shown when user
    tries to input the values(F4).And also i need to show the Text for this field(department name) in
    search help.
    Can anyone please guide...
    Thanks in advance.

    Hi Salz
    You can code your own search help procedure for this. To achieve this, first you should add the block:
    <u>e.g.</u>
    AT SELECTION-SCREEN ON VALUE REQUEST FOR p_sobid.
    Within this block you can use the standard FM "<b>RH_OBJID_REQUEST</b>" to call the standard HR help list for objects conditionally.
    Regards
    *--Serdar <a href="https://www.sdn.sap.com:443http://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.sdn.businesscard.sdnbusinesscard?u=qbk%2bsag%2bjiw%3d">[ BC ]</a>

  • Formula to Copy all the values based on condition

    Hi All,
          I have Text Column called "PASS" in Pivot table holding values like and NA and 0.0133333333333333 .
          So I want to create the calculate column "CALS "and copy all the values which are not holding NA into this column and set value 0 if found NA.Can any one help me how can I solve this.
    Thanks,
    Sid

    Hello Sid,
    For this you can use a calculate column a simple condition with the IF function like
    =IF(MyTable[MixedValueColumn] = "NA", 0, CURRENCY(MyTable[MixedValueColumn]))
    Olaf Helper
    [ Blog] [ Xing] [ MVP]

  • Generate column value based on conditions

    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.3.0 - 64bit Production
    PL/SQL Release 11.2.0.3.0 - Production
    CORE     11.2.0.3.0     Production
    TNS for HPUX: Version 11.2.0.3.0 - Production
    NLSRTL Version 11.2.0.3.0 - Productionselect statement to generate input
    WITH t
         AS (    SELECT 1 job_request_id,
                        1 original_job_request_id,
                        mod(level,3) +1  sequence_cd,
                        CHR (LEVEL + 100) value_txt,
                        NULL new_sequence_cd
                   FROM DUAL
             CONNECT BY LEVEL < 6),
         t1
         AS (    SELECT 2 job_request_id,
                        1 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 110) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 10),
         t2
         AS (    SELECT 3 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,3) + 7 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 9),
         t3
         AS (    SELECT 4 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 7),
         t4
         AS (    SELECT 7 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 92) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 4),
         mytable
         AS (SELECT * FROM t
             UNION ALL
             SELECT * FROM t1
             UNION ALL
             SELECT * FROM t2
             UNION ALL
             SELECT * FROM t3
             UNION ALL
             SELECT * FROM t4)
    SELECT *
      FROM mytable
      order by job_request_id, original_job_request_id, sequence_cd;input
    JOB_REQUEST_ID     ORIGINAL_JOB_REQUEST_ID     SEQUENCE_CD     VALUE_TXT     NEW_SEQUENCE_CD
    1     1     1     g     
    1     1     2     h     
    1     1     2     e     
    1     1     3     i     
    1     1     3     f     
    2     1     1     v     
    2     1     1     p     
    2     1     1     r     
    2     1     1     t     
    2     1     2     u     
    2     1     2     q     
    2     1     2     o     
    2     1     2     s     
    2     1     2     w     
    3     3     7     b     
    3     3     7     e     
    3     3     8     `     
    3     3     8     f     
    3     3     8     c     
    3     3     9     d     
    3     3     9     a     
    3     3     9     g     
    4     3     1     e     
    4     3     1     c     
    4     3     1     a     
    4     3     2     b     
    4     3     2     `     
    4     3     2     d     
    7     3     1     ^     
    7     3     2     ]     
    7     3     2     _     expected output
    JOB_REQUEST_ID     ORIGINAL_JOB_REQUEST_ID     SEQUENCE_CD     VALUE_TXT     NEW_SEQUENCE_CD
    1     1     1     g     1
    1     1     2     h     2
    1     1     2     e     2
    1     1     3     i     3
    1     1     3     f     3
    2     1     1     v     4
    2     1     1     p     4
    2     1     1     r     4
    2     1     1     t     4
    2     1     2     u     5
    2     1     2     q     5
    2     1     2     o     5
    2     1     2     s     5
    2     1     2     w     5
    3     3     7     b     7
    3     3     7     e     7
    3     3     8     `     8
    3     3     8     f     8
    3     3     8     c     8
    3     3     9     d     9
    3     3     9     a     9
    3     3     9     g     9
    4     3     1     e     10
    4     3     1     c     10
    4     3     1     a     10
    4     3     2     b     11
    4     3     2     `     11
    4     3     2     d     11
    7     3     1     ^     12
    7     3     2     ]     13
    7     3     2     _     13my attempt to explain.
    if the job request id = the original job request id the new sequence cd = sequence cd
    when the job request ids are higher than the original increment the new sequence cd with respect to the maximim sequence cd of the original job request id.
    hopefully the expected output will clarify.

    this?
    WITH t
         AS (    SELECT 1 job_request_id,
                        1 original_job_request_id,
                        mod(level,3) +1  sequence_cd,
                        CHR (LEVEL + 100) value_txt,
                        NULL new_sequence_cd
                   FROM DUAL
             CONNECT BY LEVEL < 6),
         t1
         AS (    SELECT 2 job_request_id,
                        1 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 110) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 10),
         t2
         AS (    SELECT 3 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,3) + 7 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 9),
         t3
         AS (    SELECT 4 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 95) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 7),
         t4
         AS (    SELECT 7 job_request_id,
                        3 original_job_request_id,
                        mod(LEVEL,2) + 1 sequence_cd,
                        CHR (LEVEL + 92) value_txt,
                        NULL
                   FROM DUAL
             CONNECT BY LEVEL < 4),
         mytable
         AS (SELECT * FROM t
             UNION ALL
             SELECT * FROM t1
             UNION ALL
             SELECT * FROM t2
             UNION ALL
             SELECT * FROM t3
             UNION ALL
             SELECT * FROM t4)
    SELECT job_request_id,
           original_job_request_id,
           sequence_cd,
           value_txt,
           nvl(new_sequence_cd,LAG(new_sequence_cd IGNORE NULLS) OVER (ORDER BY job_request_id, original_job_request_id, sequence_cd)+sequence_cd) new_sequence_cd
    FROM(
    SELECT job_request_id,
           original_job_request_id,
           sequence_cd,
           value_txt,
           DECODE(job_request_id,
                  original_job_request_id,
                  sequence_cd,NULL)        new_sequence_cd
      FROM mytable
      order by job_request_id, original_job_request_id, sequence_cd
    JOB_REQUEST_ID     ORIGINAL_JOB_REQUEST_ID     SEQUENCE_CD     VALUE_TXT     NEW_SEQUENCE_CD
    1     1     1     g     1
    1     1     2     h     2
    1     1     2     e     2
    1     1     3     i     3
    1     1     3     f     3
    2     1     1     v     4
    2     1     1     p     4
    2     1     1     r     4
    2     1     1     t     4
    2     1     2     u     5
    2     1     2     q     5
    2     1     2     o     5
    2     1     2     s     5
    2     1     2     w     5
    3     3     7     b     7
    3     3     7     e     7
    3     3     8     `     8
    3     3     8     f     8
    3     3     8     c     8
    3     3     9     d     9
    3     3     9     a     9
    3     3     9     g     9
    4     3     1     e     10
    4     3     1     c     10
    4     3     1     a     10
    4     3     2     b     11
    4     3     2     `     11
    4     3     2     d     11
    7     3     1     ^     10
    7     3     2     ]     11
    7     3     2     _     11----
    Ramin Hashimzadeh

  • How to give color to the display of keyfigure based on condition using exception.

    Dear Friends.
       I am trying to color "BAD3" in exception based on condition but my problem is in exception I can have only formula variable to compare the value, How to assign a value to formula variable in BEx Query designer.
    What I am trying to do is :
       in Query designer :
       I have PO Quantity and Delivered Quantity. 
      if PO Qnantity > Delivered Quantity
        then Delivered Quantity field should be colored as "BAD3" in exception.
    but here proble is in exception
      I have alert level , operator, and  value fields for Delivered Quantity keyfigure ( Under definition tab - Exception is defined on = Delivered Quantity ).
    but for value field I dont have PO Quantity for that I have to supply one formula variable,
    When I created a forumula  and did this way
    FV_PO_QUANTITY = PO_QUANTITY formula editor throws errors. I dont understand How to assign a value of key figure to formula variable and use it in EXceptions.
    Please help me How I can solve my problem
    I will greatly appreciate your any help.
    Thanking you
    Regards
    Naim

    Thank you so much for your replies,
      I did following way and it helped me to solve my issues.
      I created one formula and under formula I use boolean < funtion to compare the values.
    like following way.
    ( 'PO Quantity' > 'Delivered Quantity' ) * ( FV_PO_QNT + PO_QUANTITY')
    here fv_po_qnt is formula variable I supply that variable to exception and since I have the value in it.. it compares with Delievered Quantity value and colored the perticular cell.
    Thanks again for your replies
    Regards
    Naim

  • BPS - How to filter a BPS layout based on keyfigure value.

    Hi Gurus,
    I am in a requirement to display a BPS layout based on a keyfigure value. Basically filter based on a keyfigure value. I don't want to display any records which contains a value of '0' in a particular keyfigure. Is this possible in BPS.
    Thanks,
    Mohan

    thanks guys for your response.
    The macro is not going to help me because the number of records from the database fetch is going to be more than 15000 and the valid records are only around 100. And since BPS cannot display more than 9999 records this would be a problem. This is my assumption. Let me try this out and see how BPS responses.
    I tried using the exit function to delete the records from buffer with the condition if the keyfigure is 0 but the other keyfigures values are affect due to this. Meaning BPS keeps track of the changed records and changes the other keyfigure value to 0.
    e.g. I have 2 keyfigure, A and B. A is the keyfigure where I check the value for 0 and B is the keyfigure with a non-zero value say $10. And in the exit before processing I have 10 records out of which 2 records are having value 0 for the A keyfigure and 8 records are having value as 1 for the A KeyFigure. And B keyfigure is having $10 for all the records. Based on the condition I delete off the 2 records from memory. SEM keeps track of this change and when you press on the save button in planning layout, the value for the B keyfigure are changed from $10 to $ -10 and saved to the database, I don't want this change in value to B keyfigure happening. So any other work arounds....
    Thanks,
    Mohan

  • BAPI function module to get condition type and its values based on delivery number?

    Hi All,
    I would like to have the BAPI function module to get condition type value based on delivery number before invoice is created.please provide detail program for as a reference .please reply as soon as possible its urgent.
    Regards,
    saaikumar.

    If you haven't already, you may first need to search via the SAP transaction "BAPI" in the area this is applicable to.  Failing that I do hope you get an answer.

  • How to Handle Blank Field Value based Condition in SmartForms

    Dear Sir,
    In SMARTFORM , we need to define a Condition that incase Field Value is not equal to  BLANK value (blank means that field is empty) then a specific text gets printed .
    Our problem is that  We do not know as how to define  Empty Field Value  based condition .
    Had it been Non Empty Field value based condition then solution was simple and could be done in following way :
    Field Value                        R                     Comparision Value
    WA_KZDKZ                      =                      'X'
    In our case , we need to give Blank (Empty Value) instead of 'X' .
    Kindly help us pl .
    Rgds
    B Mittal

    Hi,
    To handle blank field values in SMARTFORMS,
    Go to the conditions tab in your SMARTFORM and give condition there
    Field                Comparision operator          value
    <Field name>      <> Here symbol is diff     space.
    eg:
    wa_mara-matnr    =/                                   space.
    Regards,
    Santosh Kumar M.

  • User wants to get the cumulative values based on his input.

    Hi
    I am working one FI Report; the out put values are Cumulative values for Current, Previous years. I developed and it fetches the data last 3 years Cumulative year’s data without any input FYMonth based on SAPexits and varible offsets. But user wants to put Fiscal year Month as input. So he wants get the cumulative values based on his input. For example, If his input SEP'2005(062005), Then Query gives the Output Cumulative Value (I.e., Sum of Total values of Form APR'2005 to SEP'2005)
    Please provide the solution…
    Thanks
    Mannev

    Mannev,
    You can try doing this.
    1. If the user input is fiscal period(2005006) , you can create a customer exit variable which will take the user value (i_step =2), and change the variable value to 20005001. (this is a simple code where tye last 2 digits are replaced by 01).
    if the user is entering calmonth, you can use FM - DATE_TO_PERIOD_CONVERT, to convert the month to fiscal period.
    2. You can create a rkf with restrictions on time char based on the customer exit variable and the user entered variable.
    -Saket

  • Non-Cumulative vs. Cumulative KeyFigures for Inventory Cube Implementation?

    A non-cumulative is a non-aggregating key figure on the level of one or more objects, which is always displayed in relation to time. Generally speaking, in SAP BI data modeling, there are two options for non-cumulative management. First option is to use non-cumulative management with non-cumulative key figures. Second option is to use non-cumulative management with normal key figures (cumulative key figures). For SAP inventory management, 0IC_C03 is a standard business content cube based upon the option of non-cumulative management with non-Cumulative key figures. Due to specific business requirements (this cube is designed primarily for detailed inventory balance reconciliation, we have to enhance 0IC_C03 to add additional characteristics such as Doc Number, Movement type and so on. The original estimated size of the cube is about 100 million records since we are extracting all history records from ECC (inception to date). We spent a lot of time to debate on if we should use non-cumulative key figures based upon the  standard business content of 0IC_C03 cube. We understand that, by using Non-Cumulative key figures, the fact table will be smaller (potentially). But, there are some disadvantages such as following:
    (1) We cannot use the InfoCube together with another InfoCube with non-cumulative key figures in a MultiProvider.
    (2) The query runtime can be affected by the calculation of the non-cumulative.
    (3) The InfoCube cannot logically partition by time characteristics (e.g. fiscal year) which makes it difficult for future archiving.
    (4) It is more difficult to maintain non-cumulative InfoCube since we have added more granularity (more characteristics) into the cube.
    Thus, we have decided not to use the Cumulative key figures. Instead, we are using cumulative key figures such as Receipt Stock Quantity (0RECTOTSTCK) ,  Issue Stock Quantity(0ISSTOTSTCK)
    , Receipt Valuated Stock Value (0RECVS_VAL) and Issue Valuated Stock Value (0ISSVS_VAL). All of those four key figures are available in the InfoCube and are calculated during the update process. Based upon the study of reporting requirements, those four key figures seems to be sufficient to meet all reporting requirements.
    In addition, since we have decided not to use cumulative key figures, we have removed non-cumulative key figures from the 0IC_C03 InfoCube and logically partitioned the cube by fiscal year. Furthermore, those InfoCube are fiscally partitioned by fiscal year/period as well.
    To a large extent, we are going away from the standard business content cube, and we have a pretty customized cube here. We'd like to use this opportunity to seek some guidance from SAP BI experts. Specifically, we want to understand what we are losing here by not using non-cumulative key figures as provided by original 0IC_C03  business content cube. Your honest suggestions and comment are greatly appreciated!

    Hello Marc,
    Thanks for the reply.
    I work for Dongxin, and would like to add couple of points to the original question...
    Based on the requirements, we decided to add Doc Number and Movement type along few other characteristics into the InfoCube (Custom InfoCube - article movements) as once we added these characteristics the Non Cumulative keyfigures even when the marker was properly set were not handling the stock values (balance) and the movements the right way causing data inconsistency issues.
    So, we are just using the Cumulative keyfigures and have decided to do the logical partitioning on fiscal year (as posting period is used to derive the time characteristics and compared to MC.1 makes more sense for comparison between ECC and BI.
    Also, I have gone through the How to manual for Inventory and in either case the reporting requirement is Inception to date (not just weekly or monthly snapshot).
    We would like to confirm if there would be any long term issues doing so.
    To optimize the performance we are planning to create aggregates at plant level.
    Couple of other points we took into consideration for using cumulative keyfigures are:
    1. Parallel processes possible if non-cumulative keyfigures are not used.
    2. Aggregates on fixed Plant possible if non-cumulative keyfigures are not used. (This being as all plants are not active and some of them are not reported).
    So, since we are not using the stock keyfigures (non cumulative) is it ok not to use 2LIS_03_BX as this is only to bring in the stock opening balance....
    We would like to know if there would be any issue only using BF and UM and using the InfoCube as the one to capture article movements along with cumulative keyfigures.
    Once again, thanks for your input on this issue.
    Thanks
    Dharma.

  • Checkbox Value in where condition of query

    Hi,
    I have a check box which shows values based on the LOV's . If i check on the checkbox the values that are selected on the check box must be used in the where condition to update the table.
    Please suggest me how to take the check box values.
    Am using the below methos to update but its not happening
    Declare
    old_cohort_name varchar2(500);           
    new_cohort_name varchar2(500);
    l_cohort_id apex_application_global.vc_arr2;
    begin
    l_cohort_id := apex_util.string_to_table(:P64_CASCADE_COHORT_NAMES);
    select cohort_name into old_cohort_name from study_cohort
    where cohort_id = :p64_cohort_id;
    select :P64_COHORT_NAME into new_cohort_name from dual;
    if old_cohort_name <> new_cohort_name then
    update study_cohort
    set      
    cohort_name = new_cohort_name
    where cohort_id = :p64_cohort_id and
    cohort_id = l_cohort_id; // here is the variable i am using when checkbox is checked
    End if;
    End;
    Please suggest me how to modify the code
    Tx
    Sudhri

    Hi Sudhri,
    where cohort_id = :p64_cohort_id and
    cohort_id = l_cohort_id; // here is the variable i am using when checkbox is checked If this is the code you are actually using, then the condition would only be met if l_cohort_id = :p64_cohort_id because you are using an AND condition over the same column in the where clause, so it will only return rows when both values are the same. Then, I think that it seems not to be working for you because :p64_cohort_id and l_cohort_id have different values, and no row is getting updated then. If the values you are selecting in your checkboxes are several ids of rows to update, besides the one with id :p64_cohort_id, then maybe the condition you need is something like this:
    WHERE cohort_id = :p64_cohort_id OR instr(l_cohort_id, cohort_id) != 0;Hope that helps.
    Regards,
    Sergio

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

  • Calling different pages in a single sap script based on conditions?

    Hi All,
             Can anyone please give me an example of how to call different pages in a single sap script based on condition. Eg., i need to call 5 differnet pages from a single sap script based on 5 company codes.
    Please help
    Regards
    Priya

    This approach to make call from SAPscript. Its concept is similar to make call to a subroutine in another program. I would presume you understand how to use USING and CHANGING parameter. =)
    SAPscript -
    /: Perform get_date in program z_at_date
    /:    using &p_year&
    /:    changing &new_date&
    /: endperform.
    program z_at_date -
    form get_date TABLES rec_in  STRUCTURE itcsy
                                    rec_out STRUCTURE itcsy..
    DATA:
       v_year type char10.
    sap script and subroutine uses itcsy structure to transmit parameters
    first parameter is incoming while second parameter is out going
    their function is like an internal table with header line
    all data types between SAPscript and subroutine are string.
    so, you might need additional conversion.
    read incoming parameter with exact name from SAPscript
      READ TABLE rec_in WITH KEY name = 'P_YEAR'.
      IF sy-subrc EQ 0.
        v_year = rec_in-value.
      ENDIF.
    to return value, use the exact name on the second structure
        CONCATENATE v_year v_year INTO v_year.
        READ TABLE rec_out WITH KEY name = 'NEW_DATE'.
        IF sy-subrc EQ 0.
          rec_out-value = v_year.
          MODIFY rec_out TRANSPORTING value WHERE name = 'NEW_DATE'.
        ENDIF.
    endform.
    Hope this helps =)

  • Preaggregation across value based hierarchy dimension in 11g

    Hi All,
    I have created a cube with 6 dimensions in olap 11g. One of those six dimensions has only one hierarchy which is value based hierarchy. I have chosen level based aggregation as I know at what levels exactly users are going to query. When I was going through the dimensions to choose levels to preaggregate I noticed there were no options available for my value based hierarchy dimension ( I could see "all" option for the same case in 10g) then I tried to look for definitions of underlying objects just to make sure it will preaggregate data across my value based hierarchy dimension.
    I found value set corresponding to my value based hierarchy dimension in <CUBE NAME>SOLVEAGGMAP object , which AWM uses to decide which dimension values to preaggregate but if I do rpr on that value set (rp r<CUBE NAME>SOLVE<DIMENSION NAME>_PVSET) it shows NA so my question is can I pre aggregate across value based hierarchy dimension in olap 11g?
    Olap Version: 11.2.0.1
    AWM version: 11.2.0.1
    Thanks

    Even if you know exactly which levels your users will query, percent based precompute (e.g. 30%) may still be faster in practice because queries are returned using 'sparse looping' instead of 'dense looping'. This was the single biggest performance advantage of 11g over 10g.
    But if you still want to use level based precompute, then you should look at the XML template for the cube (as saved by AWM, for example). In it you should find something called PrecomputeCondition. This defines the set of members that are precomputed. Here is an example I just created using the GLOBAL schema
    <PrecomputeCondition>
    <![CDATA[
      "TIME" LEVELS ("TIME"."MONTH", "TIME".CALENDAR_QUARTER, "TIME".CALENDAR_YEAR),
      CHANNEL LEVELS (CHANNEL.TOTAL_CHANNEL, CHANNEL.CHANNEL),
      CUSTOMER LEVELS (CUSTOMER.MARKET_SEGMENT, CUSTOMER.REGION, CUSTOMER.SHIP_TO),
      PRODUCT LEVELS (PRODUCT.CLASS, PRODUCT.FAMILY, PRODUCT.ITEM)]]>
    </PrecomputeCondition>The PrecomputeCondition is also visible through the USER_CUBES view.
    SELECT PRECOMPUTE_CONDITION
    FROM USER_CUBES
    WHERE CUBE_NAME = 'MY_CUBE';You can hand modify this condition in the XML to specify an alternative 'non level based' precompute condition for any dimension. For example, if you define an attribute named 'SHOULD_PRECOMPUTE' on your PRODUCT dimension that is 1 for members to be precomputed and 0 for all others, then you can change the condition as follows.
    <PrecomputeCondition>
    <![CDATA[
      "TIME" LEVELS ("TIME"."MONTH", "TIME".CALENDAR_QUARTER, "TIME".CALENDAR_YEAR),
      CHANNEL LEVELS (CHANNEL.TOTAL_CHANNEL, CHANNEL.CHANNEL),
      CUSTOMER LEVELS (CUSTOMER.MARKET_SEGMENT, CUSTOMER.REGION, CUSTOMER.SHIP_TO),
      PRODUCT WHERE PRODUCT.SHOULD_PRECOMPUTE = 1]]>
    </PrecomputeCondition>If you recreate the cube from the XML with this condition, then the PVSET valueset you discovered should contain all dimension members for which the attribute value is 1.   This gives you complete control over what is precomputed.   Note that AWM doesn't support this form of condition, so it won't show up if you go to the Precompute tab, but it is valid for the server.  The PL/SQL below will modify the PrecomputeCondition (for the cube named MYCUBE) without going through AWM.
    begin
      dbms_cube.import_xml(q'!
    <Metadata
      Version="1.3"
      MinimumDatabaseVersion="11.2.0.2">
      <Cube Name="MY_CUBE">
        <Organization>
          <AWCubeOrganization>
            <PrecomputeCondition>
              <![CDATA[
               "TIME" LEVELS ("TIME"."MONTH","TIME".CALENDAR_QUARTER, "TIME".CALENDAR_YEAR),
               CHANNEL LEVELS (CHANNEL.TOTAL_CHANNEL,CHANNEL.CHANNEL),
               CUSTOMER LEVELS (CUSTOMER.MARKET_SEGMENT,CUSTOMER.REGION,CUSTOMER.SHIP_TO),
               PRODUCT WHERE PRODUCT.SHOULD_PRECOMPUTE = 1]]>
            </PrecomputeCondition>
          </AWCubeOrganization>
        </Organization>
      </Cube>
    </Metadata>
    end;
    /

  • Suppress Target structure based on condition

    Hi
    How to suppress target structure based on condition
    Example:
    Source is like:
    <Details>
    <Name>abdc</Name>
    <ID>234</ID>
    <Address>US</Address>
    </Details>
    I have two target structures
    1:
    <Details>
    <Name>abdc</Name>
    <ID>234</ID>
    <Address>US</Address>
    </Details>
    2:
    <Error>
        <ErrorID>
    </Error>
    if Any of the source filed is null then i dont want to map it to source structure. instead I want to assign an error id to ErrrorID node of the target.
    example
    abc,123,US
    abc
    in above case second record has two null values
    so my target structure should be
    <Details>
    <Name>abc</Name>
    <ID>123</ID>
    <Address>US</Address>
    </Details>
    <Error>
        <ErrorID>2nd record has erro</ErrorID>
    </Error>
    How to acheive this..
    Please help us
    Regards
    Sowmya

    hi ,
    plz try the following mapping
    Name-->exist-->if than else-> tuue----->Name
                                                        false---(constant)--
    error
    ID-->exist-->if than else-> tuue----->ID
                                                     false---(constant)--
    error
    adress-->exist-->if than else-> tuue----->address
                                                          false---(constant)--
    error
    regards,
    navneet

Maybe you are looking for

  • [SOLVED] Wireless fails after suspending (Realtek 8192se)

    This problem is already solved on the first post: I spent so long trying to solve it that I thought people should know the solution. I have a Lenovo X100e with a Realtek 8192SE wireless card.  I'm running kernel 3.0.  The machine has, since upgrading

  • Hooked up to internet?

    I am producing a Cap4 project that will be installed on laptops that may or may not be connected to the Internet.  Would it make more sense to publish as an .exe file or html.  If html, does the laptop have to be connected to the Internet?  Also, the

  • Transferred pics from iPhoto, now every time connect iPod iPhoto launches

    And i don't want it to. I got the photos I wanted from iPhoto onto my iPod, but now every time I connect my iPod Touch to my MBPro iPhoto launches. Please help me make this stop. Went through everything in Prefs for both programs, to no avail. Thanks

  • Calendar Date Prompt

    I have a report for completed activities within a chosen date range. I can selected Completed date is between and type into the fields. I want to have a pop up calendar appear instead of typing the dates in. How do I do this? Thanks

  • Manual Bank Statement - Finsta

    Dear All,            I have a case where say I have already created 4 statements using ff67 for a particular bank account now am trying to post the 5th statement through the finsta idoc for the same bank account but am getting the error bank statemen