Sum Over Time

Hi,
I'm trying to do something which I would guess is quite a common query, but after scratching my head and perusing the web I am still no closer to a solution.
I am running:
Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 - 64bi
I'm looking to sum up a set of values, taking into account both a parent grouping and start and end dates.
For the parent grouping I am using:
+SUM([value]) over (Partition by [Parent] order by [Parent],[Child])+
And I was hoping to be able to extend this SUM to also handle the start and end dates, so the final output would contain a sum of the values for each different time period.
As an example, using the data below I'm trying to sum up the price of the components of a car over time:
row, product, component, rate, start date, end date
1, car, chassis, 180, 01/01/2000, 31/12/2009
2, car, chassis, 200, 01/01/2010, 01/01/2050
3, car, engine, 100, 01/01/2000, 01/01/2050
Notice there is a change of price for Component 'chassis', so the output I'm looking for is:
row, product, component, rate, start date, end date, sum
1, car, chassis, 180, 01/01/2000, 31/12/2009, 280
2, car, engine, 100, 01/01/2000, 31/12/2009, 280
3, car, chassis, 200, 01/01/2010, 01/01/2050, 300
4, car, engine, 100, 01/01/2010, 01/01/2050, 300
But in reality all I need is:
row, product, start date, end date, sum
1, car, 01/01/2000, 31/12/2009, 280
2, car, 01/01/2010, 01/01/2050, 300
Preferably the query would be in a view rather than a stored procedure, and it needs to be able to handle many 'products', 'components' and start/end dates.
All help most appreciated, and if any more info is required, please let me know.
Thanks,
Julian

Hi Frank,
Thanks for picking up this query, I'll try to explain my points in more detail:
+SUM([value]) over (Partition by [Parent] order by [Parent],[Child])+I don't see columns called value, parent or child in the sample data below.
Is value the same as rate? What are parent and child? In the example:
Product is the parent
Component is the child
Rate is the value
Whenever you have a problem, post CREATE TABLE and INSERT statments for your sample data.CREATE TABLE "REPOSITORY"."PRODUCT_RATES"
(     "PRODUCT" VARCHAR2(255 BYTE),
     "COMPONENT" VARCHAR2(255 BYTE),
     "RATE" NUMBER(9,2),
     "START_DATE" DATE,
     "END_DATE" DATE
) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
TABLESPACE "SHOP_AREA" ;
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('car', 'chassis', 180, to_date('01-01-2000','dd-mm-yyyy'), to_date('31-12-2009','dd-mm-yyyy'))
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('car', 'chassis', 200, to_date('01-01-2010','dd-mm-yyyy'), to_date('01-01-2050','dd-mm-yyyy'))
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('car', 'engine', 100, to_date('01-01-2000','dd-mm-yyyy'), to_date('01-01-2050','dd-mm-yyyy'))
Although the above short scenario highlights my issue, to expand on the example data set:
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('family', 'wife', 500, to_date('01-01-2000','dd-mm-yyyy'), to_date('31-12-2001','dd-mm-yyyy'))
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('family', 'wife', 999, to_date('01-01-2002','dd-mm-yyyy'), to_date('01-01-2050','dd-mm-yyyy'))
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('family', 'baby', 250, to_date('01-01-2000','dd-mm-yyyy'), to_date('31-12-2004','dd-mm-yyyy'))
insert into REPOSITORY.PRODUCT_RATES (PRODUCT, COMPONENT, RATE, START_DATE, END_DATE) values ('family', 'baby', 500, to_date('01-01-2005','dd-mm-yyyy'), to_date('01-01-2050','dd-mm-yyyy'))
Notice there is a change of price for Component 'chassis', so the output I'm looking for is:
row, product, component, rate, start date, end date, sum
1, car, chassis, 180, 01/01/2000, 31/12/2009, 280
2, car, engine, 100, 01/01/2000, 31/12/2009, 280
3, car, chassis, 200, 01/01/2010, 01/01/2050, 300
4, car, engine, 100, 01/01/2010, 01/01/2050, 300Explain how you get 4 rows of output when the table contains only 3 rows. Are you saying that, because some row has end_date=31/12/2009, then any other row that includes that date has to be split into two, with one row ending on 31/12/2009 and the other one beginning on the next day?
Explain, step by step, how you get the values in the desired output, especially the last column.
But in reality all I need is:Sorry, I can;'t understand what you want.
Are you saying that the output above sould be acceptable, but the output below would be even better?
row, product, start date, end date, sum
1, car, 01/01/2000, 31/12/2009, 280
2, car, 01/01/2010, 01/01/2050, 300
Preferably the query would be in a view rather than a stored procedure, and it needs to be able to handle many 'products', 'components' and start/end dates.Include a couple of differtent products in your sample data and results.
I'm not sure what you want, but there's nothing in what you've said so far that makes me think a stored procedure would be needed.The only output I actually require is:
row, product, component, rate, start date, end date, sum
1, car, 01/01/2000, 31/12/2009, 280
2, car, 01/01/2010, 01/01/2050, 300and with the extended data set:
3, family, 750, 01/01/2000, 31/12/2001
4, family, 1249, 01/01/2002, 31/12/2004
5, family, 1499, 01/01/2005, 31/12/2050however, I was thinking that the data set would need to be somehow expanded to get to the above end result, hence why I included the 'middle step' of:
row, product, component, rate, start date, end date, sum
1, car, chassis, 180, 01/01/2000, 31/12/2009, 280
2, car, engine, 100, 01/01/2000, 31/12/2009, 280
3, car, chassis, 200, 01/01/2010, 01/01/2050, 300
4, car, engine, 100, 01/01/2010, 01/01/2050, 300however, this may be irrelevent.
By the way, there's no point in using the same expression in both the PARTITON BY and ORDER BY clauses of the same analytic function call. For example, if you "PARTITION BY parent", then, when "ORDER BY parent, child" is evaluated, rows will only be compared to other rows with the same parent, so they'll all tie for first place in "ORDER BY parent". OK, thanks.
So far I have got to:
select
sum(rate) over (partition by product) as sum,
a.*
from product_rates a
which results in:
SUM     PRODUCT     COMPONENT     RATE     START_DATE     END_DATE
480     car     engine     100     2000-01-01 00:00:00.0     2050-01-01 00:00:00.0
480     car     chassis     200     2010-01-01 00:00:00.0     2050-01-01 00:00:00.0
480     car     chassis     180     2000-01-01 00:00:00.0     2009-12-31 00:00:00.0
2249     family     baby     250     2000-01-01 00:00:00.0     2004-12-31 00:00:00.0
2249     family     wife     999     2002-01-01 00:00:00.0     2050-01-01 00:00:00.0
2249     family     baby     500     2005-01-01 00:00:00.0     2050-01-01 00:00:00.0
2249     family     wife     500     2000-01-01 00:00:00.0     2001-12-31 00:00:00.0
but this shows that all price variations for a component over time are being summed (e.g. car enging 100 + car chassis 200 + car chassis 180 = 480)
Hope that goes someway expaling my query better.
Also, quick query to improve my postings - how do i indent without making text ittallic, and how do you make code a different font?
Thanks again.
Julian

Similar Messages

  • Calculating over time

    Hi I am making up a time sheet calculator (example below), and need help figuring out how to calculate overtime.
    I figured out how to calculate total time for the day ( SUM=(B2-A2)+(D2-C2) )
    and calculating over time is simple if the total time is greater then 8. as in row 2 or 3. ( SUM=(E2-8) )
    My problem comes when Total Time is less then 8hrs, I start getting negative Over Time. as in row 4.
    I know that I need to tell Numbers that if total time is less then 8 Over Time needs to Equal 0. I just don't know how to do that.
    The only Function I know how to use is the SUM function.
    Any help would be greatly appreciated.
    Thanks
    Example
    A
    B
    C
    D
    E
    F
    G
    1
    In
    Out
    In
    Out
    Total Time
    Regular Time
    Over Time
    2
    8.02
    12.99
    13.97
    17.04
    8.04
    8
    0.04
    3
    8
    13
    14
    17
    8
    8
    0
    4
    8.1
    12.94
    14.03
    16.94
    7.75
    8
    -0.25

    Sam,
    OT = MAX(totaltime - 8hours, 0)
    With that expression, Overtime will never go negative.
    Jerry

  • ITunes sync bug causes space on iPod/iPhone to be gradually lost over time

    This topic pertains to iTunes for Windows version 10.1.1 and most likely all prior versions. At the time of this writing 10.1.1 is the latest version.
    I have clearly identified a bug with the procedure iTunes uses specifically to copy Music over to the iPod and iPhone units. A detailed description with steps to reproduce follows, but first the summary: Space is gradually wasted by iTunes erroneously copying certain tracks twice! The 2nd copy is not recorded in the itunesDB file, and space wasted on these duplicate tracks is counted under "Other" in the iTunes capacity screen. It is impossible to ever retrieve this space from the portable device without doing a factory restore on the Summary screen, which of course will also wipe out all your Apps, Videos, Photos, Music, etc at the same time. Hardly an ideal workaround!!
    Details:
    When several tracks are to be copied to the portable device; either an iPod or an iPhone, and I have successfully reproduced this on both an iPod nano 5th Generation and an iPhone 4, sometimes a track is accidentally copied twice while, one of the selected tracks isn't copied at all. The user will notice when this occurs, that during their sync, one of their songs just seems to be missing. Syncing again will then copy the track which was missed during the last sync, but unfortunately, the 2nd copy of the track that was erroneously duplicated remains. The track which is duplicated appears in the hidden folder on your iPod file system as both the AAAA.mp3 filename structure and the <track name>.mp3 file name. Oddly enough, when this bug occurs, the itunesDB does not associate to the AAAA.mp3 like it normally would, but to the <track name>.mp3 and the AAAA.mp3 file is just wasted space on your device which cannot be recovered without manually deleting this file (a task which is impossible on an iPhone without hacking the device).
    It is easy to reproduce this. This is very obvious if you start with an empty, new iPod. Sync a bunch of tracks to your iPod (the more the better), in fact this cannot happen if you only sync 1 track at a time, then check to see if the number of tracks is equal to the number of tracks that should be there. i.e. did the sync seem to just miss 1 or 2 tracks?
    Make sure "Enable disk mode" is checked for your device, and browse to (Drive Letter):\iPod_Control\Music\ and you will eventually find that exact number of files which have actual track names instead of the standard AAAA.mp3 type filename. Next, in iTunes, remove ALL songs and any other forms of audio (such as podcasts), from the device. Your music folder techincally should now be empty, but as you browse through the hidden Music folder in the device, you will stumble upon a couple of files that remain. These are the orphaned files I've been talking about.
    The effect:
    Over time, with repeated additions and removal of songs from one's device, these files accumulate. The iPod owner, none the wiser, will start to wonder why "Other" in the iTunes capacity display is continuing to grow. I was highly suspicious after cleaning out my iPod entirely, that "Other" was still showing 1.6GB!! I browsed through the filesystem wondering why which led me to discover tons of various music files in the music folder which shouldn't have been there (after all, iTunes shows no music stored on this device).
    The Fix:
    Some sort of bug is causing this erroneous duplicate copy to be generated, and then the database to actually reference the erroneous copy instead of the AAAA.mp3 copy. One workaround iTunes could actually build in some sort of enumeration function that scans all of it's internal F## folders in the Music folder looking for these orphaned files, and simply erase them if they are not contained in the itunesDB. Pushing out this type of behavior into a new iTunes release would also fix the problem for all the people who've already racked up GBs of wasted space as that space would suddenly become available again for apps, tracks, and other files.

    Two steps forward - one step back.
    Thanks to insight from others here I enabled disk use and went to [drive letter]/iPod/control/music
    There I saw a long list of folders called F00, F01, F02 etc.
    In my case there were 49 of them with roughly 400 files in each folder.
    The bulk of the files were named ABCD.mp4 down to ZYXW.mp4.
    In each of the fifty folders were, as predicted above, a handful of song files labeled as such - ie borntorun.mp3 or iseered.mp4
    I opened each and every one of the folders, deleted the files with real names and synced the pod.
    On my 120 GB the yellow "other" fell dramatically, down to under 1 GB. Which is under 1% of the total. Not great but acceptable.
    So far, so good.
    Now that I had fresh space I set about adding new songs to the pod.
    Imagine my disappointment when I rechecked the F00 to F49 folders and saw that song name files had crept back in. Not as many, and I was able to delete them quickly and keep "other" under 1 GB. But still. It's like having crab grass or rodents.
    Is there any hint that iTunes might address the underlying cause?
    In the gripping process of deleting four or five files from each folder I noted that some specific files came up again and again. Just for laughs I'm going to delete and re-add those songs in case that helps.

  • Amount of key presses a user makes over time - BPM

    Hi,
    Im working on a small program that needs to get the amount of keypresses a user makes over time.
    Basically its for calcuating the BPM a user is inputting. So a uers taps a beat for 5 seconds and the amount of tap is saved and multiplied by 12 to get the Users BPM.
    So far i have this:
    package Version1;
    import java.awt.*;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.event.KeyEvent;
    import java.awt.event.KeyListener;
    import java.util.Timer;
    import java.util.TimerTask;
    import javax.swing.*;
    public class muTap extends JFrame implements KeyListener, ActionListener {
        JTextArea display;
         * main - the main method
        public static void main(String[] args) {
            javax.swing.SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    theGUI();
         * muTap constructor
        public muTap(String name) {
            super(name);
         * theGUI - creates the gui for muTap
        public static void theGUI() {
            muTap frame = new muTap("muTap");
            frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            //Set up the content pane.
            frame.addComponents();
            //Display the window.
            frame.pack();
            frame.setVisible(true);
         * adComponents - adds gui components to muTap
        public void addComponents() {
            JButton button = new JButton("Start");
            button.addActionListener(this);
            display = new JTextArea();
            display.setEditable(false);
            display.addKeyListener(this);
            JScrollPane scrollPane = new JScrollPane(display);
            scrollPane.setPreferredSize(new Dimension(375, 125));
            getContentPane().add(scrollPane, BorderLayout.PAGE_START);
            getContentPane().add(button, BorderLayout.PAGE_END);
        public void keyTyped(KeyEvent e) {
            //Do Nothing
        /** Handle the key pressed event from the text field. */
        public void keyPressed(KeyEvent e) {
            //TODO call the getBPMfromKboard() method
            taps++;
            System.out.println("Tap: " + taps);
        /** Handle the key released event from the text field. */
        public void keyReleased(KeyEvent e) {
            //Do Nothing
        /** Handle the button click. */
        public void actionPerformed(ActionEvent e) {
            //Do Nothing
            //initialCountdown(3, "Start Tapping Fool");
            countDown(3);
         * countDown - a simple countdown timer for use when getting users input.
         * @param time amount of time to count down from
         * @return      true when timer ends.
        public static int taps;
        public void countDown(final int time) {
            taps = 0;
            final Timer timer = new Timer();
            timer.scheduleAtFixedRate(new TimerTask()
                int i = time;
                public void run()  {
                    i--;
                    String s = Integer.parseInt(i); // error because of this i.
                    display.setText(s);
                    if (i < 0) {
                        timer.cancel();
                        if(time == 3)
                            display.setText("Start Tapping");
                            countDown(5);
                        else if(time == 5)
                            display.setText("Number of taps: " + taps);
                            //System.out.print("Number of taps" +taps);
            }, 0, 1000);
    }But i get errors when i try running it:
    "Exception in thread "Timer-1" java.lang.RuntimeException: Uncompilable source code"
    It doesnt seem to like me parsing int to string here:
    String s = Integer.parseInt(i); Any ideas? or if youve got suggestions on another way to do it it'd be much appreiated.
    Thanks!

    Korvanica wrote:
    It doesnt seem to like me parsing int to string here:
    String s = Integer.parseInt(i);
    Yikes, you've got that bit of code backward, there partner.
    You use Integer.parseInt to parse a String into an int, not the other way around.
    If you want to change an int to a String, do
    String s = String.valueOf(i)or you can use the various formatters out there.

  • I ended up with 3 Apple IDs over time.  How can I get it down to one account?

    I ended up with 3 Apple IDs over time.  When I sink my iPad, some apps won't sync because the app was purchased under a different account? 
    How can I get it down to one account and be able to sync all of my iTunes purchases (apps, music, etc.) on my iPad and iPhone?
    This is driving me crazy!  grrrr.   :-)
    I have .me; .mac and .icloud accounts.
    - Dave
    Running OS X  10.8.5 (Mountain Lion) on iMac, using iPad 4 (64GB) and iPhone 5.

    Thanks.  I was afraid of that.  Darn Apple....we use Apple products because they are elegant and easy to use, why can't apple simplify the ID issues???   :-)
    Thanks for the reply.

  • Is ther a way to speed up a Mac? Mine has gotten slower and slower over time.  When memory comes close to full would that have an effect on performance? Is there a way to determine unused programs/software to remove and free space?

    Is there a way to speed up a Mac (similar to de-fragging on a PC)? Mine has gotten slower and slower over time. 
    When memory/disc comes close to full would that have an effect on performance? How should I determine what programs/software to remove and free space?

    Things You Can Do To Resolve Slow Downs
    If your computer seems to be running slower here are some things you can do:
    Start with visits to:     OS X Maintenance - MacAttorney;
                                      The X Lab: The X-FAQs;
                                      The Safe Mac » Mac Performance Guide;
                                      The Safe Mac » The myth of the dirty Mac;
                                      Mac maintenance Quick Assist.
    Boot into Safe Mode then repair your hard drive and permissions:
    Repair the Hard Drive and Permissions Pre-Lion
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer.
    Repair the Hard Drive - Lion/Mountain Lion/Mavericks
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the Utilites Menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD disk icon and click on the arrow button below.
    When the recovery menu appears select Disk Utility. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported, then click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu. Select Restart from the Apple menu.
    Restart your computer normally and see if this has helped any. Next do some maintenance:
    For situations Disk Utility cannot handle the best third-party utility is 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.
    Note: Alsoft ships DW on a bootable DVD that will startup Macs running Snow Leopard or earlier. It cannot start Macs that came with Lion or later pre-installed, however, DW will work on those models.
    Suggestions for OS X Maintenance
    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 later 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.
    Helpful Links Regarding Malware Protection
    An excellent link to read is Tom Reed's Mac Malware Guide.
    Also, visit The XLab FAQs and read Detecting and avoiding malware and spyware.
    See these Apple articles:
              Mac OS X Snow Leopard and malware detection
              OS X Lion- Protect your Mac from malware
              OS X Mountain Lion- Protect your Mac from malware
              About file quarantine in OS X
    If you require anti-virus protection I recommend using VirusBarrier Express 1.1.6 or Dr.Web Light both from the App Store. They're both free, and since they're from the App Store, they won't destabilize the system. (Thank you to Thomas Reed for these recommendations.)
    Troubleshooting Applications
    I recommend downloading a utility such as TinkerTool System, OnyX, Mavericks Cache Cleaner, or Cocktail that you can use for removing old log files and archives, clearing caches, etc. Corrupted cache, log, or temporary files can cause application or OS X crashes as well as kernel panics.
    If you have Snow Leopard or Leopard, then for similar 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. Applejack does not work with Lion and later.
    Basic Backup
    For some people Time Machine will be more than adequate. Time Machine is part of OS X. There are two components:
    1. A Time Machine preferences panel as part of System Preferences;
    2. A Time Machine application located in the Applications folder. It is
        used to manage backups and to restore backups. Time Machine
        requires a backup drive that is at least twice the capacity of the
        drive being backed up.
    Alternatively, get an external 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):
      1. Carbon Copy Cloner
      2. Get Backup
      3. Deja Vu
      4. SuperDuper!
      5. Synk Pro
      6. Tri-Backup
    Visit The XLab FAQs and read the FAQ on backup and restore.  Also read How to Back Up and Restore Your Files. For help with using Time Machine visit Pondini's Time Machine FAQ for help with all things Time Machine.
    Referenced software can be found at MacUpdate.
    Additional Hints
    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.
    Add more RAM. If your computer has less than 2 GBs of RAM and you are using OS X Leopard or later, then you can do with more RAM. Snow Leopard and Lion work much better with 4 GBs of RAM than their system minimums. The more concurrent applications you tend to use the more RAM you should have.
    Always maintain at least 15 GBs or 10% of your hard drive's capacity as free space, whichever is greater. OS X is frequently accessing your hard drive, so providing adequate free space will keep things from slowing down.
    Check for applications that may be hogging the CPU:
    Pre-Mavericks
    Open Activity Monitor in the Utilities folder.  Select All Processes from the Processes dropdown menu.  Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Mavericks and later
    Open Activity Monitor in the Utilities folder.  Select All Processes from the View menu.  Click on the CPU tab in the toolbar. Click twice on the CPU% column header to display in descending order.  If you find a process using a large amount of CPU time (>=70,) then select the process and click on the Quit icon in the toolbar.  Click on the Force Quit button to kill the process.  See if that helps.  Be sure to note the name of the runaway process so you can track down the cause of the problem.
    Often this problem occurs because of a corrupted cache or preferences file or an attempt to write to a corrupted log file.

  • SSRS line chart showing premium change pct over time

    Hi,
    I have an SSRS report sitting over a cube.  I'm building a Line chart to show premium change over time by producer (there are currently 6 producers).  I have the Producer Name, Quarter/Year, and Premium amt.
    I want to have the premium line trend based on the percentage of change from Quarter to Quarter.  Quarter will be the X-Axis and percentage will be the Y axis.   The premium for the first quarter should start at 100%.  Each premium line for
    the producer should then change up or down based on the change in premium per quarter.  The end result should look something like this:  Can this be done using SSRS?

    Hi,
    I have an SSRS report sitting over a cube.  I'm building a Line chart to show premium change over time by producer (there are currently 6 producers).  I have the Producer Name, Quarter/Year, and Premium amt.
    I want to have the premium line trend based on the percentage of change from Quarter to Quarter.  Quarter will be the X-Axis and percentage will be the Y axis.   The premium for the first quarter should start at 100%.  Each premium line for
    the producer should then change up or down based on the change in premium per quarter.  The end result should look something like this:  Can this be done using SSRS?

  • I have realised over time I have created multiple accounts. I have bought music on my iphone and am not able to locate the account that I made most of my purchases on. I have bank statements on the purchases but don't know how to contact someone to help.

    I have realised over time I have created multiple accounts. I have bought music on my Iphone and am not able to locate the account that I made most of my purchases on. I have bank statements on the purchases but don't know  how to contact someone in Itune to help me.  PLEASE

    I don't have the app adn no expereince with it, but it appears basec on teh app description you may need it installed on your MAC as well to download the files.
    You might find help on the vendors website: http://www.nfinityinc.com/index.html

  • Setup a new Macbook Pro to minimize application slowdowns over time

    Hi,
    I own a dual G5 2.0 tower which has become (over time) extremely slow...it seems I get the spinning beachball all too often, but have plenty of ram and HD space. Even when opening JPEGS.
    I am buying a macbook pro this w/e and was wondering what the best way to setup the new computer because I want to use it as an HD FCP editing station (on location), but from time to time use applications like aquisition and bittorrent which really seem to bog the system down. I assume not using migration assistant, and re-installing from scratch is a good idea.
    Forgive what may be basic questions, but do I setup a partition initially on the internal drive (and have 2 system folders or something similar?) or will simply setting up different users to access only certain applications help? (I assume not).
    Obviously a concern is the laptop drive is small 160GB 7200RPM but I can guess most of the time I will be running a GRAID for the video editing files, and bigger aperture library (I may have a small select library on the internal drive to show clients and friends "on the go")
    I really appreciate any tips or suggestions and hope that my questions make sense. I realize I want the computer to "do it all" but can't afford it to be strictly an editing station, as I'll be selling the G5 to help pay for the macbook pro!
    Much appreciated,
    Brian Broz
    Vancouver, Canada

    Understand that P2P software operates under the premise that you will have many connections to peers. Each network connection requires memory and CPU cycles to operate properly without timing out the connection or slowing down transfers. In fact, the faster the Internet connection and the more peers connected to your P2P application, the more resource intensive the P2P software will be. You will want to either close the P2P application or tweak it's settings so that it uses minimal bandwidth and resources while you are performing other tasks on your MBP. Try Azureus for torrents as it allows you to tweak settings very nicely.
    Partitioning your hard drive will accomplish nothing in this case. Better to invest in an external FW800 drive for the improving performance while video editing or where you need additional storage.

  • SCEP date range reports change over time

    Not really sure how to title this, but here is the scenario. I have altered a canned report to run the first Monday of every month and dump a Word file w/links into a folder. The alteration of this report is simply changing the end date to be -30 from today.
    So I am getting a 30 day report of all computers that were infected. The report runs and looks to be accurate based on alerting I have setup. The problem comes when I take this report and start to drill down into the data using the links in the report. Let's
    say my report shows a virus name with an infection count of 3. I can click on 3 and see a list of PCs that were infected....well not so much. If between the time the PC was infected and the time I look at the report, any of the 3 PCs were cleaned of the infection,
    then they will not show up in the drilldown. So if a single PC was cleaned...the count still shows 3, but clicking on 3 only shows 2 computers now. This pretty much goes for any data on the main page.
    So essentially the report is pretty useless to go back in time and see detailed info on the incidents since the status of every bit of info in that report has changed over time. I am not a SQL person, but I did have one of SQL team look at the database and
    she can't see anywhere that she can pull archived data from. Any idea what direction I can point her in to get the type of reports I am looking for?

    Yes, I know this is an old post, but I’m trying to clean them up. Did you solve this problem, if so what was the solution?
    Garth Jones | My blogs: Enhansoft and
    Old Blog site | Twitter:
    @GarthMJ

  • Skype using High levels of RAM over time

    So recently i've noticed that Skype has been using increased levels of RAM over time.  Before i think 7.1 it sat at a steady 170k or lower but since the recent update, it seems to scale all the way up to nearly using 80% of my RAM after being on for an hour. Is there a reason this happens or is it a memory leak issue?

    Hi,
    I'm having the same issue as you.
    For my situation, with Windows 7 Ultimate 64bit, with 8 GB of RAM  available, Skype use randomly from 400 Mb to 1.5 Gb of Ram slowing down all the PC..
    I have to kill the Skype process for working well.
    My SKYPE version is 7.3.0.101.
    I need to resolve this problem (and, from my point of view, uninstall the newest version and install the older one is not a solution)
    Thanks in advance
    Andrea

  • How to adjust audio duration/speed over time?

    I watched a video on how to adjust video duration/speed over time, using time remapping and keyframes, but it does not seem to affect audio for some reason. Is there a way to adjust the speed/duration of audio over time like you can with video?

    Oh you need to do it in AE? That's... kinda.. unneeded but okay. Thanks!

  • Change of number over time

    is there any standard FM to calculate change of number over time .
    where Z is my number.i have to find change of Z over a time period.
    i.e I have to find dZ.
    Any idea.
    Thanks in advance.
    Message was edited by:
            Maya Vinothini

    Do u mean the differenciation operation??
    if yes try to do this way.
    do 10000 times.
    calculate the change over the dependent variable in small intervals.
    of  independent variable.
    dz = dz+ (d2-d1 )    " accumulate values
    enddo.
    dz = dz/10000.  " divide by the number of times.

  • Illustrator slows down rapidly over time

    Hey,
    since the CC version of Illustrator, the program loses performance quicker than ever over time.
    I have the newest graphics drivers on my ATI and 16GB RAM, i7.
    When i work with symbols, text styles and everything else you need for UI design, I need to restart the program quite often to keep working. Sometimes even clicking on things can take up to 3 seconds to be rendered on screen.
    Why is the newest version of Illustrator slower than the pre-Mercury driven versions?

    Aloof,
    Just to make sure (relevance depending on the previous version), are all the faces of the Verdana and Tahoma fonts installed and enabled/activated through the OS (not font mangement) as TTF (not OTF)?

  • How do i get iPhoto to time phase? (meaning take the same pic pose and show it over time)

    how do i get iPhoto to time phase? (meaning take the same pic pose and show it over time)

    I'm not sure that this is  something that iPhoto does. However, neither is it something I quite understand. What do you mean by "pic pose"?
    Regards
    TD

Maybe you are looking for

  • Transfer Order printing issue

    Hi, log. executioners ) I've faced such an issue while printing TO via standard WM print functionality. TO was created for moving batches which has no SLED maintained in it's master and printed using form LVSTSOLO. SLED was missing in a document. I s

  • X230+1 Wish List Thread

    Hi all! Because it's my birthday, I thought I'd make a wish or two I've been keen to upgrade my X200 for the last couple of years, but the newer generations never quite do it for me. This time I thought the community could offer up some wish lists fo

  • Calculating fields in forms

    Help -- I am tryiing to get certain fields in a form to calculate based on selection of other fields.  The fields to be selected already have values in them.  (The same format I have used for several years, just new set of forms) I get through the po

  • No icon of the photoshop

    After purchasing CC and downloading The Photoshop and The Lightroom, I have only Lightroom icon and no Photoshop icon on the desktop. Where it is?

  • My macbook will not boot past apple loading screen

    Yesterday i turned my computer off before going to class, when i got back i was not able to get past the loading screen. I havent had any problems at all, many people have been saying that their macs start freezing then they have to manually shut dow