Get Percentages by Department

Hi All. I have a query that brings in spend sum($$) data for all departments, say within Cosmetics for customers, this works, but I wanted to see their percentage cross-over spend again say Department 215, I am not sure how to do the best way (the most efficient-correct way), would appreciate some help!
Using Oracle 10G, Here is what I currently have:
I only want to see customer who spent > $0 in the last 12 months.
select d.DEPT_NUMBER, sum (a.SPEND_12_MO) SUM_12_MO
from a.DEPT_SPEND a, USER_VIEW b, DEPARTMENT_CLASS d
where a.skey=b.skey
and a.DEPT_NUMBER = d.DEPT_NUMBER
and b.STORE_NUM is not null
and d.DEPT_NUMBER IN (1,2,3,4,5,blablalba,alldepts)
group by d.DEPT_NUMBER;
Then maybe I can have another query that will Query #1 that would do the percentage cross-shopping against say Dept 215.
So if in Query #1, I enter 20 departments, in Query #2 the result would give me an overall percentage cross-overs of 215 to the 20 depertments ? based on spend sum($$) ?
Thank you!

Hi,
No doubt you have a ckear idea if what you want. To those of us who have not been working with your tables or this particular problem for a long time, it is a riddle, wrapped in a mystery, inside an enigma.
Whenever you have a question, it helps to post:
(1) The version of Oracle (and any other relevant software) you're using (You did this.)
(2) A little sample data (just enough to show what the problem is) from all the relevant tables
(3) The results you want from that data
(4) Your best attempt so far (formatted) (You posted this, but since it's unformated, it's very hard to read.)
Executable SQL statements (like "CREATE TABLE AS ..." or "INSERT ..." statements) are best for (2).
If you can present your problem using commonly available tables (for example, tables in scott schema, or views in the data dictionary), then you can omit (2).
Formatted tabular output is okay for (3). Type these 6 characters:
{code}
(small letters only, inside curly brackets) before and after formatted text, to preserve spacing.
Simplify the problem if you can. For example, if your real query involves 20 depatments, post a problem with only 3 or 4.
It looks like you were on the right track with the analytic SUM function and CASE, but I really don't understand the problem well enough to say.

Similar Messages

  • How to get percentage difference between two matrices?

    Good day everyone, I just want to ask how to get the percentage difference between two binary matrices. This is for comparing two images converted to matrices in LabView. Thank you. 
    Solved!
    Go to Solution.

    pinkman wrote:
    Good day everyone, I just want to ask how to get the percentage difference between two binary matrices. This is for comparing two images converted to matrices in LabView. Thank you. 
    You probably converted it to a 2D array (A matrix in LabVIEW has a special meaning).
    "Binary" is not very well defined (unless you are looking for the number of bits that are different). What is the datatype? Was it a color image or a greyscale image? Are both arrays the same size?
    How do you define "percentage difference"? Which one of the two is the 100% reference?
    Do you want a new 2D array where each element is the difference of the second array compared to the first (or vice versa), expressed in percentages?
    Do you want to know what percentage of array elements are different between the two arrays?
    Do you want to know the average difference between all array elements?
    All possible interpretations can be easily solved with very little code, but you need to explain in more detail what you actually want?
    Here is a simple solution for case #2, for example (assuming the array have the same size, and we only want a rought estimate, rounded down to the nearest integer percent):
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    PCT-Difference.png ‏16 KB

  • BAM : Crosstab : Need to get percentage of row total for each cell

    Hi,
    I am new to BAM. I have a requirement for which I am using crosstab. Basically, I need to show number instances per human task per user. Human Task is the row header, user is the column header, and I am using count(instance id) to fetch the count of instances. I am able to show the sum of values for each row and column, but I also need to show the percentage for each cell(based on row total).
    I do not know if it is possible to fetch the total for further calculations. I believe the calculated field will be processed for each cell, and hence there will be no sum available.
    Also, crosstab does not have a percent of total aggregate function.
    Kindly advise.
    Regards,
    Himanshu

    Hi,
    For constructing summary, COLLECT is very useful.
    1. Create one new internal table STAB having two fields.
       a) licensetype
       b) cnt
    2. Suppose your original internal table is itab.
    Loop at ITAB.
    STAB-licensetype = itab-licensetype.
    STAB-CNT = 1.
    COLLECT STAB.
    EndLoop.
    3. In this way, you will get DISTINCT license types, and their count.
    Hope this helps.
    regards,
    amit m.

  • Numbers '08 Using formuals to get percentage

    I'm sure this is relatively easy but I'm new to spreadsheets so bear with me.
    I have a column of numbers. I am able to get the sum of the column. To the right of this column of numbers, I want to calculate the percentage of each row in relation to the overall sum. Is there an easy way to do this besides entering a unique formula in each row.
    RIght now I have about 100 rows and I'd prefer not to type the similar formula each time. This is the formula I'm using right now:
    =D2/SUM(D1:D282)*100
    The next row would have D3/SUM(D1:D282)*100, then D4, D5, etc....

    Hi jbresner,
    Yes, put the formula in the top cell of the column then press Return, now click to highlight that cell. In that cell you'll now see a little round thingy in the lower right corner. Drag that circle down all the rows you need to fill. The formula will be copied to each cell as you drag.
    Hope this helps you.
    Sincerely,
    RicD

  • Is it possible to get my NYC Department of Education email on my iPhone? I found an old discussion from a few years ago, tried to follow the advice and it wouldn't work.

    I found a discussion from a few years back that had some varied advice on how to do this, but when I tried all the methods listed it still wouldn't work on my phone. I've also tried things I found on other sites. I'd love to be able to get my work email on my iPhone as we are doing blended learning this year and it's better not to give students my personal email.

    I'll try it, but even so i would be at a loss of 5,000+ photos and videos, probably around 250 notes, and many of my contacts/texts.

  • Group by hour and get percentage of value on a particular

    Hi All,
    Oracle 11g
    create table test_table_2 ( time_log TIMESTAMP(6), status number, names varchar2(500) );
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,1,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Paul');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Liza');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'7'hour ,0,'FN:Will,LN:June');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'6'hour ,0,'FN:Ann,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'5'hour ,0,'FN:John,LN:Blair');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'4'hour ,1,'FN:Peter,LN:Lloyd');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'3'hour ,1,'FN:Sam,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'2'hour ,0,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(systimestamp - INTERVAL'1'hour ,0,'FN:Will,LN:Smith');
    In the above record I want to see the percenatge of status coulmn being 1 for a given hour.
    In other words in the above table
    curtime - 7 should give 25%
    curtime - 6 should give 0%
    curtime - 5 should give 0%
    curtime - 4 should give 100%
    Currently I am doing two queries
    1. grouping by hour for status being 1 and
    2. grouping by hour for status being 0
    and then calculating the percentage on java level.
    I thought it will be lot simpler if it can be done in one shot in sql itself.
    Appreciate your help with this.
    _Pete                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Well, i wasn't sure what happened to curtime - 3, curtime -2 and curtime -1 ... but maybe this is a start for you.
    create table test_table_2 ( time_log TIMESTAMP(6), status number, names varchar2(30) );
    declare
      l_timestamp timestamp := systimestamp;
    begin
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,1,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Paul');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,0,'FN:Will,LN:Liza');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'7'hour ,0,'FN:Will,LN:June');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'6'hour ,0,'FN:Ann,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'5'hour ,0,'FN:John,LN:Blair');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'4'hour ,1,'FN:Peter,LN:Lloyd');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'3'hour ,1,'FN:Sam,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'2'hour ,0,'FN:Will,LN:Smith');
    insert into test_table_2 (time_log,status,names) values(l_timestamp - INTERVAL'1'hour ,0,'FN:Will,LN:Smith');
    end;
    ME_XE?select
      time_log,
      count(case when status = 1 then 1 else null end) / count(*) * 100
    from test_table_2
    group by time_log
    order by time_log asc;
    TIME_LOG                                                                    COUNT(CASEWHENSTATUS=1THEN1ELSENULLEND)/COUNT(*)*100
    07-APR-10 08.46.22.557850 AM                                                                                                  25
    07-APR-10 09.46.22.557850 AM                                                                                                   0
    07-APR-10 10.46.22.557850 AM                                                                                                   0
    07-APR-10 11.46.22.557850 AM                                                                                                 100
    07-APR-10 12.46.22.557850 PM                                                                                                 100
    07-APR-10 01.46.22.557850 PM                                                                                                   0
    07-APR-10 02.46.22.557850 PM                                                                                                   0
    7 rows selected.
    Elapsed: 00:00:00.15

  • Get Percentage Difference between 2 rows.

    Hello.  I'm trying to add a field to a report that shows the difference between 2 rows.  Example.
    Month Total
    %diff
    Aug 1000
    11%
    July 900
    The math behind is (1000-900)/900 or 11%.  I tried this:  
    SUM(Fields!Total.value - PREVIOUS(Fields!Total.value))/PREVIOUS(Fields!Total.value)
    This would work great if I could actually use PREVIOUS w/out errors.  Any ideas?
    Thank you.

    Hi EonHale,
    According to your description, you want to calculate the growth percentage for each month. Right?
    In this scenario, we just need to use current value minus previous value (use Previous function), then divide by previous value. Since it doesn't have previous value for the first records, so we can use IIF function and add condition in expression
    to return a null value. We have tested in our local environment with sample data. Please try the expression below:
    =IIF(Previous(Fields!Amt.Value) is nothing,nothing,(Fields!Amt.Value-previous(Fields!Amt.Value))/previous(Fields!Amt.Value))
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • V$Rowcache getting low gets percentage

    hi all,
    i m getting increased getmisses in v$rowcache against dc_histrogram_defs
    kindly tell me about dc_histrigram_defs
    also the impacts of it on reponse time.
    PARAMETER     GETS GETMISSES     PCT
    dc_global_oids     4     2     50
    dc_histogram_defs 60     45     25
    Thanks

    the hit ratio in rowcache drop when there query donot find the information about the objects in shared_pool.
    this is because poor sql statements or lack of statistics in the dictionary tables . I think dc_histrogram_defs also regqard to dictionary and histogram term generally deal with indexes i think you should rebuld your indexes or analyze them and compute statistics. Moreover through tracing check your queries are using indexes or full table scan.
    That I can tell you

  • Getting percentages to display and work

    I have been having a issue where the user enters a number into the form, for example "23".  The user has to enter ".23" instead.  Is there a way for the user to be able to just enter "23"?  I am using LiveCycle 8.2.1 and have tried just about everything I can think of.  I am a novice when it comes to Adobe and would really appreciate some help.
    Thanks Dave

    In it what tab of the pattern do I put that in?  So far I was using this formula in javascript:
    if (this.rawValue != null) {
    this.rawValue = Math.abs(this.rawValue);
    if (this.rawValue >= 1) {
      this.rawValue = this.rawValue / 100;
    if (this.rawValue == null || this.rawValue <= 1)
    true;
    else
    false;
    I am not sure that is what I should be using.  I used your line but it still multiplies it by a 100. It now just says for example 36% but it still multiplies by 3600  How do I stop that?
    Thanks for your help

  • How do you get a percentage score in the LMS using SCORM 2004 and CP6?

    I am having two issues since I upgraded to CP6. When I select Track Data at End, the courses never scores as complete in the LMS - it worked great in CP5.5.
    Also, in CP6 there is no option to record the score as a percentage using SCORM 2004, so all I get is Complete or Incomplete - I could get percentages in CP 5.5
    Does anyone have any ideas or advice? Am I doing something wrong here?
    I am using GreenLight from Silkroad for the LMS.
    Regards,
    Kevin

    Herald, fantastic news. SET LONG did the trick.
    But I had to put a very big value. 32000 was not enough. Otherwise some of the triggers (big ones) got cut off.
    This is my complete code which did it.
    SPOOL F:\Channa\zz_zzTemp\Binuka\OutPut.txt
    set trimspool on
    set pages 0
    set long *1000000000*
    set linesize 32767
    SET TERMOUT OFF
    SELECT DBMS_METADATA.GET_DDL('TRIGGER', TRIGGER_NAME, 'ABS')
    FROM ALL_TRIGGERS
    WHERE OWNER = 'ABS' AND trigger_name NOT LIKE 'BIN$%'
    SPOOL OUT
    THANKS A LOT. REALLY APPRECIATE IT.
    P.S: I had to include the NOT LIKE 'BIN$%' in the where clause because otherwise I got this error:
    ERROR:
    ORA-31603: object *"BIN$cqXDSqghrFngQKjAJAovgw==$0"* of type TRIGGER not found in
    schema "ABS"
    ORA-06512: at "SYS.DBMS_SYS_ERROR", line 105
    ORA-06512: at "SYS.DBMS_METADATA", line 2805
    ORA-06512: at "SYS.DBMS_METADATA", line 4333
    ORA-06512: at line 1
    no rows selected
    I THINK BIN$... triggers are dropped triggers in the DB recycle bin???
    Edited by: Channa on Feb 17, 2010 2:58 AM
    Edited by: Channa on Feb 17, 2010 3:01 AM

  • My Infinity Order Keeps Getting Cancelled! And Muc...

    Hi.
    Sorry, this is REALLY long, but I needed to document this somewhere.
    I own a house.
    I have two phone lines on my account.
    I pay the bills for both, but one is used exclusively by my lodger. He pays me for his calls, broadband, etc. For years this has worked well. Even if we have two lines of ADSL2+ at a whopping 1Mbps each! (I know, "WOW!")
    At last, at the end of June, BT Infinity 2 arrives on our estate. Testing indicates that we will get a serious 77Mbps down and about 15Mbps up.
    I do a little victory dance.
    Then, the pain starts. Courtesy of the BT Infinity team (I have been lead to believe).
    My lodger wants his own "private" Infinity line. I think this is rude as he does not want to share, but hey, if he pays for it, who am I to judge?
    I obtained two MAC keys from our current ISPs.
    Around the 10th of July, I ordered two BT Infinity 2 lines to be installed. All was well. Engineer was booked for the same day to install the wall-boxes, modems, etc. Booked for 26th May.
    I paid for a year's line rental on the line that I use, in advance, to save money.
    Later that week, I noticed one of my orders has disappeared. Hmm.
    I phoned the helpline. Got a really nice Indian lady. I asked her why the second Infinity line had not been installed.  She wanted to know what speed I was getting and could I please power-off the modem. Sadly, not good English. I apologised and said I had to go, and hung up. I phoned up again -
    *1. Was told that only one BT Infinity modem could be installed at a time as the engineer would not have time to install both - this is even though TWO install slots were booked.
    *.2 Later I got told that two Infinity lines could not be installed because the lines are on one account number.
    The MAC for my lodger's line was put into the system. ALL records of any orders whatsoever disappeared from the BT tracking service!
    I did however receive emails telling me of the install date, etc., of my lodger's line.
    Sporadically, I received emails asking telling me that they NEEDED my MAC in order to progress my order. What order? There was NOTHING on the BT site. No VOLs or order numbers that I had been given brought up any results. According to the Order Tracker, there were no orders, so I could not enter the second MAC.
    Stressful? (After ten years of truly awful download speeds - we've only had broadband of any sort for about three and a half years!) You had better believe I was stressed!!
    On the 23rd July, I get a letter through the post from BT, dated the 11th of July. It says that my transfer to another phone company would be completed on the 24th July and should I wish to cancel this, I needed to contact BT BEFORE the 20th of July!
    I panicked and phoned BT to stop the transfer. Whereupon the lady I spoke to said that she thought it rather strange that I had paid for a year's line rental then decided to move to another company. I later received welcome blurb from TalkTalk. TalkTalk? Grrrrrrr!
    The Hub3 turns up on the 24th July, for the lodger's line.
    The 26th, and the engineer turns up. Stuff installed. GREAT!!
    Network crashes a couple of days later, east of London into Essex. BT pretends that it was a "line fault".
    Also have had several modem crashes giving sub-1Mbps speeds.
    It is now Wednesday 8th of August (I think). I decide to try and get the second Infinity line installed as I am still stuck on 1Mbps ADSL.
    I go online to sign up.
    What? I find out that I'm being charged for phonecalls during the day?
    BT have cancelled my Anytime package on MY LINE on the 26th July without telling me and I have been running up call charges without knowing it!!
    It gets better: There is now no record that I ever paid them £120 for my year's line rental, and to really take the pi**, they have charged me in advance for the August line rental.
    I phone up to get things sorted regarding my year's payment, and to get my Anytime package put back on my account. Apparently this cannot be done BECAUSE THERE IS AN ORDER STILL WAITING TO BE ACTIONED ON MY ACCOUNT. Could this be the "cancelled" Infinity order? The system will not let anyone modify my account.
    I get passed from department to department. Here. India. Here. Infinity team, wherever they are? And back to here again.
    *3. The guy I finally spoke to confirmed that the reason I could not get Infinity on the second line was because the two phone lines were "linked" on the account. He said that he, "WOULD GET THE LINES SPLIT." That way the installation would go ahead. I was to call back after lunchtime on Friday all would be sorted.
    Friday 10th. 1pm. I went online to check progress on my account. Nothing obvious. It still shows Evening and Weekend calls. Tried to order Infinity again online. It would not let me do so.
    I then called BT. Guess what? It wasn't sorted. Yes, there was no record of any attempt to do so.
    I then phone up the number I was given by the "Account-Split-Guy" to try again to get Infinity installed. I get through to India. I have the wrong department. I get though to Tech Support in India. I have the wrong department. I got through to someone in the UK, but they could not help, so I got put through I think to the Infinity booking team in India. They said I needed to talk to someone else, and FINALLY I got to talk to a really nice lady in the UK who went out of her way to help.
    The nice lady in the UK asked what had happened. I told her. She tried to change my Anytime package, and it was blocked still.
    *4. She told me that according to their system, *"I ALREADY HAD INFINITY ON THE LINE I WAS TRYING TO INSTALL ON"*.
    I told her about all of the above.
    She said she would look into it and get back to me.
    After much messing about (hard work on her part!) she managed to get my Anytime package put back on my account. She said it would go live later that night. She tried to get an Infinity order processed, but she needed a MAC key. I gave her the one I had obtained when I originally placed the order, but it had expired!
    I then got onto my old ISP and by some miracle they managed to get me a new MAC in just over half an hour!
    I contacted the lady at BT who then got an order put through for BT Infinity. She did not need the MAC at the time, but was not allowed to place an order without one.
    Much thanking went on.
    Later Friday evening I went on the BT Order Tracking site to put in my MAC. It was not possible. It did say that the broadband order was "In progress", with an estimated Completion Date "Today." Even later Friday 10th of August, the broadband order is listed as "Completed." I try to enter my MAC again and I can't. I cannot book an engineer visit either.
    I am again worried.
    Saturday 11th, late in the evening, I phoned the Infinity install team, on the number I had been given, to give them my MAC. The lady in India could not understand what I was saying. I rang off apologising that I had the wrong number. Phoned again. India. Got a man on the phone to whom I explained that I wanted to give him my MAC key. He then asked me, "You have lost your MAC code?"
    After much explaining he understood what I was saying. I gave him the then current VOL order number, and he said that for an Infinity install, they "Did not need a MAC key."
    Fair enough. I thanked him, said goodbye and hung up.
    I kept checking over the weekend and the order remained up on the site.
    Monday 13th August. Morning. Logged onto BT site. My order was GONE from the Order Tracking page. Got an email and a phonecall from the lady at BT saying that she was still working on things. She had to take off the Anytime call package on my line, but leave it on the lodger's line for the time being. This "should" enable her to order Infinity on my line. I checked online later in the day, and there were order details there, but with a different order (VOL) number. It still shows that my broadband order completed on the 10th of August and my Evening and Weekend Package will complete on the 15th of August.
    I need to say: Apart from the lady mentioned above, who has been superb all along, everyone else so far, wherever they are based, have been *very* polite and helpful while on the phone, just pretty useless when it actually comes to sorting the problems out. There has also been a significant language barrier on some occasions.
    There were many more phonecalls on other occasions. More being passed from department to department, and more rubbish told to me than is listed above.
    Luckily for you, this is all I can remember.
    A new day has dawned. I still have a valid MAC, no Infinity, and no date for an engineer visit booked.
    I am not optimistic. :-(
    Solved!
    Go to Solution.

    Hi All.
    Today's update.
    According to the Order Tracker-
    Apparently, as of Friday the 10th of August, my BT Infinity 2 service installation was completed. Funny, I don't remember an OpenReach engineer breaking in and installing an Infinity wall-plate, and setting up my non-delivered and thus non-existent HH3!
    Also, about an hour ago from this post time, around 1600hrs on Wednesday the 15th of August, my "New" Evening and Weekend Calling Package went "Live". I believe I have had that package all along. One of my gripes was that I was taken off the Anytime Package.
    Hang on! What's this that came in the post earlier today? Dated the 10th of August - I am being informed that my "Unlimited Anytime Plan" is being set up. Cool! Ah, no completion date, but I was told over the phone, on the 10th, that it will have gone live by midnight of the 10th.
    So, have I got it, or not? Any of it?
    So. Still no second Infinity line.
    Yes I know, some of you poor buggers cannot even get Infinity, but thanks to my Lodger and the general incompetence of one BT department or another, neither can I!
    I am posting this over my trusty 1Mbps ADS2+ line, while trying to download a 3.2GB disc image from MS TechNET. Apparently, it is going to take me nearly 10 hours at the current speed. I have at least five more large images to download.
    Oh boy...

  • Help with multiple date percentage report

    Dear all,
    I am having problems with getting percentage right on my report which is set to YTD however I am counting records for Last 5 days, Last 4 weeks and Current Date.
    I am getting the records perfectly right as I have created 3 different Groups for them. The Running Totals are counting the correct number of records.
    As I have two Running totals for each job (Credit Job + Free of Charge Job), these two jobs are getting added up in the report.
    For example
    YTD formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 5 Days formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Last 4 Weeks formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    Current Date formula
    Running total of Credit Job + Running Total of Free of Charge Job = Total Jobs
    To get the grand total of these records, I have created another formula which counts all the above YTD records, L5D records and displays them in the report footer. Grand Total is showing up correctly.
    Now, What I want is the percentage of each record, i.e. the percentage of YTD records, L5D records etc.
    I have created a formula which counts the percentage but incorrectly.
    Here is the formula
    Whileprintingrecords;
    Numbervar b:=0;
    numbervar n:=0;
    numbervar m:=0;
    b:={@TotalJobsFOCRL5D}; // this is total job, (Credit+Free of charge jobs)
    n:={@TotalJobsFOCRL5DGT}; //GT is the grand total showing in report footer
    If b=0 then 0 else //if total jobs = 0 then answer is 0
    m:=(b/n)*100; // divide total jobs with grand total
    totext(m,2)+"%"; //show as percentage
    This formula does show the percentage but divides each job by itself. So if Total Jobs = 9 then it shows 100% whereas Grand Total is 479.
    Could someone please help me getting the correct percentage.
    The percentage formula is placed on the respective group footer.
    Regards
    Jehanzeb

    closing no reply

  • Who do I contact to get Verizon Wireless to put me on the plan they promised?

    My daughter got talked out of an unlimited account when she got a new phone by a verizon salesperson who told her based on her 3g usage she would never go over 2 GB of Data on a new 4g phone. (Which was totally untrue because with the same usage, she used more bandwidth every month on 4g)  They put her on a 2 GB data plan when they were offering everyone else who had unlimited plans a 6 GB plan. After we called back to question this, the agent agreed that since the 6 GB plan was available at that time that she should have been offered it, and they would take care of it.
    Fast forward several months.....NOT FIXED STILL
    I have spent many hours on the phone  for many months now, with many agents including Mark, Terry, Todd, Vanessa, Tim, Swasi, and Nadia to name a few...who all promised to take care of this. They apologized, gave a credit for the overage that occured one month due to the smaller plan, and said they would get the appropriate department to make the change. The last guy said since he couldn't get us on the 6 GB plan yet, he would put us on the 5GB plan and credit back the $20 difference EVERY MONTH and that the credit would not stop as long as we were on the 5 GB plan. He would then pursue the 6 GB plan. Each time they say call back in a week (so I can talk to a new person and explain it all again for an hour....and not get it fixed again!!!!)
    For a long term customer with 5 lines and a long history, they sure don't make you feel like they care...and they don't make good on their promises as far as I can tell, because we are  still not on the 6 GB plan (that still exists and they still offer to people!!!) and we are no longer getting the $20 credit for the 5 GB plan they put us on in the meantime with a promise of no fee increase. Now I'm told the request for the 6 GB was rejected and that verizon does not plan to do anything or credit any money as promised.  "Sorry, we can't put you on that plan". (even though several agents and supervisors approved it and said they would take care of it)  This is SOOOO incredibly frustrating. I HATE being lied to and I hate it when a company does not do as they say they will. This is very poor customer service.
    Up until now, I was happy with verizon, their service, and the phones, but now I am looking at when my plans expire so that if they can't make good on their promise I will plan to  move my 5 phones and my 2 parents and  2 inlaws and the rest of the family's cell service to AT&T. They offer a larger corporate discount  and rollover minutes too.

    @Verizon Wireless Customer Support
    Matthew:
    When I search for MatthewS_VZW on Twitter, I get a message that there is no such user. I only see Matthew44vzw and matthewvzw. Are either of those you?
    Since this is a verizon wireless forum, I presume that the VZW rep has access to the email used. Other companies work this way on forums like this. If you do have access, feel free to email me, if not, please give me the correct twitter handle and I will follow and DM you. I am getting pretty frustrated with all this.

  • How to get the row selected in af:inputComboBoxListOfValues

    Hi,
    Am using jdev 11.1.1.2.1.
    Am using af:inputComboBoxListOfValues component , i have made the component based on the " department id" and the display value is " department name".
    In the value change listener i want to get the selected department id but currently am getting only the department name.(using valueChangeEvent.getNewValue().toString())
    So is there any way to get the entire row and get the "department id" using that ??
    Please help.
    Thanks,
    Hari

    Sorry for the confusion, needed to check it out:
    this code should work:
        public void nameValueCangeListener(ValueChangeEvent valueChangeEvent) {
            FacesContext contxt = FacesContext.getCurrentInstance();
            valueChangeEvent.getComponent().processUpdates(contxt); // after this the new row is selected!
            BindingContext lBindingContext = BindingContext.getCurrent();
            BindingContainer lBindingContainer = lBindingContext.getCurrentBindingsEntry();
            JUCtrlListBinding list = (JUCtrlListBinding) lBindingContainer.get("YOUR_LIST_BINDING_NAME");
            Row lFromList = (Row)list.getCurrentRow();
            Object lAttribute = lFromList.getAttribute("YOUR_ATTRIBUTE_YUO_WANT_TO_GET");
        }Timo

  • Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Sales Group then add to Distribution list based on Region

    Hey Scripting Guys,
    I have been in and out of Powershell last few years, not that great at it tbh !!! I'm looking for advice on how I can as in Title, Create a Powershell script to Scan Active Directory Attributes for Country and Department ,Then add to Group then add to Distribution
    list based on Region/Country
    I was thinking along the lines of get-aduser -LDAPFilter "(department=SALES France) and adding a where clause for country.
    Any help would be great.
    Dec

    So I have tried a few variations but get errors on both 
    get-aduser -LDAPFilter "(&(department=SALES)(c=us))" | Add-ADPrincipalGroupMembership -MemberOf "testgroup"
    get-aduser -LDAPFilter "(&(department=SALES)(c=fr))" | Add-ADGroupMember -identity "testgroup"
    Add-ADPrincipalGroupMembership : Object reference not set to an instance of an
    object.
    At line:1 char:86
    + get-aduser -LDAPFilter "(&(department=SALES)(c=fr))" | Add-ADPrincipalGroupMe
    mbership <<<< -MemberOf "testgroup"
    + CategoryInfo : NotSpecified: (:) [Add-ADPrincipalGroupMembershi
    p], NullReferenceException
    + FullyQualifiedErrorId : Object reference not set to an instance of an ob
    ject.,Microsoft.ActiveDirectory.Management.Commands.AddADPrincipalGroupMem
    bership

Maybe you are looking for

  • Issue with Refresh link avaiable in standard UWL iView

    Hi All, We have added the custom column "Comment" in the Tasks tab of UWL iView.In the Tasks tab we can view some rows in the table.When we click on one row it is opening the ABAP ADOBe forms.In this Form when we change the text for the field Comment

  • Strange behaviour between standalone and enterprise

    Hi I'v been running my app on 9.0.3 standalone for weeks now. Very stable and happy. Now I'm trying to get this going on 9.0.3 with WebCache and HTTP server install. Also 9.0.3 on Windows 2000 Server. The application part that I'm testing is two serv

  • Dynamic ALV: but with globally available dynamic table type

    Hello, I would like to create a dynamic node for a ALV and dynamic table types to fill and the ALV. The ALV data can be changed so I need to read it again. I have read all the threads about dynamic node create and i have no problem with it. I can cre

  • Is the ipad 3 unblocked?

    I am thinking of buying an ipad with 4G in the States but I split my time between US and Italy.  My unblocked iphone, bought in the States, with microsim capabilities, works beautifully in Italy.  Can anyone tell me if the ipad is unblocked, too?  Th

  • Photo consuming hard drive storage but cannot be found.

    My wife's 4s claims to have 5.0 GB of storage consumed by photos although the photos cannot be accessed from the phone or from a PC.  This happened after having a broken screen replaced although I do not see how the two are related. The company that