Calculated field makes data disappear in report

Hi Gurus,
I have here unique problem of data disappearance columns included in the report are
year (time -dim), order number (backlog details - dim) , total backlog (f), rma backlog (f) , shipping backlog (f), hold backlog (f) . All are from same fact table. Now rma , shipping , hold are calculated columns and total backlog is base column.
Filter : Year = 2009 , Order number = 11111 .
result of the above report is (without filter)
2009 ,11111 , 4.0 , 0.0 , 4.0 , 4.0
When I take out hold_backlog column I get the data
2009,11111, 4.0 , 0.0 , 4.0
but when I put the hold_backlog data does not come.
Now when I move any column excluding total_backlog afer order number then I get the data but it gives 0 to all derived column and in session query points to original column taking out the case statement .
Second weird thing here is when i put case statement in hold_backlog as { CASE  WHEN  USJ_Analytics."Dim USJ Ord Hold"."Hold Id" IS NOT NULL  THEN USJ_Analytics."Fact USJ Sales Backlog".Shipping_Backlog ELSE 0 END }
Here automatically not come before after saving.
{ CASE  WHEN  NOT USJ_Analytics."Dim USJ Ord Hold"."Hold Id" IS NULL  THEN USJ_Analytics."Fact USJ Sales Backlog".Shipping_Backlog ELSE 0 END }
May be there is problem in case statement , could you pls help asap as I think this hold column culprit but dont know how ?

Amol,
In the formula for the column causing the error, try adding an IfNull function to put 0 in place of the null, that might work.
Regards
Ed

Similar Messages

  • Calculation of % on Date Differences - BW Reporting

    Hi Experts,
    I have a typical scenario where in I need to calculate the % for the no of Days difference b/t 3 dates(Statistical Date, Delivery Date, GR Date).
    As of now I just showed just the Difference b/t all the 3 dates in no of days. Now I need to acomplish the below task, Can any one plese suggest me how to proceed to resolve all the below conditions.
    Need to provide the % of orders that fall into the following buckets for each of the above 3 Dates only in Reporting.
    1. On time = +/- 5 days
    2. Greater than 6-10 days late
    3. 11-15 days late
    4. Greater than 16 days late
    5. 6-10 early
    6. 11-15 days early
    7. Greater than 16 days early
    I need to do this at Query level only as I don't have authorization to create a new Calculated Key figures or Restricted KF.
    Only I can do is play around with the New Selection or New Formula at Column area of designer, write some Macros or can access Exceptional reporting for above 3 DATE Char or Key Figure fields and do some math to accomplish.
    Thanks,
    Sam

    Hi Nagesh,
         Thanks for your quick reply, I can say I tried with couple of options and couldn't
       suceed with the minimal access which I do have.
         Now I don't have much time to respond to user, If at all you do have and time
        and if you don't mine can you please look at the conditions and just give me the
        STEP1....STEPN for any one of the 3 diff types which you mentioned in your
        reply so that I can take it up from there.
    Sample Days Difference in my spread sheet now:-
    Stat-Del Date Diff Stat-GR Date Diff Del Date-GRDate Diff
    -67             68                       -68
    -112                160                       -160
    -109                109                       -109
    -109                109                       -109
    0                1                                        -1
        Please take any one date and do write down the step1..stepN if you have time.
    Sam

  • Adding characteristic to report makes data disappear(BEx)

    Can anyone help me out regarding why records are disappearing from query(BEx) when any attribute of XYZ_SALES is added.

    Hi Sridhar,
    Please check if there is any Restriction in BEX Query where you are excluding all records with 0MAT_SALES = #.
    Also if master data 0mat_sales is not maintained no data will come for its attribute as well in the report i.e if that order/document is not present in master data it will not flow in report also.
    Regards,
    Akanksha

  • Use calculated field(s) in other report

    Hi everyone,
    Is there a way to use a calculated field by itself in another report? I don't want to insert a sub report because it takes up too much space.
    I just need to use few fields in other calculations in the new report.
    Thank you

    The only way I can think of doing this without subreports is to save the values in a database somewhere.  In order to do this, the values would have to be calculated in the report's SQL Command data source.  (I'm guessin' that's probably not what you're looking for, but using subreports is the only other way I can think of...)
    HTH,
    Carl

  • Personnel number data disappears in Identification tab of BP

    Hi Team,
    In GUI while creating employee(BUP003) personnel number field's data disappears the first time after clicking save.
    This happens in quality, working fine in dev.
    Please help me out to fix this.
    Regards
    Muneera

    Hi Santosh,
    Refer the link **************** - Step by step procedure to enhance the BP using BDT.
    Thanks,
    Ritu

  • Data missing in Crosstab report with calculated field via case when

    I use the Oracle 10g discoverer. When I create a crosstab report with a calculate field via function case when and put it as datapoint, some of the data is not showing. I tried to not use the case when function for the calculate field, then all the data show.
    I really do not the reason. Could anybody help me out with many thanks?

    Let me explain more.
    I have the original data below.
    Work order, Team, Hours_worked, date
    800001, S1, 5, 2012/01/01
    800001, S1, 15, 2012/01/10
    800001, S2, 4, 2012/01/04
    800002, S1, 3, 2012/01/15
    There are multipul records for the same work order, team on the same day or different.
    Finally I want to set the start date and end date as the parameter to create a crosstab report format like
    start date>=2012/01/01 and close date<=2012/01/05
    Team
    Total hours total hours within the range
    Work order S1 S2 ... S1 S2 ...
    800001 20 4 5 4
    800002 3 0 0 0
    in order to do it, I create two parameters independently start date and close date. Then I create a calculate field hours_worked_withinrange via
    Case when date>=:start date and date<=:end date then Hours_worked else 0 end
    This calculated field is correct in the tabular format report in discoverer desktop. But when I duplicate the list as crosstab. Some data is missing in crosstab data point.
    I checked once I change the calculate field defination not use case when. (For example, C1=hours_worked*2). Then everything runs correct.

  • Data disappears when a field is added to report

    I have a report that uses two files. The first one has a field called "amount code", and the second includes that code field as well as a description of the code.
    But when I link that second file to the first one, data disappears when I drag a field from the second file into the report. The first 10 fields in the report are from the first file, and they look fine. But as soon as I drag in any of the fields from the second file, all of the data in the report disappears. (This happens no matter where I drag that field to...data, page headers, etc.)
    I'm pretty sure I have the files linked correctly. Can anyone tell my why this happens?
    (When I use the either file by itself, things look fine.)
    Thanks, Jon

    Hi Raghavendra,
    I think I have it figured out (or more accurately, our DBA figured it out for me).
    The problem is that in the main file, the code field is only one digit long (string). But in the second file (the code description file), that code field is 8 digits long, even though only the first digit has any data (followed by 7 blanks). Therefor CR doesn't see any matches.
    It looks like the solution is to truncate the field in the code description file so it's only one digit long instead of 8.
    But thanks for the help...I'm clearly over my head, and very much appreciate your assistance.
    Jon

  • Calculation Field to be mapped to different data object's column name in Oracle BAM 12c

    Hi,
    I am having a challenge to enable drill down to 2nd level report by passing calculation field as parameter.
    As an alternative, I am thinking to point calculation field to another data object’s column name and generate report so that I would be able to pass that as parameter to drilling report view.
    Is there any way to map calculation field to different Data object’s column name? Thanks in advance.
    Regards
    Amik Basu

    1. Yes, you can.
    SQL> create table ÜÝÞ( ßàá number(10));
    Table created.
    SQL> insert into ÜÝÞ values (10);
    1 row created.1.1 and 1.2 and 2. You can choose UTF as your default character set. It allows the user of non-English characters in VARCHAR columns in your whole database. It is not per tablespace.
    SQL> create table ÜÝÞ( ßàá varchar2(100));
    Table created.
    SQL> insert into ÜÝÞ values ('âãäçìé');
    1 row created.

  • Sum calculated field in report

    Hi, I have a report that groups by employee then by machine. In this report I sum several fields, but need to sum a calculated field and can't figure it out. This is the calculation:
    <?( QTY_MOVED) div ( TIME +.001 ) div ( INVERSE + .001)?>
    This is a total field using a field that works fine.
    <?sum(current-group()/QTY_REJ)?>
    How do I incorporate the calculation in the <?sum(current-group()/.............I get errors if I just put in the calculation above.
    thanks!

    Thank you for your help. After taking your advice and getting it to work by messing around with the brackets, management has changed their mind on the calc. Now they want me to use this calculation:
    SELECT EMPLOYEE, SUM(QTY_MOVED), SUM(QTY_REJ), SUM(TIME), (nvl([b]sum(QTY_MOVED),0)/nvl(sum(TIME),0))/nvl(sum(INVERSE),0) eff ,'DIRECT'
    FROM VW_TIMETRACK
    WHERE START_DATE >= :BEGIN
    AND START_DATE <= :END
    AND WORK_ORDER <> ' '
    GROUP BY EMPLOYEE
    to get the average. Now the weird thing is, I can get the value in toad, and I can get it to output in raw xml data, but when I try to add the eff field right next to the sum(time) field in the word form, nothing shows up. Absolutely no data. But it is in the xml. I'm using <?sum(current-group()/EFF)?> , just like I am for <?sum(current-group()/TIME)?> . I've made it text, numeric, decimal. Nothing is coming out.

  • Calculated fields based on data in multiple rows

    Hi,
    I am using SOA Suite 11.1.1.4 for BAM.
    Can someone please help explain to me if and how we can use calculated fields in BAM data objects where the calculations are not only based on the data for that row, but on multiple rows ?
    Like for example, this case can easily be constructed -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = Column1 + Column2
    But if I want to create something like this -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = max(Column1) + avg(Column2)
    Is it possible to do the above ?
    Is it possible to check multiple rows of the other columns while calculating a value ?
    Thanks & Regards,
    Karan.
    Edited by: user8890668 on Mar 9, 2011 3:58 AM

    Hi, Karan.
    Do you know you can do that in reports with calculated fields?
    I guess it is not possible using calculating functions offered in data objects to do that.
    If you, or anybody, discover how do that, please tell us. I would like to know that.
    Luciano Gomes
    user8890668 wrote:
    Hi,
    I am using SOA Suite 11.1.1.4 for BAM.
    Can someone please help explain to me if and how we can use calculated fields in BAM data objects where the calculations are not only based on the data for that row, but on multiple rows ?
    Like for example, this case can easily be constructed -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = Column1 + Column2
    But if I want to create something like this -->
    TestDataObject Layout
    Column1 integer
    Column2 integer
    Column3 calculated = max(Column1) + avg(Column2)
    Is it possible to do the above ?
    Is it possible to check multiple rows of the other columns while calculating a value ?
    Thanks & Regards,
    Karan.
    Edited by: user8890668 on Mar 9, 2011 3:58 AM

  • Chart report Condition fields and Data fields

    Hi all,
    i have tried chart report by adding two condion fields and one data field, the report is more meaning full in this scenario. the first condition field is taken as x-axis, the 2nd condition fields is taken as legend.
    while adding more condition fields and data fields, i feel its not showing meaningfull data.
    can anyone explain how the condition fields and data fileds are manipulated by crystal report.
    i am using CR XI R2 Server.
    Thanks
    Padmanaban V

    i am using Crystal Report XI R2 RAS Embedded in my server.
    as we can add any number condition fields programatically using the method
    ConditionField.Add(FieldObj), i would like to know how these fields are manipulated internally by the RAS server.
    that means, what is the significance of condition fieldobject 1, condition fieldobject 2,condition fieldobject 3 etc...
    if i add more than two condition fields , RAS Chart Report always returns 0 as legend value for all legends.
    Thanks in advance
    Regards,
    Padmanaban V
    Edited by: Padmanaban Viswanathan on Dec 22, 2008 9:53 AM

  • Update non-editable field Start date which is calculated from other context

    I had created some custom date fields(model, bol entity) in component ICCMP_BTSHEAD. We are calculating Start date based on the new input value into receiving date in the other context node.
    so, for this i get the value on controller class(_IMPL). and pass the same value in the GET method of Start date.
    But, Problem is Start date is the non-editable field so SET method will not be trigger as expected. so the same i used the DO_PREPARE_OUTPUT method but it's called and update the value when we press the enter. IF directly we click on the "SAVE" button then it' trigger but value is not updating in the database.
    Please, find the below piece of code for the same. can u please anybody help me that how can i achieve this requirement.
    DATA: l_recieve_date     TYPE crmt_date_timestamp_from,
            lr_current TYPE REF TO cl_bsp_wd_mixed_node,
            lr_col      TYPE REF TO cl_bsp_wd_collection_wrapper.
      DATA: lv_date TYPE d,
             lv_time TYPE t,
             lv_date_temp TYPE sydatum.
      IF iv_first_time EQ abap_false. "avoid for first tile load
    Read the value of btreceivedate-TIMESTAMP_FROM.
        lr_col = me->ztyped_context->btreceivedate->get_collection_wrapper( ).
        IF lr_col IS BOUND.
          lr_current ?= lr_col->get_current( ).
          IF lr_current IS BOUND.
            lr_current->if_bol_bo_property_access~get_property_as_value( EXPORTING iv_attr_name = 'TIMESTAMP_FROM'
                                       IMPORTING ev_result   = l_recieve_date ).
          ENDIF.
        ENDIF.
        IF l_recieve_date IS NOT INITIAL.
          CONVERT TIME STAMP l_recieve_date TIME ZONE sy-zonlo
                    INTO DATE lv_date TIME lv_time.
    Check day is working day - if not, correct to previous working day
          IF lv_date IS NOT INITIAL.
            lv_date_temp = lv_date.
            CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
              EXPORTING
                correct_option      = '-'
                date                = lv_date
                factory_calendar_id = 'GB'
              IMPORTING
                date                = lv_date_temp
              EXCEPTIONS
                date_after_range    = 1
                date_before_range   = 2.
            IF sy-subrc IS INITIAL.
              lv_date = lv_date_temp.
            ENDIF.
          ENDIF.
          CONVERT DATE lv_date TIME lv_time
                 INTO TIME STAMP l_recieve_date TIME ZONE sy-zonlo.
        ENDIF.
        lr_col = me->ztyped_context->btstart->get_collection_wrapper( ).
        IF lr_col IS BOUND.
          lr_current ?= lr_col->get_current( ).
          IF lr_current IS BOUND.
            lr_current->if_bol_bo_property_access~set_property(
                       iv_attr_name = 'APPT_TYPE'               "#EC NOTEXT
                       iv_value     = 'ZSTWTIME0001' ).
            lr_current->if_bol_bo_property_access~set_property(
                            iv_attr_name = 'TIMESTAMP_FROM'     "#EC NOTEXT
                            iv_value     = l_recieve_date ).
          ENDIF.
        ENDIF.
      ENDIF.
    could you please help me?

    Hi,
    Thanks for your reply,
    yes, i checked the same thing also. But DO_HANDLE_DATA is called before the SET method of receiving date and in that case we are getting the old value in DO_HANDLE _DATA and  source and Target fields both are not updating.
    I checked, if, i'll change the input field then set method of input field and then EH_ON_SAVE is called directly.
    i think, if i'll do the same modification in the EH_ON_SAVE method as i did in the DO_PREPARE_OUTPUT then it can be updated but i don't want to change the EH_ON_SAVE at this moment.
    is there any other way to update the START DATE(Display mode in the screen) which is calculate from the other context node field receiving date.

  • How to make the date disappear on the blog summary page?

    Hi,
    I have read thru the message on this forum and can't seem to figure out how to hide or make the date disappear on the blog summary page.  I can do it on the blog entry pages by turning the color opacity to 0. 
    I have included my page here:http://www.quantumhealthcentre.com/www.quantumhealthcentre.com/Services/Services .html
    Also, if anyone knows how to delete the archive page or inactivate it on my website, please let me know.
    Any advice would be appreciated.
    Thanks,
    Peggy

    http://www.wyodor.net/_Movies/HideDateBlogEntry.mov
    http://www.wyodor.net/_Movies/HideDateBlogArchive.mov

  • Date VS Date Time in Calculated Field

    I have a property for a patients records called Date of Birth. On the table defining it I saved it as a "date" type and It displays only
    the date on the screen as I would like. For some reason though when I needed a calculated field in the Medication record I added a property to the patient records table that concatenated two fields BirthDate and the Age. I used the following code and then
    added an other screen data item on the medication screen to pull the DoBA property up but got a Date/Time instead of just a Date.
    partial void DoBA_Compute(ref string result)
    // Set result to the desired field value
    result = "DoB:" + BirthDate + " Age:" + Age;
    //This is for the property "Date of Birth and Age"
    //I also used the following code to calculate "Age"
    partial void Age_Compute(ref int result)
    // Set result to the desired field value
    int age = DateTime.Now.Year - BirthDate.Year;
    if (BirthDate > DateTime.Now.AddYears(-age)) age--;
    result = age;
    Images

    I'm using cast instead of Convert.ToInt because the last round to value to upper int if value > 0.5 or to lower if value < 0.5 ( I don't remember now if equal goes to < or > ... read function doc ) while Cast to int do not round the value.
    In my code the day of the birthday
    still
    marks
    the
    previous
    age,
    from the
    day after
    one more year.
    by adding
    +
    1
    age
    increases
    by the
    day
    of the birthday

  • How to make "Data Entry Profile" field input unable or display only in CAT2

    hi ,
    I have requiremnet where I need to make "Data Entry Profile" field in the CAT2 transaction as Display only .That is for each user it should come as default one .
    The reason behind this is , user should not change this Profile and maintain an incorrect timesheet entries.
    Is there any User exit where i can do this ? 
    Let me know as this is very urgent requirement.
    Points will be definately rewarded.
    Thanks .

    Hemant,
    Got SHD0 transaction and create screen variant for that transaction there you can disable that field.
    Create Transaction variant for that transaction and assign previously created screen variant to this transaction varient. actiavte.
    Reward if it helps,
    Satish

Maybe you are looking for

  • How to edit email preferences in Adobe Acrobat 9 Pro

    I have adobe Acrobat 9 Pro. I would like to edit my email preferences so that when I create an email with the PDF as an attachment the name of the file will automatically also be the subject line of the email. according to the help instructions, I sh

  • How to cut and combine itunes tracks?

    I have created a slideshow for a wedding and want to play parts of a few itunes songs during the slideshow. I have read that Garage Band is supposed to be able to do this, but I cannot figure out how to do it in Garage Band. Can someone please help?

  • Need help reading files from a simple applet

    hi everyone, i have the following problem while trying to read from a file: java.security.AccessControlException: access denied (java.io.FilePermission dr.xml read) this problem shows up only when loading applet from a browser... if i use appletviewe

  • Macbook airport extreem and brother printer/scanner DCP-330C

    I have macbook airport extreem and brother printer/scanner DCP-330C and everything works fine. I can print wireless. The only thing that irritates me is, when I start my macbook I first see a screen with MFL-ProSuite, I quit then a screen with connec

  • HT1218 can't find airplay icon

    Can't locate the airply icon in any of my devises. iPad, iPhone and MacPro. Any help?