Manual Running Total vs Running Total

Morning all,
It is some what strange to me when I try to use a formula to calculate the total jobs and when I try to use Running total to count the same total jobs. Both answers in theory should be the same however they are not. I am wondering where am I going wrong in the manual formula.
If {despatch_summary.job_type}="FSV" then
if {despatch_summary.order_status}<>0 then
{despatch_summary.order_no}
else
0
The above code then gets DistinctCount ({@FSV})
The same method if I use by using Running Total it gives the correct number of jobs.
Running Total
field to summarize : despatch_summary.order_no
Summary Type: DistinctCount
Formula: {despatch_summary.job_type}="FSV" and {despatch_summary.order_status}<>0
Reset: none
The formula gives me 513 where as the same running total gives me 514
Where am I going wrong?
Strangely it is adding 1 to all of my manual running totals (1 is coming from canceled orders).
Many thanks
Regards

Sastry I am adding this formula into the crosstab which is setup by Number of days. So on the column it is number of days and on the summarized field it is this formula.
I chose Group options and clicked on DistinctCount after adding the formula into the summarized field.
I have already tried the formula you have suggested however it doesn't seem to be affecting it.
Apart from that what I have just done is added the Running Totals to the Summarized field which is coming up correctly however now the problem is to get their percentages.
I have used the following code but it doesn't seem to be working.
Whileprintingrecords;
Numbervar g:=Currentfieldvalue;
Numbervar h:={@TotalJobs-CanceledJobs};
Numbervar i:=0;
i:=((g/h)*100);
Numbervar gTot:=gTot+i;
if gTot > 100 then "100.00%"
else
totext(gTot,2)+"%"
I know I am doing it wrong when it comes to percentages. I need to get the percentages off that Running Total (Grand Total).
Am not sure how to acheive that either.
Many thanks
Regards
Jehanzeb

Similar Messages

  • Error Mrp: Total Planning Run stopped due to 25 Terminations of 202 Matls

    Hi
    We are trying to run the Mrp Job I.e  steps (RMMRP00) with variant PLVH_NETCHNG)..
    I have 1 db server and 2 apps servers and it the starts to run for about 2 minutes and then  crashes with the ffg error:
    Total Planning Run stopped due to 25 Terminations (dumps)of 202 Matls.
    Apps Guys  says its a basis issue and i cant see an issue.
    ANy help will be appreciated

    Hi,
    Please check the MRP setting some times we define mrp value upto 3-4 decimal and our setting upto 2 decimal points. If you send error log then that will be helpful for us to see the exact problem in the dump.
    In case you want to send this by mail send [email protected]
    Regards,
    Anil

  • Running Aggregate on grand totals

    Hi,
    We have requirement where user wants to view running aggregate only on the grand total,when we use running aggregate in OBIEE 11g it calculates running totals each row, however we want the running totals on grand totals.
    Another issue is can we show grand total row and running total on the grand total in the same report like the following report.
    This is how the report should look however when we apply running aggregate it is calculating the totals for all the cells in OBIEE, Could any one let us know how we can achieve this.
    Current report
    Branch        W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total  100   11        16       51
    Expected report with Running aggregate on grand total
    Branch            W1     w2     w3      w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    Grand Total 100 11 16 51
    Running Total   100    111    127     178
    ---------------------------------------------------------

    So having this:
    Branch W1 w2 w3 w4
    Abc 10 1 10 11
    MNC 20 2 5 10
    XYZ 30 3 1 20
    QCW 40 5 0 10
    To achieve what you want you should add a union on the analysis where you set the Branch Column to 'Running Total'.
    In the metric you just have to do a RSUM(facts) and they will be aggregated as an RSUM by Week.
    Let me know if it works.

  • Why can't i empty my trash bin? it prompts me to dele ''all locked items'' or ''unlocked items''...when i click delete ''all''...it runs up to a total of approx 29000 items, yet it does not remove it securely or at all!

    why can't i empty my trash bin? it prompts me to dele ''all locked items'' or ''unlocked items''...when i click delete ''all''...it runs up to a total of approx 29000 items, yet it does not remove it securely or at all! I am running OS X YOSEMITE

    Trash – Empty When File is Locked or in Use
    Try holding down the option button while trying to delete the Trash. If that doesn’t work, here is some more information.
    Trash FAQ          
    Trash Permission Error
    Trash Permission Error (2)
    Trash Permission Error (3)

  • HT1848 I'm trying to sync my ipad mini with itunes and i get an error message '' there is no free space on your ipad mini''..... any ideas on how to empty some space on ipad mini manually? currently i run on 6.0.2

    I'm trying to sync my ipad mini with itunes and i get an error message '' there is no free space on your ipad mini''..... any ideas on how to empty some space on ipad mini manually? currently i run on 6.0.2

    iOS device backups are stored in your iTunes library.
    Move your iTunes library to an external drive.

  • Report-Total Discount of total product for perticular time

    Hi Experts.,
    my client gave a requirement ,he wants a report  on Total Discount of total product sold by giving item and material group. The report is unavailable in Stanadard hence have to develop.
    i need some help in creating this Report,
    With the development of this screen,  user can view Total Discount given on total product sold.
    The report should display the Item, Material group and Date
    Selection fields
    1-Material -  FACOM-MATNR
    2- material group VBRP-MATKL
    3- Item-  VBRP-POSNR
    4-document date-- From  VBRK-FKDAT  , To FACOM-FKDAT_BIS
    Discount from total sales will be taken from total bill amount for the perticular period
    The question is which field and table i will fetch for TOTAL DISCOUNT ,from the total sales for perticular period.
    please  suggest me ASAP
    i am waiting for the response
    Thanks,

    Hi
    I suggest to do with an ABAPer. It's been a long time since the last time that I did it. This is an idea, thinking in performance.
    1. Add a zz-field (ZZDICOUNT for instance) in table VBAP with an append. See Note 155012 - Further subtotal fields in pricing to do it if you don't want to use a field between KZWI1-6. Use the field ZZWI7 for instance.
    2. According to note 350068, do the steps that it suggests using field ZZWI7 instead KDMAT, ie, in step 4 you must do in include V05TZZMO. I think that perhaps you would add KNUMV (as ZZKNUMV) to orders before modification (be careful with performance)
    ***INCLUDE V05TZZMO .
    * This form is called in the include LV05TFMO.
    FORM MOVE_USERFIELDS USING ZP.
      CASE ZP.
        WHEN 'VBAK'.
    *     header
    *     MOVE LVBAK-XXXXX TO LVBMTV-ZZXXXXX.
          MOVE lvbak-knumv TO lvbmtv-zzknumv.
        WHEN 'VBAP'.
    *     item
         MOVE LVBAP-ZZWI7 TO LVBMTV-ZZWI7.
    *    for older documents (check it with your ABAPer, don't copy it and run in production without checking)
         IF lvbap-zzwi7 IS INITIAL.         "see if it's possible to check by date too
            SELECT SINGLE kbetr INTO zzwi7 FROM konv
               WHERE knumv = lvbmtv-zzkumv            "check that it's populated
               AND     kposn  = lvbmtv-posnr
               AND      ...........          "decide the type of select (GROUP BY,
                                               "INTO TABLE, ie: with an internal table
         ENDIF.
        WHEN 'VBEP'.
    *     schedule line
    *     MOVE LVBEP-XXXXX TO LVBMTV-ZZXXXXX.
      ENDCASE.
    ENDFORM.
    Remember that you must register the object in SSCR.
    3. Remember that it will work from this moment. Before this date with this coding doesn't work because the coding to catch data from KONV I'm not sure that it will work. So, perhaps the ABAP report will be the better solution.
    Moreover, take your time, look for help from an ABAPer if you don't know enough ABAP and of coure, check it and check it newly.
    I hope this helps you
    Regards
    Eduardo
    Edited by: E_Hinojosa on Jul 6, 2011 1:36 PM

  • ERROR while running attribute change run.

    hi sap xperts,
    I got an error while running the attribute change run in a process chain.
    At first i got an error "The action is locked by a change run"
    SO I DID THE FOLLOWING STEPS.
    1.RUN ATTRIB CHANGE RUN MANUALLY  IT RUN SUCCESSFULLY,but the process chain is still red.
    Q1.Is there any way to link the manually run attrib chnage to process chain so that the process chain becomes Green?
    2.SM12 - realease the locks and right click the pc and repeat.It didn't work
    Q1.While removing the locks what should we remove,bcoz i removed all the locks?
    3.I again removed the lock and repeat the process but still i didn't work.Now its chowing "SQL ERROR OCCURED WHILE ACCESSING"
    So the Process chain got stuck,Can any body help me to run the attrib chnage run.
    If possible can anybody send the Process chain monitoring documents to my email id:
      <email ID removed>
    please.thanks in advance,i know how to say thanks in sdn.

    At any point in time only one attribute change run can run in the system. The other ACR's will fail due to locks. In your case, to set the process chain to green, try the following steps.
    Open the messages of a failed step by right clicking on it and selecting 'display messages'.
    In the opened popup click on the tab 'Chain'.
    In a parallel session goto transaction se16 for table rspcprocesslog and display the entries with the following selections:
    1. copy the variant from the popup to the variante of table rspcprocesslog
    2. copy the instance from the popup to the instance of table rspcprocesslog
    3. copy the start date from the popup to the batchdate of table rspcprocesslog
    Press F8 to display the entries of table rspcprocesslog.
    Now open another session and goto transaction se37. Enter RSPC_PROCESS_FINISH as the name of the function module and run the fm in test mode.
    Now copy the entries of table rspcprocesslog to the input parameters of the function module like described as follows:
    1. rspcprocesslog-log_id -> i_logid
    2. rspcprocesslog-type -> i_type
    3. rspcprocesslog-variante -> i_variant
    4. rspcprocesslog-instance -> i_instance
    5. enter 'G' for parameter i_state (sets the status to green).
    Now press F8 to run the fm.
    The above steps will help you continue with the rest of the process chain (thus avoiding manual runs) but the failed step might still remain red. Hope this helps.

  • Error when run Depreciation Posting Run AFAB

    Hi,
    I found error when run Depreciation Posting Run for period 7 2007.
    FYI. I had run Unplanned Depreciation (TCode: ABAA) with document date 31.10.2007 and posting date 31.10.2007, trans. type 640. After that, i want to run Depreciation Posting Run (TCode: AFAB) with fiscal year: 2008, posting period: 7, reason for posting run: repeat. Select on Test Run. Then i found error message as below. 
    Error Message:
    Documents manually posted within dep.doc.number range
    Message no. AA728
    Diagnosis
    In the number range interval for the document type for posting depreciation, a document  has been posted which was not created within the framework of depreciation posting. The last document posted by depreciation posting was assigned the number .
    Procedure
    Contact your Systems Specialist. When changing the number range interval for the document type in depreciation posting, you have to specify a new interval in which no documents exist. Using organizational measures, you can guarantee that there are no documents apart from those created by depreciation posting in this number range.
    Can any one help how to solve this issue?

    Hi Paul,
    Now I go to TCode: FBN1 - Accounting Document Number Ranges, then i want to change the range for year 2008.
    No Year  From No          To No           Current No          Ext
    03  2001   0300000000   0399999999   -                          /
    03  2002   0300000000   0399999999   -                          /
    03  2003   0300000000   0399999999   -                          /
    03  2004   0300000000   0399999999   -                          /
    03  2005   0300000000   0399999999   -                          /
    03  2006   0300000000   0399999999   -                          /
    03  2007   0300000000   0399999999   -                          /
    03  2008   0300000000   0399999999   -                          /
    03  2009   0300000000   0399999999   -                          /
    Referring back to Asset Accounting, the Reference Document: 19.
    Do it mean that my FI doc. no is 0300000019 ? I bit confuse on this..
    Can you guide me more details on it?
    Thanks in advance.
    Edited by: Nur Aman Abdul Manap on Apr 15, 2009 2:09 AM

  • Short dump when I do total or sub total in the ALV report

    Hi,
    When I do total or sub-total on the currency field in the ALV report, it'll give a short dump like
    " The current application program detected a situation which really
    should not occur. Therefore, a termination with a short dump was
    triggered on purpose by the key word MESSAGE (type X)".
       Short text of error message:
       Technical information about the message:
       Message classe...... "0K"
       Number.............. 000
       Variable 1.......... " "
       Variable 2.......... " "
       Variable 3.......... " "
       Variable 4.......... " "
       Variable 3.......... " "
       Variable 4.......... " "
    Trigger Location of Runtime Error
        Program                                 SAPLSLVC
        Include                                 LSLVCF36
        Row                                     2,726
        Module type                             (FORM)
        Module Name                             FILL_DATA_TABLE
    sometime when I do the page down on the ALV report, the same short dump is coming.
    Can anyone help me out.
    Thanks
    Selva

    Hi,
    I'm getting this short dump in the standard program.
    I'm getting ALV report display perfectly. the problem is, when I do total or subtotal on the currency fields.
    2704
    2705 ************************************
    2706 * Column per Fieldcat Entry
    2707 ************************************
    2708         ls_lvc_data-value = space.
    2709         clear ls_lvc_data-style.
    2710         loop at it_fcat_local assigning <ls_fcat>
    2711                 where tech ne 'X' and no_out ne 'X'.
    2712           if l_invisible eq 'X'.
    2713             clear l_invisible.
    2714             if <ls_fcat>-do_sum is initial.
    2715               continue.
    2716             else.
    2717               clear ls_lvc_data-col_pos.
    2718             endif.
    2719           endif.
    2720
    2721           add 1 to ls_lvc_data-col_pos.
    2722
    2723           assign component <ls_fcat>-fieldname
    2724                            of structure <ls_data> to <l_field_value>.
    2725           if sy-subrc ne 0.
    >>>>>             message x000(0k).
    2727           endif.
    2728
    in this standard program, I'm getting the dump. the line is mentioned above in the code.

  • ORA-3113 while running export (first run ok, second run fails)

    Hi,
    I'm running 10g (10.1.0.2.0) on gentoo Linux.
    After a restart of the database I can do an EXP for any user without errors. But when I repeat the same command after the export I get the following error:
    . . exporting table WEB_SESSION_DATA 0 rows exported
    . exporting synonyms
    EXP-00008: ORACLE error 3113 encountered
    ORA-03113: end-of-file on communication channel
    EXP-00000: Export terminated unsuccessfully
    It's always the same error on the same task (exporting synonyms) but always just for the second and any later export, while the first one is ok.
    I read through some forums and found, that ORA-3113 is a standard error which just hides the real error. So I look into the trace files and found:
    ksedmp: internal or fatal error
    ORA-07445: exception encountered: core dump [jox_lookup_known_object()+413] [SIGSEGV] [Address not mapped to object] [0x1AD14034] [] []
    Current SQL statement for this session:
    SELECT SYNNAM, DBMS_JAVA.LONGNAME(SYNNAM), DBMS_JAVA.LONGNAME(SYNTAB), TABOWN, TABNODE, PUBLIC$, SYNOWN, SYNOWNID, TABOWNID, SYNOBJNO FROM SYS.EXU9SYN WHERE SYNOWNID = :1 ORDER BY SYNTIME
    If I call this SQL from sqlplus I get the same ORA-3113, so this seems to be the cause for the export failure.
    When I remove the DBMS_JAVA.LONGNAME calls from the statement, it runs fine. It also runs fine, when I add a "and 1=0" to the EXU9SYN view. But this will not really solve the problem, because then all synonyms don't get exported.
    I also checked all the synonyms and they are valid, the referenced tables exist and can be queried.
    Because we use JavaStoredProcedures I cannot remove the Java Features in Oracle. But I reinstalled it (rmjvm.sql and initjvm.sql) but this did not help.
    Does anyone have an idea what's happening here?
    Especially the "first run ok, second run fails" seems to be very strange, because DB objects including DBMS_JAVA should be ok, if the first export can be done. So what changes in the database during or after the first run?

    Maybe description for bug 3953108 (ORA-7445 AND ORA-3113 DURING DIRECT FULL DATABASE EXPORT OF PUBLIC SYNONYMS) is helpful.
    Werner

  • I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?

    I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?
    I have a 250 gig drive and try to keep at least 100 gigs unused at all times, 4 GB 667 MHz DDR2 SDRAM memory, back up with Time Machine and CrashPlan, and have OS X 10.7.3.
    This was my first Mac since an old Apple II GS.  After that I used PC's and got really good at reformatting, replacing drives, reinstalling, defragging, resolving software conflicts, etc.  Since switching back to Macs (five in my extended family now), I haven't had to do any of those things. So, although, the cost is three times as much, the aggrevation has been ten times less.
    I'm retired and living on a fixed income and would therefore like to keep this computer running as opposed to constatntly upgrading.
    That said, any tips?
    Thanks
    It does have a crack on the left of the screen case about 3/4'' up from the bottom.  I've posted that as another question.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Adding more RAM, if feasible, and a new, faster hard drive may also help pep it up a little.

  • F110 run the payment run directly without running the proposal run first

    Hello to you all,
    Does any one know I do I block the option to run the payment run directly without running the proposal run first?
    Thanks in advance,
    Yoav

    Hi
    First delete the payment run output by the following :
    Goto Edit on menu bar --> Payment --> Delete Output
    then run the proposal run again and after that process payment run.

  • Get Total DB size , Total DB free space , Total Data & Log File Sizes and Total Data & Log File free Sizes from a list of server

    how to get SQL server Total DB size , Total DB free space , Total Data  & Log File Sizes and Total Data  & Log File free Sizes from a list of server 

    Hi Shivanq,
    To get a list of databases, their sizes and the space available in each on the local SQL instance.
    dir SQLSERVER:\SQL\localhost\default\databases | Select Name, Size, SpaceAvailable | ft -auto
    This article is also helpful for you to get DB and Log File size information:
    Checking Database Space With PowerShell
    I hope this helps.

  • Am running Firefox 7.0.1 now. Normal memory usage is 157mb but when running Facebook (not running apps nor games), it goes up to 553mb Why?

    Am running Firefox 7.0.1 now. Normal memory usage is 157mb but when running Facebook (not running apps nor games), it goes up to 553mb Why?

    I encountered the same type of problem. Firefox running terribly slowly and slowing down my entire machine (Core i5 with 256GB SSD). Searching the forums, I found a couple of things about troubleshooting performance issues, one of which was to use '''hardware acceleration''', that is on by default. It was turned on on my PC, '''so I tried deactivating it, and it worked!'''
    So doing the exact opposite as Mozilla support said solved the problem. It is really a pain now to work with Firefox. I'm using it because I have no choice, but I'd recommend IE and Chrome over Firefox... Whatever, the market will decide once Firefox has become to crappy...

  • Remove the word "Total" in Row Totals in Pivot Tables

    Hi,
    Is it possible to remove the word "Total" that appears in Row Totals in Pivot Tables?
    Eg. If there are 2 Dimension Columns -- Year and Month .... and if we do row totals on Year
    The total appears as *'2008 Total'* or *'2009 Total'* etc. i.e. Each of the Values is followed by the word 'Total'.
    However, i would like the totals to display only the values '2008' or '2009' without the word 'Total'.
    Is this possible in OBIEE 11.1.1.5.0 ?
    Thanks,
    Ab

    Hi ,
    Goto Total -> Format label and type in @.This will remove the word"Total". I have tested this in 10g, try this and let me know if it works in 11g.
    Rgds,
    Dpka

Maybe you are looking for

  • How do I  connect my digital video camera to my MacBook Pro?

    I just bought a new MacBook Pro and I would like to do some video work.  The only problem is there is nowhere to put my DV cord.  Any ideas?

  • Can't get ibooks onto new macbook pro

    Hi I got myself a new macbook pro set it up and all great ibooks came up right away but my sister in law got the same macbook pro as i but i cannot get ibooks onto it, i have been to the app store but its not there i really cannot remember howi got m

  • Use of #APP_IMAGES# in Validation Error Message

    One of the servers I use upgraded to 4.0. It happens that I use images in some of my error messages on validations. I used the #APP_IMAGES# syntax previously, but it doesn't seem to work in 4.0. I can switch to &APP_IMAGES. so it's not a big deal, bu

  • "Full Width" Slideshow with overflow hidden?

    Hello, I am using the slideshow widget with a huge width  at the top of my page, underneath follows the content with 842px width. Side width and column width is also set to 842px. The Site aligns horizontally nicely. I want the slideshow to be cut of

  • PS1 String behaving differently - how to get only "/"?

    Hi there, let me first start with the 4 lines of code I use for my PS1 string (in bash) boBlack="\[\033[1;30m\]" boGreen="\[\033[1;32m\]" boCyanOnBlack="\[\033[1;36;40m\]" export PS1="$boCyanOnBlack"'${PWD%*/}'"$boBlack/$boGreen" Now what does this d