Can I sum only the top 10 values in a range?
I am new to mac and numbers. I bought my first mac this fall. I have a grade book in Numbers. I am only counting the top 10 out of 11 homework scores and top 10 out of 13 quiz scores.
Essentially, I want to add the top K values out of a range of N cells. Can I do this?
Thanks.
you can use the large() function like this:
C1=AVERAGE(LARGE(B,1), LARGE(B,2), LARGE(B,3), LARGE(B,4), LARGE(B,5), LARGE(B,6), LARGE(B,7), LARGE(B,8), LARGE(B,9), LARGE(B,10))
this is shorthand for... select cell C1, then type (or copy and paste from here) the formula:
=AVERAGE(LARGE(B,1), LARGE(B,2), LARGE(B,3), LARGE(B,4), LARGE(B,5), LARGE(B,6), LARGE(B,7), LARGE(B,8), LARGE(B,9), LARGE(B,10))
Similar Messages
-
How can I sync ONLY the top photo in the stack?
I sync various Aperture photo albums to my IPad and iPhone. The problem is that when I have 'stacked' images (eg. one image showing in the album and two other copies 'hidden' underneath), all of the photos in the stack are copied to the ipad and iPhone. So instead of seeing just one version of an image, I see as many as are in the stack. How can I sync ONLY the top photo in the stack?
Thanks for your help!I solved my own problem.
The sync problem seemed to only occur on smart albums. There is a new check box option in Aperture 3 when making a smart album: "sync stack pick only." One click and the problem is solved! -
Can I put only the top image of a stack in a Mobile Album?
I have an album that contains stacks and I would like to put only the top images of these stacks in a Mobile Album. Is this possible?
I have tried to make a new album and only put the top images in this new album without sucess. Is it possible to have a stack of images in one album and only the top image in another ablum?
I hope someone knows about this
Hans BrodinHi Surendra,
My target is to find a convenient way to transfer my best photos only to my iPad
By using stacks for similar photo and putting my best shot on top I reduce the number of images displayed in the organizer. A typical stack contains of 8 shots.
Then I put my best stacks in an album. By using the Slide Show in PE I have a convenient way to display only my best shot and tha's OK for my computer were I have a lot of disc space.
But on my iPad the size of memory is limited and it also takes some time to transfer a huge number of images so now I want to find a convenient way of tranfering only the top image of each stack. If I could have a separate album containing only the top images from each stack the task would have been easy.
Now this is not possible so now I hope there is another solution than acually making a separate copy (a new file) of each top image and put these copies in a separate album. This will of course work but it will end up in having two identical images showing up in the organizer and so I do not really like this idea.
I hope I have managed to describe my intention and do you have an idea for a workaround or do I need to make separate copies?
Thanks a lot
Hans -
How to get top 11 values per date range
I want to get the top 11 values by date range.
Sample Data
CREATE TABLE SAMPLE_DATA
DOMAIN_NAME VARCHAR2(100),
QTD NUMBER,
LOAD_DATE DATE
-- Insert
BEGIN
FOR lc IN 1..20
LOOP
FOR ld IN 1..30
LOOP
INSERT
INTO SAMPLE_DATA VALUES
'DM_'
||lc,
round(dbms_random.value(0,1000)),
SYSDATE-ld
END LOOP;
END LOOP;
COMMIT;
END;
SELECT *
FROM
(SELECT DOMAIN_NAME,
QTD,
LOAD_DATE
FROM
(SELECT DOMAIN_NAME,
QTD,
LOAD_DATE
FROM SAMPLE_DATA
WHERE LOAD_DATE = TRUNC(SYSDATE-3)
ORDER BY QTD DESC
WHERE ROWNUM <=10
UNION ALL
SELECT 'Others' DOMAIN_NAME,
SUM(QTD) QTD,
LOAD_DATE
FROM
(SELECT DOMAIN_NAME,
QTD,
LOAD_DATE
FROM
(SELECT rownum rn,
DOMAIN_NAME,
QTD,
LOAD_DATE
FROM
(SELECT DOMAIN_NAME,
QTD,
LOAD_DATE
FROM SAMPLE_DATA
WHERE LOAD_DATE = TRUNC(SYSDATE-3)
ORDER BY QTD DESC
WHERE rn > 10
GROUP BY LOAD_DATE
ORDER BY QTD DESC
-- Result
DOMAIN_NAME QTD LOAD_DATE
Others 2888 24/03/13
DM_1 1000 24/03/13
DM_20 933 24/03/13
DM_11 913 24/03/13
DM_3 743 24/03/13
DM_13 572 24/03/13
DM_12 568 24/03/13
DM_9 564 24/03/13
DM_6 505 24/03/13
DM_5 504 24/03/13
DM_2 480 24/03/13
Please, Help me get in one query this result using a range of date.
e.g
using LOAD_DATE BETWEEN '24/03/13' AND '25/03/13'
DOMAIN_NAME QTD LOAD_DATE
Others 2888 24/03/13
DM_1 1000 24/03/13
DM_20 933 24/03/13
DM_11 913 24/03/13
DM_3 743 24/03/13
DM_13 572 24/03/13
DM_12 568 24/03/13
DM_9 564 24/03/13
DM_6 505 24/03/13
DM_5 504 24/03/13
DM_2 480 24/03/13
Others 1948 25/03/13
DM_1 807 25/03/13
DM_8 764 25/03/13
DM_7 761 25/03/13
DM_11 656 25/03/13
DM_18 611 25/03/13
DM_17 523 25/03/13
DM_14 467 25/03/13
DM_19 447 25/03/13
DM_15 437 25/03/13
DM_6 380 25/03/13 Thank you in advance.I got the solution. Just sharing.
I used analytic functions that make my job easy.
Sample Data
DOMAIN_NAME QTD LOAD_DATE
DM_1 807 25/03/2013
DM_1 1000 24/03/2013
DM_2 226 25/03/2013
DM_2 480 24/03/2013
DM_3 244 25/03/2013
DM_3 743 24/03/2013
DM_4 48 25/03/2013
DM_4 413 24/03/2013
DM_5 164 25/03/2013
DM_5 504 24/03/2013
DM_6 380 25/03/2013
DM_6 505 24/03/2013
DM_7 761 25/03/2013
DM_7 212 24/03/2013
DM_8 764 25/03/2013
DM_8 308 24/03/2013
DM_9 354 25/03/2013
DM_9 564 24/03/2013
DM_10 214 25/03/2013
DM_10 367 24/03/2013
DM_11 656 25/03/2013
DM_11 913 24/03/2013
DM_12 37 25/03/2013
DM_12 568 24/03/2013
DM_13 332 25/03/2013
DM_13 572 24/03/2013
DM_14 467 25/03/2013
DM_14 87 24/03/2013
DM_15 437 25/03/2013
DM_15 450 24/03/2013
DM_16 238 25/03/2013
DM_16 299 24/03/2013
DM_17 523 25/03/2013
DM_17 143 24/03/2013
DM_18 611 25/03/2013
DM_18 145 24/03/2013
DM_19 447 25/03/2013
DM_19 464 24/03/2013
DM_20 91 25/03/2013
DM_20 933 24/03/2013 Top 11 QTD of DOMAIN_NAME per Data Range.
SELECT *
FROM
(SELECT DOMAIN_NAME,
QTD,
LOAD_DATE
FROM
(SELECT LOAD_DATE,
DOMAIN_NAME ,
QTD,
(DENSE_RANK() OVER (PARTITION BY LOAD_DATE ORDER BY QTD DESC )) AS RANK_QTD
FROM SAMPLE_DATA
WHERE trunc(load_date) BETWEEN '24/03/2013' AND '25/03/2013'
WHERE RANK_QTD <= 10
UNION ALL
SELECT 'Others',
SUM(QTD) AS QTD,
LOAD_DATE
FROM
(SELECT LOAD_DATE,
DOMAIN_NAME ,
QTD,
(DENSE_RANK() OVER (PARTITION BY LOAD_DATE ORDER BY QTD DESC )) AS RANK_QTD
FROM SAMPLE_DATA
WHERE trunc(load_date) BETWEEN '24/03/2013' AND '25/03/2013'
WHERE RANK_QTD > 10
GROUP BY LOAD_DATE
ORDER BY LOAD_DATE ASC,
QTD DESC
DOMAIN_NAME QTD LOAD_DATE
Others 2888 24/03/2013
DM_1 1000 24/03/2013
DM_20 933 24/03/2013
DM_11 913 24/03/2013
DM_3 743 24/03/2013
DM_13 572 24/03/2013
DM_12 568 24/03/2013
DM_9 564 24/03/2013
DM_6 505 24/03/2013
DM_5 504 24/03/2013
DM_2 480 24/03/2013
Others 1948 25/03/2013
DM_1 807 25/03/2013
DM_8 764 25/03/2013
DM_7 761 25/03/2013
DM_11 656 25/03/2013
DM_18 611 25/03/2013
DM_17 523 25/03/2013
DM_14 467 25/03/2013
DM_19 447 25/03/2013
DM_15 437 25/03/2013
DM_6 380 25/03/2013 -
My Laserjet Pro 400 will fax only the top on third of the fax page but I can receive full faxes. But the system works with my older HP Fax Printer. Thank you.
Hi @
I suspect your question would be better answered in the HP Enterprise Business Community, as the HP Laserjet Pro 400 Printer is a commercial model.
My technical expertise is with consumer products and software, I am sure the commercial folks would be happy to help if you re-post your question for them to answer. The HP Enterprise Business Community is an HP Forum designed for the Commercial and Enterprise customers to help one another. I am sure you will find some HP folks there to help too.
Click here to view the Printing and Digital Imaging. When the page opens you will see the option to 'Log in' or 'Register Now' on the right. The commercial forums are separate from the consumer boards, thus you will need to register if you don't already have a commercial account.
You may find the HP LaserJet Pro 400 Printer support page helpful while you wait for somebody in the commercial Forum to respond to your inquiry.
Best of luck.
Please click the Thumbs up icon below to thank me for responding.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Please click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution.
Sunshyn2005 - I work on behalf of HP -
For Multi value attributes, how we can view only the most recent value?
Where we can set what in endeca servers (MDEX, Clover & Studio) to view only the most recent value of a multi assign value attribute on Studio server?
That's correct, multi-value attributes do not support this in Endeca.
If you're looking to do it, I would keep writing your updates to the multi-value attribute (to maintain the functionality that depends on this attribute and its multiple values) and also write it to a separate single-value that is constantly being updated, rather than appended to.
Something like:
One attribute called MyValueMulti as a multi-assign.
AND
One attribute called MyValueLatest as a single-assign.
Regards,
Patrick Rafferty
http://branchbird.com -
How can I recognise the text in only the top portion of a page?
I am using Acrobat XI Pro and wish to recognise the text in only the top portion of a page. The document is made of of pages of music and I only want to be able to search the title section of each page. Recognising the text in the body of the music makes it difficult to search and find each piece. How can I apply Text Recognition to only the top portion of each page? And if possible how do I apply this to multiple pages simultaneously?
The other option I considered was separating each piece into its own file. However it is convenient for me to have all the pieces in one file if possible.Thanks Test Screen Name,
Yes, "zoning". I can stop trying now.
Thank you -
Stuck screen in adobe elements organiser, can't get to the top of the page
imac 27inc mid 2011
osx 10.9.3
processor 2.7ghz
memory 4 gb
adobe photoshop elements 11
the adobe organiser screen all works fine. I just can't get to the top of the page! I can broaden and narrow the screen, but not get to the top of the page.If the issue is only happening with Elements, then please either post in an Adobe Elements forum or contact Adobe directly for support.
-
How can I sum all the amount per line?
HI,
How can I sum all the amount per line?
EXAMPLE:
[code]
TOTAL:
1,000 2,000 5,200 $8,200
400 1,200 6,000 7,600
[/code]
THANKS!!If you are sure of the number of columns that you are gonna get then you can add them to a variable and display.
total = itab-col1 + itab-col2 + itab-col3.
If you dunno how many columns will come , you have to use field symbols.
Say the datatabse table has 16 columns which will contain your price and you have to calculate the sum of all those , then assign them to field symbols and calculate.
Have a look at the following code.
FORM GET_VALUES_FROM_COSS .
FIELD-SYMBOLS: <FS1> TYPE ANY.
DATA: V_COMPONENT1 TYPE I.
V_COMPONENT1=31. " your field of table from which amount field starts
Cumulate the posting values of all the 16 period buckets as to get
total production order cost. This is to handle the partial posting of
production order values in different periods.
DO 16 TIMES.
ADD 1 TO: V_COMPONENT1.
ASSIGN COMPONENT V_COMPONENT1 OF STRUCTURE COSS TO <FS1>.
IF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR1.
ADD <FS1> TO I_FINAL-PL_LABCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR1.
ADD <FS1> TO I_FINAL-ACT_LABCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR2.
ADD <FS1> TO I_FINAL-PL_MATCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR2.
ADD <FS1> TO I_FINAL-ACT_MATCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR3.
ADD <FS1> TO I_FINAL-PL_OPCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR3.
ADD <FS1> TO I_FINAL-ACT_OPCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR4.
ADD <FS1> TO I_FINAL-PL_FACCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR4.
ADD <FS1> TO I_FINAL-ACT_FACCOST.
ELSEIF COSS-WRTTP EQ '05' AND COSS-KSTAR EQ C_KSTAR5.
ADD <FS1> TO I_FINAL-PL_LABCOST.
ELSEIF COSS-WRTTP EQ '04' AND COSS-KSTAR EQ C_KSTAR5.
ADD <FS1> TO I_FINAL-ACT_LABCOST.
ELSEIF COSS-WRTTP EQ '05'.
ADD <FS1> TO I_FINAL-OTHER_PL_COST.
ELSEIF COSS-WRTTP EQ '04'.
ADD <FS1> TO I_FINAL-OTHER_ACT_COST.
ENDIF.
ENDDO.
ENDFORM. " GET_VALUES_FROM_COSS
Let us know if u need more inputs -
I have imported a CAD file and after closer examination it seems that the file was created with redundant lines on top of each other. Is there a way I can select only the top "layer" of lines?
I say "layer" in quotes because this file has no actual layers.
TIA!!
DeanHi,
You can implement mouse listener for panel and you can identify buttons in the panel with the mouse event of panel using MouseEvent.getComponentAt(MouseEvent.getPoint()) instanceof JButton or not.
I hope this will help,
Kishore. -
I added subtitles to a movie clip using the ticker tape option. When viewing on the iMac, the words are visible, however, when playing it in the tv, only the top half of the words are visible. Does anyone know why?
I would agree with Keith Barkley, it may be the TV Safe Area. You can see what spots might be blocked out or cut off by going to iDVD and opening the original DVD project, under the View Menu > Show TV Safe Area. If your title gets cut off by the cropping rectangle displayed, that may account for the cut-off.
-
Get every 10 sec a int.value and need to take the sum of the last 18 values
Hi,
i get every 10 sec a int.value and need to take the sum of the last 18 values (3 minutes).
the programm should work permanently.
I tried with a 1d-array but didn´t get a result. Could anyone help me?
Best regards
kascheUse the example in the posted link, then add another shift register for your sum of all elements. Dont add all the elements every time, add them to a running total when they come in. You will need to evaluate how big this number is going to get, however, and decide if you should use an I64 for your running total of all elements. Even this will overflow eventually.
So your code would look like that posted by GerdW in the above link, then add a shift register with a starting value of 0. Then add your input value to the value comming from this shift register and send the output to the shift register's output terminal. This creates your running total of all values. The code by GerdW provides your "last 18 elements" total in a very efficient manner, just change the 15 to an 18.
I have attached a sample bit of code to make it clear. I saved it in LV 8.0 so more people can open it.
CyberTazer
Software Systems Engineer
Attachments:
Running 18 total.vi 11 KB -
How can I print ONLY the active document?
Whenever I go to File/Print the darn PSE 9 program sends all of the working files in the bin to the printer. I've searched online for 2 hours now looking for an answer.
I like to work with having several to many files in the 'bin' and prefer to only print the active file I'm currently working on without having to close the 'working files' before I can print. How can I print ONLY the active document or file in the project bin? Please help, I've upgraded from PSE 3 to PSE 9 and really like the updated features, but this one pain in the neck default is getting the best of me.Thanks for your help, that works nicely. It is good to have control of the printer again.
-
i was running safari on my ibook and all of a sudden it stoped working it wouldnt load the page only the top of the page would load. so i went to firefox but when i stream videos of firefox they always seem to be jumpy. so i have recently downloaded the latest safari again and i am still having the same problem as before where only the top of the page ill load?? i have the latest updates of osx 10.5.8. i believe its something to do with my computer???
iBook G4/1.42 14-Inch (Mid-2005 - Op) 1.42 GHz PowerPC 7447a (G4)
Intro. Date: July 26, 2005 Disc. Date: May 16, 2006 Order No: M9848LL/A Model No:
A1134 (EMC N/A) Subfamily: iBook G4 - Mid-2005 Model ID: PowerBook6,7 Std. RAM: 512 MB Std. VRAM: 32 MB Std. HD: 60 GB (4200 RPM) Std. Optical: 4X "SuperDrive"
this is the one i have that is the same amount of ram on it to -
after upgrading to IOS 5.1 I no longer can see Verizon at the top of my Iphone and under settings>general>Network>says Not Available Why is this? Did the upgrade cause this?
steveSee this tip --> http://support.apple.com/kb/TS1559
If this doesn't resolve it you most likely have a hardware failure. Fortunately, your phone is in warranty, so if you take it to an Apple store they will replace it.
Maybe you are looking for
-
Can't mount USB mass storage device [RESOLVED]
I plugged in my iRiver mp3 player in an attempt to transfer files to it from my hard drive and it prompted me what I wanted to do with it (do nothing, open a folder, etc.). Irrepsective of which alternative I choose, I get the following error: Error
-
F10 - create video DVD from recorded TV programme
When I try to create a DVD from a recorded TV programme on my Qosmio F10 I get the following message- "Media in the CD/DVD drive is not writable by Media Center" I know that the media is writable by the Qosmio under normal windows but under Media Cen
-
Undefined operator in a String calculation
Hey, i am just trying to do a simple calculation with a String, however Java tells me that the operator '>' is undefined.. I don't see why this would be..? for (int x = 0; x <= 7; x++) { for (int y = (x + 1); y <= 8; y++) {
-
Change the packet size at infopackage level
Hi, Experts: All loads (full or delta) in the system can split data into small packets expect for one full load, which has almost 2 million records into 1 packet. It overflows the memory and fails. I found the following settings for this datasource w
-
Social Security Number.
Hi gurus, I am not able to get the solution for this quirey, can any body help me what can be done..... "WebIC search using the SSN does not work. Does not return a value. This was added shortly after go live and may have been mapped to the EKUN fiel