Cumulative Problem

Hi all,
We have a table of incidents with a Date Opened and a Date Closed.
The report needed is a cumulative report month by month giving the number of open incidents from the start of the current year
So - we need to start with all open (open date before 1st Jan but no close date) incidents.
Then there will be calls opened in January, and some calls closed in January (and some of these will be calls that were from last year) - so the January cumulative total is (Original) + (Calls opened in Jan) - (Calls closed in Jan) .
SImilarly for Feb, March and up to date.
I'm sure this must be a common request, but I can't think of a way of getting these figures into a report - preferably a cross-tab so we can get a nice bar chart of the totals.
Thanks
Malcolm

I've never actually used incremental backups with a RETENTION POLICY of 'REDUNDANCY', always with a RECOVERY WINDOW.
REDUNDANCY 1 will aim to keep one copy of each backup it takes (as far as I'm aware), therefore it won't really have any awareness of the recovery sequentials involved, i.e., since you're deleting manually it will only check that it has a single copy of each backup for those backups that haven't expired.
On the other hand, if you were operating with a RECOVERY WINDOW of, say, 3 days, you wouldn't need the CROSSCHECK and DELETE EXPIRED, just the DELETE OBSOLETE, and that would retain only what it needs to effect a recovery from the backups from any time over the last 3 days (incomplete) to the present (complete).
Therefore, it would automatically know which level 0s and 1s to keep for that purpose, but the oldest one would never be a level 1, it would always have to be a level 0 plus the subsequent level1s. So say that you take a weekly level 0, and a level 1 on the days in between, on the 6th day after the level 0, you will have one level 0, plus each incremental since then to satisfy the RECOVERY WINDOW of 3 days.
You could also look at taking level 2s, to reduce your backup footprint even further, i.e, weekly level 0, followed by a level 1, followed by a level 2, followed by a level 1, etc...
Here's an example of a cumulative-incremental backup strategy:
[Multi-level RMAN Backup Strategy|http://download.oracle.com/docs/cd/B10501_01/server.920/a96566/rcmconc1.htm]

Similar Messages

  • Cumulation problem in BEX REPORT?

    hi,
    i am generating reporting FISCAL PERIOD WISE. the values of standard price(OPRICE_STD), moving average price(0PRICE_AVG) values are basically coming from R/3 directly.
    0fiscper    Company period            std price           mov avg price
    2009001     20090101                      40                         50
    2009001     20090102                      40                         50
    2009001     20090103                      40                         50
    2009001     20090104                      40                         50
    no, when i run the report by fiscal period the values are showing 160 instead of 40, and 200 instead of 50 respectively.
    when u drill down the values are 40,50 only for the company period wise. but how to display overall result as 40 for std price, and 50 for mov avg price in the bex report. that means how to do it in bex query designer.
    regards
    vadlamudi

    thanks one and all , that problem has been resolved.
    i have created structure for material types( Ingredients, packaging materials in rows)
    when i execute the query by fiscal period the values which are showing is very high in the final result.
    when i drill down by material and keyfigure(formula) values are not matching with the final result.
    and if we execute by material wise rather than period wise the values are perfect.
    pl tell me the solutio
    regards
    vadlamudi
    Edited by: venugopalv on Sep 3, 2009 10:55 AM
    Edited by: venugopalv on Sep 3, 2009 11:52 AM

  • Partion By,Cumulative% problem in Discoverer: Pla help

    I have a query like this for supplier spend report..
    SELECT ORG_ID,
    COMPANY,
    SEGMENT1,
    OU,
    INV_ORG,
    --INV_ORG_ID,
    VENDOR_NAME,
    INVOICE_ID,
    PRODUCT_TYPE,
    PERIOD_NAME,
    AMOUNT_PAID,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME ORDER BY AMOUNT_PAID DESC) CUM_TOTAL,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME) TOTAL_PAID,
    (AMOUNT_PAID / (SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME))) /** 100*/ SUPP_PRCNT,
    ((SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID,PERIOD_NAME ORDER BY AMOUNT_PAID DESC)) /
    (SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID,PERIOD_NAME))) /** 100*/ CUM_PRCNT
    FROM (SELECT CHQ.ORG_ID,
    ORG.CURRENCY_CODE,
    FVT.DESCRIPTION COMPANY,
    GCC.SEGMENT1,
    ORG.ORG_NAME OU,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation'/*,
    'Unknown'*/) INV_ORG,
    /* (SELECT ORGANIZATION_ID
    FROM apps.ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_NAME =
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation',
    'Unknown')) INV_ORG_ID,*/
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    count(INV.INVOICE_ID) INVOICE_ID,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    SUM(NVL(INVP.PAYMENT_BASE_AMOUNT, INVP.AMOUNT)) AMOUNT_PAID
    FROM APPS.AP_CHECKS_ALL CHQ,
    APPS.AP_INVOICE_PAYMENTS_ALL INVP,
    APPS.AP_INVOICES_ALL INV,
    APPS.AP_INVOICE_LINES_ALL INVL,
    APPS.AP_INVOICE_DISTRIBUTIONS_ALL INVD,
    APPS.GL_CODE_COMBINATIONS GCC,
    APPS.FND_FLEX_VALUES FV,
    APPS.FND_FLEX_VALUES_TL FVT,
    APPS.XXBG_HR_OPERATING_UNITS ORG
    WHERE CHQ.CHECK_ID = INVP.CHECK_ID
    AND INVP.INVOICE_ID = INV.INVOICE_ID
    AND CHQ.ORG_ID = ORG.ORG_ID
    AND INVL.INVOICE_ID = INV.INVOICE_ID
    AND INVL.LINE_NUMBER =
    (SELECT MIN(LINE_NUMBER)
    FROM APPS.AP_INVOICE_LINES_ALL
    WHERE INVOICE_ID = INVL.INVOICE_ID
    AND LINE_TYPE_LOOKUP_CODE = 'ITEM'
    AND DISCARDED_FLAG = 'N')
    AND INVL.INVOICE_ID = INVD.INVOICE_ID
    AND INVL.LINE_NUMBER = INVD.INVOICE_LINE_NUMBER
    AND INVD.DISTRIBUTION_LINE_NUMBER = 1
    AND INVD.DIST_CODE_COMBINATION_ID = GCC.CODE_COMBINATION_ID
    AND FV.FLEX_VALUE_SET_ID = 1013043
    AND FV.FLEX_VALUE = GCC.SEGMENT1
    AND FV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    --AND VENDOR_NAME = '3d Earthmoving Pty Ltd'  
    AND INVL.PERIOD_NAME = 'AUG-09'
    AND ORG.ORG_ID = 1563
    GROUP BY CHQ.ORG_ID,
    GCC.SEGMENT1,
    ORG.ORG_NAME,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    --INV.INVOICE_ID,
    FVT.DESCRIPTION,
    ORG.CURRENCY_CODE,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME)
    /*WHERE ORG_ID = 1563
    AND PERIOD_NAME = 'AUG-09'*/
    ORDER BY AMOUNT_PAID DESC
    Now in discoverer the query block becomes:
    SELECT /*+ NOREWRITE */
    O366135.OU AS E366147,
    O366135.INV_ORG AS E366148,
    O366135.VENDOR_NAME AS E366150,
    O366135.INVOICE_ID AS E366151,
    O366135.PRODUCT_TYPE AS E366152,
    O366135.PERIOD_NAME AS E366153,
    O366135.AMOUNT_PAID AS E366154,
    O366135.TOTAL_PAID AS TOTAL_PAID,
    O366135.SUPP_PRCNT AS E366300,
    O366135.CUM_PRCNT AS E366301
    FROM (SELECT ORG_ID,
    COMPANY,
    SEGMENT1,
    OU,
    INV_ORG,
    --INV_ORG_ID,
    VENDOR_NAME,
    INVOICE_ID,
    PRODUCT_TYPE,
    PERIOD_NAME,
    AMOUNT_PAID,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID, SEGMENT1,PERIOD_NAME,PRODUCT_TYPE ORDER BY AMOUNT_PAID DESC) CUM_TOTAL,
    SUM(AMOUNT_PAID) OVER(PARTITION BY ORG_ID, SEGMENT1,PERIOD_NAME,PRODUCT_TYPE) TOTAL_PAID,
    (AMOUNT_PAID /
    (SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID, SEGMENT1,PERIOD_NAME,PRODUCT_TYPE))) /** 100*/ SUPP_PRCNT,
    ((SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID,SEGMENT1,
    PERIOD_NAME,PRODUCT_TYPE ORDER BY AMOUNT_PAID DESC)) /
    (SUM(AMOUNT_PAID)
    OVER(PARTITION BY ORG_ID,SEGMENT1, PERIOD_NAME,PRODUCT_TYPE))) /** 100*/ CUM_PRCNT
    FROM (SELECT CHQ.ORG_ID,
    ORG.CURRENCY_CODE,
    FVT.DESCRIPTION COMPANY,
    GCC.SEGMENT1,
    ORG.ORG_NAME OU,
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation' /*,
    'Unknown'*/) INV_ORG,
    /* (SELECT ORGANIZATION_ID
    FROM apps.ORG_ORGANIZATION_DEFINITIONS
    WHERE ORGANIZATION_NAME =
    DECODE(GCC.SEGMENT1,
    7590,
    'Kanowna Belle Organisation',
    7060,
    'Darlot Organisation',
    7260,
    'Cowal Organisation',
    7570,
    'Kanowna Belle Organisation',
    7595,
    'Kundana Organisation',
    7070,
    'Lawlers Organisation',
    7180,
    7541,
    'Granny Smith Organisation',
    7015,
    7610,
    'Kundana Organisation',
    7014,
    7538,
    'Granny Smith Organisation',
    'Unknown')) INV_ORG_ID,*/
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    COUNT(INV.INVOICE_ID) INVOICE_ID,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME,
    SUM(NVL(INVP.PAYMENT_BASE_AMOUNT, INVP.AMOUNT)) AMOUNT_PAID
    FROM APPS.AP_CHECKS_ALL CHQ,
    APPS.AP_INVOICE_PAYMENTS_ALL INVP,
    APPS.AP_INVOICES_ALL INV,
    APPS.AP_INVOICE_LINES_ALL INVL,
    APPS.AP_INVOICE_DISTRIBUTIONS_ALL INVD,
    APPS.GL_CODE_COMBINATIONS GCC,
    APPS.FND_FLEX_VALUES FV,
    APPS.FND_FLEX_VALUES_TL FVT,
    APPS.XXBG_HR_OPERATING_UNITS ORG
    WHERE CHQ.CHECK_ID = INVP.CHECK_ID
    AND INVP.INVOICE_ID = INV.INVOICE_ID
    AND CHQ.ORG_ID = ORG.ORG_ID
    AND INVL.INVOICE_ID = INV.INVOICE_ID
    AND INVL.LINE_NUMBER =
    (SELECT MIN(LINE_NUMBER)
    FROM APPS.AP_INVOICE_LINES_ALL
    WHERE INVOICE_ID = INVL.INVOICE_ID
    AND LINE_TYPE_LOOKUP_CODE = 'ITEM'
    AND DISCARDED_FLAG = 'N')
    AND INVL.INVOICE_ID = INVD.INVOICE_ID
    AND INVL.LINE_NUMBER = INVD.INVOICE_LINE_NUMBER
    AND INVD.DISTRIBUTION_LINE_NUMBER = 1
    AND INVD.DIST_CODE_COMBINATION_ID =
    GCC.CODE_COMBINATION_ID
    AND FV.FLEX_VALUE_SET_ID = 1013043
    AND FV.FLEX_VALUE = GCC.SEGMENT1
    AND FV.FLEX_VALUE_ID = FVT.FLEX_VALUE_ID
    --AND VENDOR_NAME = '3d Earthmoving Pty Ltd'  
    AND INVL.PERIOD_NAME = 'AUG-09'
    AND ORG.ORG_ID = 1563
    GROUP BY CHQ.ORG_ID,
    GCC.SEGMENT1,
    ORG.ORG_NAME,
    CHQ.VENDOR_ID,
    CHQ.VENDOR_NAME,
    --INV.INVOICE_ID,
    FVT.DESCRIPTION,
    ORG.CURRENCY_CODE,
    INVL.PRODUCT_TYPE,
    INVL.PERIOD_NAME)
    /*WHERE
    --ORG_ID = 1563
    AND
    PERIOD_NAME = 'AUG-09'*/
    ORDER BY AMOUNT_PAID DESC) O366135
    WHERE (O366135.PRODUCT_TYPE = :"Order Type")
    AND (O366135.PERIOD_NAME = :"Period")
    AND (O366135.INV_ORG = :"Inventory Organisation")
    AND (O366135.OU = :"Operating Unit");
    Here the problem is I have the mandatory parameter "Period" and "Operating Unit", optional parameter "Order Type" and "Inventory Organisation". Order Type and Inventory Organisation are not passed in partition. That's why I am getting incorrect result.
    Could anyone pls help how is that possible in Discoverer?
    Pls help.

    Hi,
    Maybe you want to partition by the optional parameters only when they have been entered by the user. But you cannot do this because the partitioning is part of the query and cannot be changed by the parameters.
    Rod West

  • Work center hierarch cumulation problem

    hi
      I am trying to cumulate capacity requirement from 3 work centers...I created a work center hierarchy as below steps but I cann't see the cumulate result..it prompt no available capacity requirement or work center exist..anyone knows what I should do next?I can do capacity leveling/evaluation,so I think my IMG setting is good..i searched the SDN forum but no workable solution for me..
    thanks.
    Create a new WC (in CR01) as category 0004. This will be the top level WC in your hierarchy.
    Create a hierarchy (in CR21).
    Add your 5 lathes and the newly created top level WC to the hierarchy (in CR22). This can be tricky: the WC you just created must be the top level, the other 5 must be under it.
    Pull the capacity data (in CM01) for the hierarchy: go to settings, hierarchy, check the cumulation of requirements and capacities and type the hierarchy name.
    Route things as before, to the original 5 lathes.

    Hi ,
    Dispatching is used to allocate or schedule the planned orders in the work center/resource.
    We can use CM25 transaction-Graphical planning board for dispatching.
    Planner can assign /dispatch the planned orders manually here. He can see graphically the planned orders overload work center which are dispatched with other.
    Using cm21 you can do capacity levelling graphically or using cm22 can do cap levelling using tabular column.I feel using this would be easy.
    Regards,
    R.Brahmankar

  • Lagarith export problem

    I have a lot of clips in Lagarith loss-free codec which need to be worked on. Some of these clips export from CS4,2.1 in seconds, some clips of equal length take minutes, and some wont export at all. Even with the clips which do export there is a cumulative problem: if I do a little bit of dirt concealment  work on the clip it exports quickly. If I then re-import the clip and do a bit more work on it, it exports more slowly. If I then import it again and do some more work, it then takes a long time to export. And if I import it again and do some more work, it then wont export at all. How can this fault be cumulative like this? And what is the fault?

    Thanks for replying Ann. No I can't do all the corrections at the same time because the clip won't export at all. It will only export if I do just a few corrections, and even so the export gets longer and longer each time, until eventualy it wont export at all. Yes it seems like the file is getting bigger and bigger, but it's not. The clip remains the same size, just with dirt removed from certain frames. Being Lagarith these are quite big files, 200MB for short clips, 1GB for long ones.

  • Flash Player 10.1.102.64 is for 32 bit or 64 bit systems?

    On 27 Dec 2010 AEDST (Australia) I downloaded and tried to install the above update, the installation would not complete as the message on screen was 'This program is incorrect format for this system as it is 64 bit and your system is 32 bit.'
    System is MS Windows with Internet Explorer and main browser is Mozilla using IE settings, P4/1.70GHz with 384mb RAM, X86 based PC
    Browsed all over your site and I can't find a 32 bit Flash Player. Please help

    When I typed my original query I had a problem. I reviewed that query and supplied more information to assist in gaining a solution to my problem. I have not solved the problem I had found before I requested help.
    I have re-read and re-tried to follow and implement your instructions and still the computer response is that the program 'saved' 'is not a valid Win 32 application'.
    My browser is, and will remain Mozilla Firefox. Internet Explorer will not remove Big Pond from its grasp and since moving from these two features on my machine I have a better and more functional internet experience without a variety of cumulative problems.
    Since 1985 Internet Explorer began and has increasingly downloaded and installed programs from remote internet sites. Mozilla Firefox will not do this and continues to have the policy of 'saving' to the individual computer programs to be 'installed' later. Mozilla Firefox will only 'save' and has no option to 'run' an installation from a remote address.
    I have had many happy hours with all Adobe products that provided support and tools for web use and I am at this time lost for a product in the areas those programs filled. As there is no solution to my problem after 5 attempts to follow your instructions I will have to miss out  on using Adobe products or find another solution.
    Thanking you for all your help and I do hope you can solve the problem I have posed.

  • Problem with Non-cumulative key figure.

    Hi all,
    I am facing the problem with the Non-cumulative Key Figure (Quantity). I have created and loaded data to the non-cumulative InfoCube. <b>This cube is defined by me to test the non-cumulative key figure.</b>
    <b>In BEx query the non-cumulative key figure and cumulative key figure (Value change) both display same values, i.e. non-cumulative key figure contains the same values which we have loaded for cumulative value change. Non-cumulative key figure is not calculated based on associated cumulative key figure.</b>
    I have done the following while defining the non-cumulative InfoCube:
    1. Created a non-cumulative key figure which is associated with a cumulative key figure (value change).
    2. Loaded data to non-cumulative InfoCube from flat file.
    3. Compressed data in non-cumulative InfoCube after the load.
    Note:
    1. Validity area is determined by the system based on the minimum and maximum date in data.
    2. Validity determining characteristic, 0CALDAY is the default characteristic selected by the system.
    Is there any other settings to be done?
    Please help me in resolving this issue.
    Thanks and regards
    Pruthvi R

    Being a non-cumulative KF, total stock is automatically takes care of that.
    Try putting all the restrictions which you have included for total receipts and total issues, for eg,  restrict Total Stock with the movement types used in Receipts as well as Issues.
    Check and revert.
    Regards
    Gajendra

  • Problem with non cumulative KF

    Hi All,
    I have some problem in the calculation of non cumulative KF. The fields it uses for inflow and outflw as same value in SAP system but the nom *** KF is showing a different value For eg. it uses receipt total stock as inflow and quantity total stock as outflow. The value for receipt total stock is 3309000 and that of quantity total stock is 3588850. But the non *** KF is being shown in report as 8483410. Can anyone pls explain troubleshoot. Please provide me quick responses.
    Thanks in advance,
    Sananda

    Dear Dirk,
    Thanks for response.
    Describe please what do you mean as "use cumulative instead of non-cumulative"?
    My cube is material stock by storage location, stocks by storages define as non-*** KF on in- and out-comes. I need in BEx real quantity and value stocks independently of the query navigation detailed level.
    Are there ready-made apropriate BEx implementaions from SAP for my case?
    About virtual KF - I've nevere before didn't use virtual KF. From what I'll must to start? Where I can search appropriate knowledge?
    Kind regards,
    Igor Podgibalov,
    Saint-Peterspburg, Russia

  • Cumulative balance tranfer problem

    Hi this is ram,
    I have problem with carry forwarding the balance from one year to another year regarding cumulative balance. it is taking only balance only for next year.
    Thanksin advance,
    ramanjaneyulu

    Hello,
    And another observation is if the balance carryforward has been done then all GLs would have the balance in that field, its not so. In addition I found that the balances displayed in the cumulative balance for the transactions which are entered in the current year with the posting date of previous year. Example, documents are entred in Jan 2011, with the posting date of Dec 2010. I dont understand is any correction needed and any notes relating to this.
    Regards
    Sunil

  • Problem with business partner cumulative balance

    Hi
    I used to used the business partner balance enqury to quickly tell customers what they were due to pay up to the start of the month. I just looked at the cumulative balance of the last transaction of the previous month and that was it. I know I could run an aged credit report but this was quicker and easier. However since upgrade to 2007A the cumulative balance does not give the amount due for a part paid invoice so this does not work any more.
    Question is has anyone writen a fast query or other report that calculates the cumulative balance based on outstanding amount?
    Thanks in advance
    Derek

    Hi!
    Run this in SAP B1 Query Manager
    SELECT     T0.CARDCODE, MIN(T0.CARDNAME) 'Customer Name', SUM(T0.DOCTOTAL - T0.PAIDTODATE) 'Last Balance'
    FROM        DBO.OINV T0
    WHERE     DOCSTATUS = 'O' AND T0.DOCTOTAL - T0.PAIDTODATE > 1 AND T0.CANCELED = 'N' AND DATEPART(month,T0.DOCDUEDATE) < DATEPART(month,getdate()) AND T0.CARDCODE = '[%1]'
    Group By T0.CARDCODE
    UNION ALL
    SELECT     T0.CARDCODE, MIN(T0.CARDNAME) 'Customer Name', -SUM(T0.DOCTOTAL - T0.PAIDTODATE) 'Last Balance'
    FROM        DBO.ORIN T0
    WHERE     DOCSTATUS = 'O' AND T0.DOCTOTAL - T0.PAIDTODATE > 1 AND T0.CANCELED = 'N' AND DATEPART(month,T0.DOCDUEDATE) < DATEPART(month,getdate())  AND T0.CARDCODE = '[%1]'
    Group By T0.CARDCODE
    ORDER BY T0.CARDCODE

  • Problem with Crosstab Cumulative percentage

    Morning all,
    I have setup my report based on Sales Area (Group) and used Cross tab to show each area's Number of days, Jobs and percentages.
    I wanted the percentage to be cumulative so I used a formula on Display String of the Percentage section.
    However, the new cumulative percentage doesn't seem to be working properly.
    For example, at some places the percentage is showing as 100% where as the Currentfieldvalue = 1 and Total Value = 252 (which makes it to 0.39% and not 100%).
    Could someone please look into the formula and provide me with some sort of suggestion/solution to this issue?
    Here is the formula
    Whileprintingrecords;
    Numbervar h:=Currentfieldvalue;
    Numbervar g:={@TotalJobs-CanceledJobs};
    Numbervar b:=0;
    b:=(h/g)*100;
    Numbervar gTot:=b+gTot;
    if gTot > 100 then "100.00%" else
    totext(gTot,2) + "%";
    if I remove gTot > 100 then "100.00%" the value changes to 105.1% which is again incorrect.
    Regards
    Jehanzeb

    Sastry thanks for you kind and quick reply.
    That gTot is just a variable so that I can add the next value of the field.
    For example,
    numbervar x:=x+currentfieldvalue
    If I use
    Whileprintingrecords;
    Numbervar h:=Currentfieldvalue;
    Numbervar g:={@TotalJobs-CanceledJobs};
    Numbervar b:=0;
    b:=(h/g)*100;
    totext(b)+"%";
    This gives me the correct percentage however not cumulative. What I would like to acheive is the cumulative percentage instead of normal percentage.
    Example of report
    Days - 12345
    Jobs  - 13421
    %     -  1% 2% 3%
    What I would like to get is
    Days - 12345
    Jobs  - 13421
    %     -  1% 3% 6%
    See the percentage is getting added up to the next field value.
    12 = 3, 12+3 = 6 and so on
    Regards
    Jehanzeb

  • DAQmx non-cumulative buffered edge counting (like the PMT TTL problem) with PCI6221 in C program environment

    I have a PCI-6221. I am programming in C/C++ and DAQmx. My application is much like the previous thread counting the number of asynchronous TTL pulses from a PMT in some user specified time interval. The time interval is typically around 1 msec and the signal rates are around 1-10 kHz. So I expect to count 0 to 10 pulses per timebin. In traditional DAQ this was called Non-cumulative buffered edge counting.
    To get a clock at about 1kHz, I first create an "analogue in" task that samples at 1kHz. The only thing I use this task for is to route its sample clock to the gate of the counter. This defines my time interval as 1 msec.
    I then create the counter task. I am using count edges. So I think counter0 gate = PFI9 and source = PFI8.
    DAQmxCreateCICountEdgesChan(*taskHandle,chan,"",edge,initialCount,countDirection);
    DAQmxCfgSampClkTiming(*taskHandle,clockSource,rate,DAQmx_Val_Rising,DAQmx_Val_ContSamps,samplesPerChan);
    where clockSource="/Dev1/ai/SampleClock"
    I apply my signal to PFI8.
    After starting the task, I read an array of values with
    DAQmxReadCounterU32(taskHandle,samplesToRead,10.0,data,samplesToRead,read,NULL);
    I expect the array data to have values ranging from 0-10 for PMT input with an average rate of about 10 kHz. The trouble is that the array data does not seem to make sense. I get constantly increasing values. For very low input frequency, it just increments by one per array member.
    More troublesome, when I hold PFI8 at ground, so that I expect zero pulses to be counted at the source for each edge at the gate that occur 1 per msec, I get a timeout error. I really must be able to count zero events per bin.
    Am I doing something obviously wrong?

    Hello,
    The behavior of non-cumulative event counting is equivalent to period measurement. Additionally, the timeouts when no edges occur on your event counting terminal are the result of duplicate count prevention. In DAQ 7.4, the default behavior of duplicate count behavior should take care of this for you, but if you cannot upgrade to DAQ 7.4, I'd do a search of the discussion forums for "duplicate count prevention". There are a number of previous posts about this attribute, including this one.
    If you aren't using the second counter on your device, you should be able to use the Period Measurement 2 Counter High Frequency measurement method to get your desired values. The "Measurement Time" attribute in this case would be the "sample clock" (1 kHz in your example). Then just raed the data raw to get counts rather than scaled.
    If you'd like to do it using the AI timing engine. Configure a 1 counter period measurement task, use "clockSource" as your input terminal and use your PMT TTL pulses as the "Counter Timebase Source". Then read the data raw, since the scaling will not be appropriate for your needs.
    I hope this helps!
    gus....

  • Problem facing while cumulating the key fig

    Hi to all,Arun & gopi
    The report excecute for current month.
    Forecast values have month starting day to ending date.
    Actual values have month starting date to the present day(system date).
    According to client requirement in layout, i have to show shipmentforecast(day) and shipmenforecast(cumulate) from month starting date to ending date and shipmentactual(day) and shipmentactual(Cumulate) from month starting day to present day(system date).
    shipmentforecast(day) and shipmentactual(day) comes from cube, based on that i created shipmentforecast(cumulate) and shipmentactual(cumulate) using new selection and in properties i selected cumaulte, apply to the result, cumulate along rows.
    while cumulating, shipmentactual(cumulate) is showing corect cumulate values from month staring day to present day(system day), after present day it showing last cumulate value ( present day value) by default to remaining days.
    Even i am restricted the Actual(cumulate) with a customer exit variable( month starting date to system date ), still it showing last cumulate valye to remaing cells ( after present day to end of the month)
    i should not get this.
    In rows i taken 0calday.
    in columns i taken Key figs which are
    1) shipmentforecast(day)
    2) shipmentactual(day)
    3) shpmentforecast(cumulate)
    4) shipmentactual(cumulate)
    5) gap(cumulative) is calculated as ( NODIM ( 'Actual(Day)' ) <> 0 ) * 'Actual(Day)' - 'Foreseen(Day)' and properties i checked the cumulate.
    in filters i taken as Ocalyear/month which is restricted for current month.
    i mean total reprot has to display for  current month  days.
    and forecast(day) and forecast(cumulate) values has to display for whole month.
    actual(day) and actual(cumulate) values has to display for form starting of the month to the current day(system date)
    Please give me help.
    with regards
    m.rajnikanth reddy

    Hi to all,Arun & gopi
    The report excecute for current month.
    Forecast values have month starting day to ending date.
    Actual values have month starting date to the present day(system date).
    According to client requirement in layout, i have to show shipmentforecast(day) and shipmenforecast(cumulate) from month starting date to ending date and shipmentactual(day) and shipmentactual(Cumulate) from month starting day to present day(system date).
    shipmentforecast(day) and shipmentactual(day) comes from cube, based on that i created shipmentforecast(cumulate) and shipmentactual(cumulate) using new selection and in properties i selected cumaulte, apply to the result, cumulate along rows.
    while cumulating, shipmentactual(cumulate) is showing corect cumulate values from month staring day to present day(system day), after present day it showing last cumulate value ( present day value) by default to remaining days.
    Even i am restricted the Actual(cumulate) with a customer exit variable( month starting date to system date ), still it showing last cumulate valye to remaing cells ( after present day to end of the month)
    i should not get this extra values.
    In rows i taken 0calday.
    in columns i taken Key figs which are
    1) shipmentforecast(day)
    2) shipmentactual(day)
    3) shpmentforecast(cumulate)
    4) shipmentactual(cumulate)
    5) gap(cumulative) is calculated as ( NODIM ( 'Actual(Day)' ) <> 0 ) * 'Actual(Day)' - 'Foreseen(Day)' and properties i checked the cumulate.
    in filters i taken as Ocalyear/month which is restricted for current month.
    i mean total reprot has to display for  current month  days.
    and forecast(day) and forecast(cumulate) values has to display for whole month.
    actual(day) and actual(cumulate) values has to display for form starting of the month to the current day(system date)
    Please give me help.
    with regards
    m.rajnikanth reddy

  • Problems with Non-cumulative Cube

    Dear All,
    I have a cube with non-cumulative key figures. An DSO supply data for that cube.
    The query  on that cube will  gets wrong results sometimes. But after removing all the data from that cube and uploading again from the DSO, the query presents the right result.
    Is there anybody knows why and how to fix it?
    Thanks.
    Bolun

    Hi
    Non-cumulative Cubes to be defined correctly with Inflow and Outflow because it depends on Which option you choose depends on how you want to evaluate the non-cumulative key figure, and also the Marker Update you are dealing with.
    The key figures for non-cumulative value change or for inflows and outflows are normal cumulative key figures that have u2018summationu2019 both as aggregation and exception aggregation.  Generally, Non-cumulative key figures always have summation as standard aggregation.
    http://help.sap.com/saphelp_nw04s/helpdata/en/80/1a6305e07211d2acb80000e829fbfe/frameset.htm
    Hope it helps and clear

  • Air and sqlite problem - cumulating results

    Hi,
    I got problem with sqlite in air.
    The problem is that sqlStmt.getResult().data is gathering data from separate Select statements, when  it should be separate results. As in this example, where I call "select" function once, and AFTER geting it's result I call it again with different query.
    public function select(q:String):void {
    conn.open(dbFile);
    sqlStmt.addEventListener(SQLEvent.RESULT,selectComplete);
    sqlStmt.text = q;
    sqlStmt.execute();
    private function selectComplete(e:SQLEvent):void {
    oSqlReturn = sqlStmt.getResult().data;          //this is where sqlStmt.getResult().data remembers previous results and adds current ones to the array.
    conn.close();                                                  //but here sqlStmt.getResult() is null
    sqlStmt.removeEventListener(SQLEvent.RESULT,selectComplete);
    So  after second Select returns I got sqlStmt.getResult().data with results from the first and the second statement.
    Maybe one of You had some simmilar problem and is able to help me with this.

    Thanks for help. It is recomended to use different instances of SQLStatement. But it wasn't the case.
    I changed to asynchronious connection and I added SQLMode and now it works.
    So instead of
    conn.open(dbFile)
    now I got this:
    conn.openAsync(dbFile,SQLMode.UPDATE);
    So I think that the problem was becouse I was listening to result events of synchronious connection.

Maybe you are looking for

  • Animated GIF as a background image on a C5-00?

    Is there any way to get animated GIFs runnig as a background image on a C5-00? At the moment, it just shows a still picture....

  • Can't log in or buy music

    I have itunes on my laptop and work computer. My laptop works perfectly , itunes runs smoothly, i can get into the store and buy music and even itunes match seems to run fine on there. But when i come to my office pc running windows 7, I cant log in

  • Account Search by Territory ID/Desc

    Hello Experts, I'm facing a couple of issues working with territory management: <1>  I understand that Account Search by territory id & desc are standard delivery from CRM 7.0. However, this is not working in my system. Searching on these fields retu

  • Can't download G450 Audio Driver

    Anyone can tell me another link to download this driver. Because until now I'm still fail to download it from Lenovo Consumer Support website at http://consumersupport.lenovo.com/en/DriversDownloads/drivers_list.aspx?CategoryID=370748 Thanks. Solved!

  • I want to keep the old view theme, how can i do so please? i dont like the new ver.4 !

    Hi, Please, i prefer the old theme of firefox, how can i switch to old Firefox theme? the version of firefox 4 is not comfortable to me ! Why you make update to theme?! this option should be an option to the user if he want change theme, supposed a u