2008R2 - cumulative based on count and additional subquery where CASE SUM

Hi;
I have two queries where I'm struggling to get a cumulative and sum due to use of counts in the initial query;
First up cumulative where I suspect a cursor will be required.
SELECT TOP (100) PERCENT DATEPART(week, time_stamp) AS Week, COUNT(DISTINCT [user]) AS UnqCnt
FROM dbo.vw_ctrx_archive_ica_roundtrip_perf
WHERE (time_stamp BETWEEN GETDATE() - 120 AND GETDATE()) AND (dept_path LIKE 'All\XenApp Farms\AppName\%')
GROUP BY DATEPART(week, time_stamp)
ORDER BY week
This produces a unique count of users grouped by week number, However What I want to show is a cumulative total as each week goes by;
Week 1 100 unique users
By end of Week 2
220 unique users
By end of week 3 
250 unique users and so forth.
In this instance this level of reporting is only required for the next 10 - 12 weeks so I'm happy to go inefficient ala in the vain of;
SELECT TOP (100) PERCENT Week, UnqCnt,
(SELECT SUM(UnqCnt) AS Expr1
FROM dbo.vw_someview AS t2
WHERE (Week <= t1.Week)) AS RunningT
FROM dbo.vw_someview AS t1
ORDER BY Week
(The above isn't what I need as it simply totals each week as opposed to showing unique to date, but less complexity works for me!)
EDIT - Examples of source data and desired output. I've trimmed down to show just the required data.
Current input;
Current output;
What I actually want is a cumulative unique count by week to date, not per week.
So the next query is based on a count of unique users plus a CASE SUM showing split between two regions (UK and US). However there is a mismatch with the unique user count total due to potential multiple records existing for a user which is included in the
CASE SUMs. Again I know a subquery is necessary but I'm struggling to work it in conjunction with the CASE SUMS.
SELECT        TOP (100) PERCENT time_stamp, CONVERT(varchar(2), DATEADD(day, 0, time_stamp), 105) + '-' + CONVERT(varchar(2), DATEADD(hh, 0, time_stamp), 108) 
                         + ':00' AS Time, COUNT(DISTINCT [user]) AS Combined, 
                         SUM(CASE WHEN dbo.vw_ctrx_archive_session_perf.dept_path LIKE 'All\XenApp Farms\someservers\UK%' THEN 1 ELSE 0 END) AS UK, 
                         SUM(CASE WHEN dbo.vw_ctrx_archive_session_perf.dept_path LIKE 'All\XenApp Farms\someservers\US%' THEN 1 ELSE 0 END) AS US
FROM            dbo.vw_ctrx_archive_session_perf
WHERE        (dept_path LIKE 'All\XenApp Farms\someservers\%')
GROUP BY time_stamp, CONVERT(varchar(2), DATEADD(hh, 0, time_stamp), 108)
ORDER BY time_stamp
EDIT - Examples of source data and desired output. I've trimmed down to show just the required data.
Current input;
Current output;
As you can see the mismatch between Combined and region due to no logic with the CASE SUMS to only perform that SUM for a unique user.
Any help or pointers for either question would be very much appreciated.
Thanks, Paul.

The first query the cte returns one row for each customer who has a order into the @MinWeekCounts table variable.  With that customer id, the cte returns the first week that customer has an order.  So if customer number 1 has two orders in week
3, 5 orders in week 7 and one order in week 9, the cte will return one row for customer number 1 with the week set to 3.
Then the result of the cte (one row for each customer with the week that customer first had an order) is grouped by week and we get a count of the customers for that week.  So now we have for each week the count of the customers whose first order was
in that week.  So for week 1 we have the count of the customers who ordered in week 1.  For week 2, we have the count of the customers who ordered in week 2, but did not order in week 1.  For week 3, we have the count of the customers who ordered
in week 3, but did not order in either week 1 or week 2.  The query then inserts that result into the @MinWeeksCounts table variable.
So now we have a count for each week of the number of customers whose first order was in that week.  So the result we want is just the running total of those counts.  For example, for week three, you want the number of customers who ordered ordered
in week 3 or earlier.  That's just the number of customers who first ordered in week 1 + the number of customers who first ordered in week 2 plus the number of customers who first ordered in week 3.  So the running total for each week will give
you the result you want.  So we write the final query to give you the result by doing a running total of each week's count of the customers who first ordered in each week.
Tom

Similar Messages

  • Non cumulative key figure is not getting filled based on inflow and outflow

    hi,
    i have a non cumulative key figure which is having inflow and outflow.
    i have these three info objects in dso.
    as i know non *** key figure is calculated based on inflow and outflow.
    i am getting values for inflow and outflow so non *** should be calculated based on this values.
    <b>but the collumn is blank in the dso</b>
    in that non *** keyfigure i have added two info objects in inflow and outflow.
    is there any other setting i nedd to do?
    please sugest me.
    its urgent

    Hi Venkat,
    Have you followed the process right. First Filling the Initial Stocks and then Inflow and Out Flow and then Delta. If you follow the process correctly then you can able to view the Data in the Reporting Level.
    For Initial Stocks the Marker Should be set. For Inflow and Outflow the Marker should not be set.
    Hope This Helps,
    Regards,
    rik

  • Inspection characteristics based on material and goup counter

    Hi,
        Do we have some function module which would give us inspection characteristics based on material and group counter. I have gone through many posts in this regard but find answers to get inspection characteristics based on inspection lot number.
    I do not want to get into quality at all. Is there a FM to get the inspection characteristics based on material and group counter or any related tables would be of gr8 help. T-code QP03 takes material and group counter as input and displays the inspection characteristics. Any input in this regard would be of great help.

    Hi,
    Use tables MMAPL , MAPL and PLMK as per your requirement.
    Thanks,
    Vijay

  • Count and limit the accesses to a browser based swf

    I have a swf file imbedded in a HTML. Acceess to the file are controlled by passwords, stored in a XML-file
    I want to limit the number of accesses for each visitor to let us say 10 visits. How do I count (and store) the number of logons for each visitor?
    SharedObject works only at clienside, but iI want i serverside. The "easy" way would be to save the number of accesses for each visitor in a text-file but Flash and save... I hvave tried ExternalInterface calls, PHP etc and etc, but cant find a way that works. This is the last obstacle in a huge project. Please help.

    If using a MySQL database is an option, here's a link to a tutorial that deals with all the various aspects of that.
    http://www.gotoandlearn.com/play?id=20

  • 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....

  • Extract Data Based on Year and Month

    My clients have taken an Oracle DB TimeStamp field and
    downloaded it to Access in a TEXT field format.
    Sample data: 20060401001348CS
    All I am trying to do is extract data based on year and
    month. I have equal to 200604*, 200604%. Have also tried to used
    LIKE.
    Nothing works. It just can't be that dificult. Please help.
    Thanks

    After breaking my inquiry down into bits and pieces the
    problem is not just the LIKE, it is a combination of events. The
    entire picture is this:
    User selects Year from a drop down (2006), then selects month
    from drop down (04). I then build a variable called
    EventReport Date with the statement <cfset EventReportDate
    = Session.InquiryYear & Session.InquiryMonth & "%">
    It correctly displays as 200604% - When used by itself as
    below, it works just fine.
    WORKS
    <cquery name="GetEventCount" datasource="CountyDB">
    Select count(AD_ID) as EventCount, TYCOD, TYP_ENG, CURENT,
    CDTS
    FROM aeven
    WHERE CDTS LIKE '#EventReportDate#'
    Group By AG_ID, TYCOD, TYP_ENG, CURENT, CDTS
    </cfquery>
    WORKS (additional WHERE criteria)
    <cquery name="GetEventCount" datasource="CountyDB">
    Select count(AD_ID) as EventCount, TYCOD, TYP_ENG, CURENT,
    CDTS
    FROM aeven
    WHERE ((AG_ID = '#Session.InquiryAgencyCode#') AND (CURENT =
    'T'))
    Group By AG_ID, TYCOD, TYP_ENG, CURENT, CDTS
    </cfquery>
    FAILS **** There is something wrong with the combination of
    the WHERE clause items
    <cquery name="GetEventCount" datasource="CountyDB">
    Select count(AD_ID) as EventCount, TYCOD, TYP_ENG, CURENT,
    CDTS
    FROM aeven
    WHERE ((AG_ID = '#Session.InquiryAgencyCode#') AND (CURENT =
    'T')
    AND (CDTS LIKE '#EventReportDate#'))
    Group By AG_ID, TYCOD, TYP_ENG, CURENT, CDTS
    </cfquery>
    NOTE: There is not an error message, it just comes back with
    zero records.
    MORE LOST THAN EVER! Thanks for your help
    Ron

  • How to filter a report based on count?

    Here is my scenario: We would like to report activities on a server if there are multiple date in a month. Here is an example:
    Server Date Activity
    Server1 7/1/09 Hardware maintenance
    Server2 7/1/09 Hardware maintenance
    Server2 7/14/09 Software patching
    Server2 7/14/09 Server reboot
    Server3 7/5/09 Hardware maintenance
    Server3 7/5/09 Server reboot
    The report will show the following
    Server2 7/1/09 Hardware maintenance
    Server2 7/14/09 Software patching
    Server2 7/14/09 Server reboot
    Server1 and Server3 will not show up since there is only one date in July (even though there are two activities for Server3).
    I thought of using a report as a filter to a second report. In the first report, find a way to determine which server to report on. But how would I finter the 1st report based on count as the logic stated above?

    Hi Max
    Our requirement is to see all the activities for a server in a month ONLY IF there are activities on DIFFERENT dates. So using my example, server2 has activties on 7/1 and 7/14. Then we want to see all the activities for server2 in that month. Server3 has two activities but both activities are on the same date. So we don't want to see server3.
    Counting by server will not work because that will include server3 in my example.
    What I really want is to be able to count unique occurrences of dates per server in a month. And if this count is > 1, then this server will be in the report.
    I used a pivot table to count the unique occurrences of dates by server by month. So using my example, I have this result:
    Server1-July: 1
    Server2-July: 2
    Server3-July 1
    What I really want (conceptually) is to be able to filter this pivot table by the matrix column which is the count. I just couldn't figure out how to do that :). Then I thought I could use this report (with pivot table result) as a filter into another report.
    Hope you have some idea....:)
    Thanks

  • Difference of value of a dimension based on min and max

    Database: Oracle 10g
    BO-BOXIr3
    Let me explain the exact problem again.
    As per the below code, I have the data in this format in my table:
    Code:
    Date              Site ID     KWH
    1/2/2009 00:00     IN-1     22
    1/2/2009 01:00     IN-1     28
    1/3/2009 03:00     IN-2     25
    1/3/2009 04:00     IN-2     46
    1/4/2009 00:00     IN-3     28
    1/4/2009 10:00     IN-3     34
    1/5/2009 08:00     IN-4     31
    1/5/2009 09:00     IN-4     55
    1/5/2009 11:00     IN-4     77
    1/6/2009 00:00     IN-5     34
    Now want to build a report with following columns:
    Site     Count     KWH
    IN-1     2     6 (ex.-28-22)
    IN-2     2     21
    IN-3     2     6
    IN-4     3     46 (ex.-77-31)
    IN-5     2     34
    SITE- distinct site name.
    COUNT-count is number of repetitions of site id between min and max date.
    KWH -(Delta between the min and max date)
    To get the above result I have created 3 report from different queries since not able to get these al in a single report viz Count, Max Value and Min value. Well I have all these 3 reports or table on a single page.
    Count-this report will give the count between the dates
    Max Value-this report will give me the values of kwh for max dates for each site id
    Min Value-this report will give me the values of kwh for min dates for each site id
    Now want to create a single report based on these 3 reports which contains the column
    Site|Count|KWH
    IS IT POSSIBLE?
    Or
    Is it possible to build such report in a single one with all the required column which I mentioned?
    The variables which I created to get the max & min dates,
    Mx_dt= =Max([Query 2].[Hourly]) In ([Query 2].[SITE_ID])
    Mn_dt= =Min([Query 3 (12)].[Hourly]) In ([Query 3 (12)].[SITE_ID])
    For filtering on report used following variables:
    if_st_mn=If([mn_dt])=[Hourly] Then "ok" Else "no"
    if_st_mx =If([mx_dt])=[Hourly] Then "ok" Else "no"
    will filter on "ok" to get the max and min date values.
    rest of the variable in the snap are not usable.

    Yes, you can do it in one report.
    I created a sample report from efashion:
    Year | Lines | Sales Revenue
    2001 | Accessories | $250
    2003 | Accessories | $550
    2001 | City Skirts | $1050
    2003 | City Skirts | $1150...........
    Create 2 variables 1) Count and 2) Difference:
    1) Count  as formula - =Count([Lines]) In Report
    2) Difference as formula - =Sum([Sales revenue]) Where (Max([Year]) In Report = [Year]) - Sum([Sales revenue]) Where (Min([Year]) In Report = [Year])
    You can replace the formula with your report variables. Then just drag Site ID, Count and Difference variables to your report.
    Thanks
    Jai

  • Can I get my music collection (play counts and playlists inc.) from my iPad to my PC?

    I had a problem with iTunes where I couldn't add songs to the library because I didn't have sufficient permissions to edit my iTunes library (even though I did). After a few days of tweaking administrator permissions and the like, I got really annoyed and tried re-installing iTunes to see if it would make it go away. Whilst the iTunes64Setup.exe file was downloading, I was fiddling with the .itl and .xml files in my iTunes folder and when I re-installed iTunes I had lost all my play counts and playlists. When iTunes opened, I assumed it must have overwritten the two files because when I looked at them in Windows Explorer they were both a lot smaller in size.
    Obviously, I didn't sync my iPad or iPhone after this had happened, so I still have the playlists and play counts stored on them. Is there any way I can:
    a) Recover a previous version of the .xml and .itl files on my laptop and use them to restore my plays?
    or
    b) Use iTunes Match to restore them onto my laptop?
    I'm not sure about b). When you subscribe to Match, does it analyze your current library and then save it to the Cloud so you can redownload it?
    I'm going to buy the new iPhone when it is released in the next couple of months so I'm willing to jailbreak my iPhone 4 if need be.
    Thanks for any help.

    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup!
    Or see Recover your iTunes library from your iPod or iOS device.
    tt2

  • Count and Sum running total

    Can i sum and couunt running total in formula?.
    Please let me know.

    Hey, we can do count and sum functions in Running total.
    These functions are available in crystal reports for  summary fields.
    We can create  the running total based on the type of summary like Sum, count, max, min, distinct count, etc.
    We can do Evaluation for each record or on group or on each field  and also be done by writing a formula.
    We can  do count or sum by manual running total by writing a formula in the formula workshop.
    Based on our requirement we can use both functionalities.
    Please let me know  if you have any queries.
    Regards,
    Naveen.

  • Disable 'Show Details' and 'Additional Actions' on performance point charts

    Hi guys,
    Is there way of disabling 'Show Details' and 'Additional Actions' on PPS dashboard? I am on Sharepoint 2010 and SQL 2008 R2 SSAS. I cannot delete the actions from cube because that would mean they are unavailable in Excel as well.
    many thanks
    Please mark posts as answer or helpful when they are.

    This is possible within PerformancePoint 2010. Filters can be cascading. There is one restriction that might affect you, and that is the cascade only works on the preceding level. For example, let's say you have 4 filters, Country, County, City, postcode,
    that have been set up in PerformancePoint as cascading filters. Now when you choose a country, say United Kingdom, only Counties within the UK will be displayed. That's exactly as you could expect. However, now if you select Norfolk county, all the cities
    with "Norfolk" county will be available. That's including the cities within "Norfolk" Massachusetts. This is because PerformancePoint cascading filters only work between two levels.
    Here's a link to setting up cascading filters http://technet.microsoft.com/en-us/library/hh272541(v=office.15).aspx 
    Hope that information is useful to you and the cascade limitation doesn't limit you too much. 
    Richard

  • Measures based on Count

    I would like to find out the total number of counts in a table based on a condition (Gender = 'F' or 'M'), I can do this in SQL.
    I would like to model a simple BMM layer to create two measures 1. Male Count 2. Female Count; but not sure how to do this.
    Here are the queries:
    1. select post_code , count(gender) AS MALE_COUNT from balances_f where gender = 'M' group by post_code;
    2. select post_code , count(gender) AS FEMALE_COUNT from balances_f where gender = 'F' group by post_code;
    Appreciate any help.
    Thanks
    B

    Create two new columns Male Count and Female Count and in the formula , use like this
    case when Gender = 'F' then 1 else 0 end
    ( For Female Count )
    and
    case when Gender = 'M' then 1 else 0 end
    for Male count.
    Edit :- Kart has provided the answer. Please mark his answer as correct if this works for you.
    Edited by: PanSa on May 19, 2010 9:26 AM

  • Check count and then do some work

    Hi,
    I have a table with 10 million records. I want to check whether a value of a specific column is present or not. If the count is greather than 0, then I want to do some task and if it is 0, then I want to do some other task.
    Could you please tell me what is the best way to do?
    What I am doing now is: I am checking the count using count(*) and then checking the value whether that is greater than 0 or =0 and then based on the value I am doing different task.
    But count(*) is slow for this big table.
    So, please let me know the best possible way to do this.

    declare
      value_exists number;
    begin
      select count(*)
      into   value_exists
      from   my_table
      where  my_column = 'ABC' and
             rownum = 1;
      if value_exists = 1 then
      elsif value_exists = 0 then
      else raise_application_error(-20001,'Bad value for value_exists of '||coalesce(to_char(value_exists),'NULL'));
      end if;
    end;

  • Modify Cycle Set sequence based on counter outcome

    Dear Experts,
    I have a question with relation to multiple counter plan. We have a scenario where we have 3 cycles based on time and one based on counter. Now the requirement is, when the counter crosses a particular value - for example - if we consider failures - and the equipment fails 3 times, we have to restart the sequence from the beginning, or in other words, the day of performing maintenance based on counter should become the new Start date of the plan/ cycle set.
    Also the other thing is, the number of failures need not be regular - so we should not get any maintenance calls for the same.
    I tested different options in multiple counter plan, but I dont see a standard solution for the above scenario.
    Has any of you come across such scenarios? And do you have a solution?
    Regards,
    Veera

    Dear Pete,
    I have proposed the same solution to business - around the time I posted this query. I was about to leave, when I saw replies from you and Mahesh.
    Thanks. I am marking yours as the answer, as I feel that we don't have any other alternative.
    By the way, Mahesh, you are correct, we cannot maintain multiple time based and performance based alternatives in multiple counter plan. Also, the problem for prediction, is that the plan depends on annual estimate to give a call, and in practical circumstances, will not be able to predict the performance based counter unless it has daily entry.
    But what we can maintain is a sequence of activities on time or performance, based on the cycle set sequence.
    Regards,
    Veera

  • Help with count and sum query

    Hi I am using oracle 10g. Trying to aggregate duplicate count records. I have so far:
    SELECT 'ST' LEDGER,
    CASE
    WHEN c.Category = 'E' THEN 'Headcount Exempt'
    ELSE 'Headcount Non-Exempt'
    END
    ACCOUNTS,
    CASE WHEN a.COMPANY = 'ZEE' THEN 'OH' ELSE 'NA' END MARKET,
    'MARCH_12' AS PERIOD,
    COUNT (a.empl_id) head_count
    FROM essbase.employee_pubinfo a
    LEFT OUTER JOIN MMS_DIST_COPY b
    ON a.cost_ctr = TRIM (b.bu)
    INNER JOIN MMS_GL_PAY_GROUPS c
    ON a.pay_group = c.group_code
    WHERE a.employee_status IN ('A', 'L', 'P', 'S')
    AND FISCAL_YEAR = '2012'
    AND FISCAL_MONTH = 'MARCH'
    GROUP BY a.company,
    b.district,
    a.cost_ctr,
    c.category,
    a.fiscal_month,
    a.fiscal_year;
    which gives me same rows with different head_counts. I am trying to combine the same rows as a total (one record). Do I use a subquery?

    Hi,
    Whenever you have a problem, please post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) from all tables involved.
    Also post the results you want from that data, and an explanation of how you get those results from that data, with specific examples.
    user610131 wrote:
    ... which gives me same rows with different head_counts.If they have different head_counts, then the rows are not the same.
    I am trying to combine the same rows as a total (one record). Do I use a subquery?Maybe. It's more likely that you need a different GROUP BY clause, since the GROUP BY clause determines how many rows of output there will be. I'll be able to say more after you post the sample data, results, and explanation.
    You may want both a sub-query and a different GROUP BY clause. For example:
    WITH    got_group_by_columns     AS
         SELECT  a.empl_id
         ,     CASE
                        WHEN  c.category = 'E'
                  THEN  'Headcount Exempt'
                        ELSE  'Headcount Non-Exempt'
                END          AS accounts
         ,       CASE
                        WHEN a.company = 'ZEE'
                        THEN 'OH'
                        ELSE 'NA'
                END          AS market
         FROM              essbase.employee_pubinfo a
         LEFT OUTER JOIN  mms_dist_copy             b  ON   a.cost_ctr     = TRIM (b.bu)
         INNER JOIN       mms_gl_pay_groups        c  ON   a.pay_group      = c.group_code
         WHERE     a.employee_status     IN ('A', 'L', 'P', 'S')
         AND        fiscal_year           = '2012'
         AND        fiscal_month          = 'MARCH'
    SELECT    'ST'               AS ledger
    ,       accounts
    ,       market
    ,       'MARCH_12'          AS period
    ,       COUNT (empl_id)       AS head_count
    FROM       got_group_by_columns
    GROUP BY  accounts
    ,            market
    ;But that's just a wild guess.
    You said you wanted "Help with count and sum". I see the COUNT, but what do you want with SUM? No doubt this will be clearer after you post the sample data and results.
    Edited by: Frank Kulash on Apr 4, 2012 5:31 PM

Maybe you are looking for

  • Trouble with Mouse

    I have a logitech 570 wireless mouse and it is working great in every other program, still I did a troubleshoot on it and everything seems to be working fine. In Indesign CS5 after I have selected the text tool I cannot then select anything else.  No

  • 0WBS_ELEMT hierarchy through MDX universe populating random values in WebI

    Hi Experts, We are facing an issue in WebI 3.1, while creating a report on top of MDX universe with 0WBS_ELEMT hierarchy - coming from BEx query. All other hierarchies in other reports are working fine, but the issue seems to be particular to 0WBS_EL

  • I seem to have 2 libraries one within another

    I'm not sure how it got that way but possibly when I reinstalled windows and itunes then copied over the old library from an ext HDD. Is there any way to fix it?  Do I need to fix it.  I prefer to have things as organized as possible.

  • Can't find/use Exception OBJECT_NOT_FOUND in DBMS_DATAPUMP

    Oracle DB 11.2.0.1.0 on Windows 7 Enterprise Hi All, maybe I'm not looking at the right place but it seems like OBJECT_NOT_FOUND exception is missing in DBMS_DATAPUMP. When I try to use "dbms_datapump.object_not_found" exception I have the following

  • Programs which are not  being executed

    Hi, We are planning to do the application upgrade in few months,with respectto that we would like to find out what all programs/transactions(standard or custom) which are not being executed for a specific period.What is the way to find this? Regards,