TOP N function and OTHER values that are not in the TOP clause

Hello... It's easier to explain with examples. Assume there is a table with 5 records. You will have to order them and use a TOP N feature to display 3 items albums. So far, it's easy!

But I need to show all others 2 records like the OTHERS, and have all the summaries. It would be something like this:

The flattened table:
Code     Value
1     2,000
2     1,500
3     1,000
4     800
5     600
And I need to show it in responses like this:
Name     Value
Number1     2,000
Number2     1,500
Number3     1,000
OTHERS     1,400
How can I show OTHERS for these values that will be excluded when I create a TOP N function?

Thanks in advance

Hello

Visit this link,

http://obiee101.blogspot.com/2009/08/OBIEE-TopN-versus-rest.html

Thank you
Vino

Tags: Business Intelligence

Similar Questions

  • Separate the values that are not in the hierarchy...

    Hi all

    Please help me build the following query:

    Parent child
    ==== ===
    10 20
    20 30
    30 40
    50 60
    70 80

    etc... In the above data we ensure there's a great single parent say 10 and values 50,60,70,80 etc are not attached to the grandparent 10. so I need to display values that are forgotten to fix on the Top 10 of node that is to say, here 50,60,70,80 etc. If my query is useful in retreving these values then I can attach them to the hierarchy.

    Thanks in advance.

    Kind regards
    Kalyan
    SQL>WITH t AS
      2       (SELECT 10 AS par, 20 AS chi FROM DUAL UNION ALL
      3        SELECT 20, 30 FROM DUAL UNION ALL
      4        SELECT 30, 40 FROM DUAL UNION ALL
      5        SELECT 50, 60 FROM DUAL UNION ALL
      6        SELECT 70, 80 FROM DUAL)
      7  SELECT *
      8    FROM t
      9   WHERE chi NOT IN(SELECT     chi
     10                          FROM t
     11                    CONNECT BY PRIOR chi = par
     12                    START WITH par = 10);
    
           PAR        CHI
    ---------- ----------
            50         60
            70         80
    

    HTH, Urs

  • How to find computers that are not on the domain in an Active Directory forest.

    Hello

    I'm looking for a tool that can scan a subnet and give me the list of computers that are not on the field, but connected to the network. My company has recently spent a lot of users of the task force to the area, but there is a population of users who are unwilling to join the domain and still using the local administrator to log on to the computer.

    These computers do not meet the domain policies applied and causing many problems with the network and other systems on the field.

    Help, please.

    concerning

    Syed M. Uzair

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.msdn.Microsoft.com/forums/en-us/home

  • AF:inputListOfValues except the values that are not defined in LOV

    Hello

    I have a requirement where the user can select a value in the given list and if the desired value is not available,
    He can type a new value.

    Currently I use af:inputListOfValues and it tries to validate the new value with the list of values, he gives
    a mistake. True = immediate adjustment will not solve the problem.

    Is their all component which can solve the purpose. If not, how can I do af:inputListOfValues to accept a new
    a value that is not in lov.

    Thank you
    Amit

    Have you tried to delete f: validator in the component?
    Look here Re: inputLOV - disable autocommit

  • How to block emails that are not in the list of contacts

    I have several e-mail everyday on sexualy explicit materia.  I put in my email account to block those who are not in the list of contacts, so they'll JUNK, but I need to check my JUNK e-mail folder frequently if there is something in there for someone that I have to answer.

    With some of the emails that I can "unsubscribe", but there must be a way to disable these ugly e-mail.

    Any suggestions?

    Margin

    I have several e-mail everyday on sexualy explicit materia.  I put in my email account to block those who are not in the list of contacts, so they'll JUNK, but I need to check my JUNK e-mail folder frequently if there is something in there for someone that I have to answer.

    With some of the emails that I can "unsubscribe", but there must be a way to disable these ugly e-mail.

    Any suggestions?

    Stopping the churn.  If they are unscrupulous - that simply confirms your e-mail address is * well * and it will be resold to new lists.

    Specifically, add them to your list of mail JUNK when you can, if you doubt, you will always receive an email, just to be sure, their entire domain.

    The only other suggestion is to get an other email address for your personal & business needs and start using it.  Make sure that you register for what whatever randomly with this specific e-mail address (control which give you out.)  A * lot * of junk mail occurs usually because someone came to something random at some point and then the address obtained on a 'list' that was happening around / sold.

  • How can I find the images that are not in the catalogue?

    I imported about 600 photos of a friend of Wakeboarding in Lightroom. I then analyzed quickly through them and remove those who were not good.

    I wanted to delete these photos in the album. However, in about 10 cases I accidentally their removed from the catalog, not from disk.

    All photos of the wakeboard are in the same folder; There are no other images in this folder.

    Is there a way to find out what images are in this folder, but are not in the Lightroom Catalog?

    Rotaluclac

    Probably the easiest way would be to reimport them in their folder (make sure that the box Import suspected duplicates is enabled).

    Those who imported will be reflected in import previous "collection." In the grid view, select all and press the delete key. Click the appropriate button on the box that appears.

    HAL

  • The columns appear in the data store that are not in the table

    Hi guru,.

    I have a table that I built in Oracle and added to ODI by refactoring it, but when I add it as a source to my interface, it contains columns that are not physically in the Oracle table that I can look into a TOAD. I dropped the prior of the table deleted-> interface-> reverse engineering table but I get an additional column. Y at - it an explanation for that? I have the table listed in a stored procedure - should I delete this step as well before reverse engineering, or is something else.

    Thanks in advance.

    Mike

    Yes. There is a possible explanation. How do you are engineering it? If you use Oracle RKM, you may be using a customized version of this KM which adds a column of your table name...

  • How to remove the guard Mac and other ads that are always popping up in my browser

    During navigation, this guardian of Mac and other ads are still popping up in my browser. I tried to delete cookies, but they appear again. I'm fed up with this. Anyone with solution pls help.

    http://www.thesafemac.com/art/

    How do we uninstall mackeeper

  • How to remove programs that are not in the folder "programs". Especially must delete Incredimail and Blekko other programs.

    I would like to uninstall programs Blekko like Incredimail and others.

    Hello JEFoulke,

    In addition to information from SC Tom, you can try the uninstall from the FixIt Solution Center:
    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    If this does not help, you can search the Internet for programs uninstall 3rd party software.

    Let us know if that helps.

    Thank you!

  • For a given file, how to add and change file properties on the Details tab, for properties that are not in the properties list?

    Now, I am aware of the modification of the properties of the file is simple in Windows 7 Explorer. Select a file, 'Properties', then tab "Details".  Some are not editable, and that's understandable.  Click on next to any area classified as year, Genre, Publisher, etc. and the apply.  No problems so far.

    Then of course in Explorer, when you right click on a column header, you get several choices of column beyond the usual that is displayed by default; Date, the Type, size, etc.  But, there is an option "More...", which has up to now, MUCH more useful properties to choose from, such as the model project, Department, job statusand so on.

    It's fantastic!

    But when you look into the details of any given file, none of these additional properties even are listed to be edited.  Why offer to view these details, if you don't change them, or add them to different files?  I must be missing something.  I do not need to add my own custom details, this additional list has a choice, that I need; If only I could edit the files to get this info.

    How to add and change these properties to files?  Word, Excel, MP4, AVI, JPG; I would add these properties, so I can set directly in the Solution Explorer, as you would by name or Type.

    Any help would be greatly appreciated!

    My experience is that most of these 'extra fields' no existence not as fields in the directory (folder) itself.  On the contrary, these fields exist in the target file itself. Each file type has its own format and established file except for the types of files that belong to Microsoft, Microsoft cannot control or arbitrarily change the format of a particular file type.

    For example, a ".jpg" file  The format of this file type allows a large number of areas such as comments, Tags, date taken, opening, device manufacturer and so on.  If you go into the properties on a .jpg file, you will see a lot of them and will be able to change.  After changing any of these fields, you will find that the file itself has been changed to contain this information (as can be verified by the parity of the file and to come check upward with a different checksum).  If you display one of these fields in Explorer and 10000 ".jpg" files in this folder, then Explorer must open each of these 10000 files to extract the data in the corresponding fields, you have chosen to display.  May take some time.

    Compare that to the same picture saved to a file ".bmp".  The ".bmp" format has no provisions for any of these fields, so you will not be able to view, save, edit, or sort by them.  If the editable fields are directly related to the type of file that is displayed.

    Microsoft has apparently interviewed a lot of file types and made a compilation of the editable fields in each type of file and the Union of the selected fields in which can be displayed and modified.   That's apparently what you see in the option «More...» ».   So, in summary, the file type determines which fields are available for editing and posting.

    HTH,

    JW

  • Totals based on values that are generated by the formula in the column

    For a report of historic opportunity, we have made a new column that generates a value (the type of contract) by the calculation of the duration of the contract. For example "Short term" (less than 12 months) or "Long term" (over 3 years). We do this by the CASE statement. Now, we want to have an overview by country of the number of possibilities of "short-term" contract, the number of contract opportunities 'Long term' etc. However, it seems that we can not display the metric of opportunity 'number of possibilities' as a total according to the result of the column that shows the type of contract. Someone knows how to fix this?

    Create another column and use the formula Count (possibility." The opportunity ID").

    Once you create this form - use a pivot and view the results

  • PDF and 3D files that are not in a recognized format

    If I have a 3D file that is not in one of the recognized formats, it is possible to use the Adobe SDK to get Acrobat to read and make a PDF? If it is possible I have a full explanation, I just need to be headed in the right direction.

    Thank you

    Yes, you can.

    See ImportToPRCBrep and ImportToPRCTess for examples of code showing how to put

    your data in 3D PDF (there is also some docs on the analysis and establishment of PRC files and creating 3D Annotations).

    But if the format is complex and rich in features, you will have problems with undocumented parts of the standard of people's Republic of CHINA when writing your converter.

  • Download problem - links / download files that are not in the indd file

    An article in a folio gives us problems that no other items are. It takes ages to download and seems to be download links that aren't in the indd file.

    The INDD file contains nothing complicated, multiple MSS and an object using the image sequence. Any ideas why it could be downloading files not used in the indd file?

    Is there an overlay Web content in the article? In some cases, people are unable to join the local HTML files in a single folder, so article will post a bunch of unnecessary files.

  • The images appear when printing that are not on the screen

    Sorry if this has already been covered - I can't find an answer with any of my research...

    I use Indesign CS3 in a Vista environment.

    I created a document in CS3 that contains images tiff, jpeg and pdf placed in it.

    Everything looks fine on the screen, but when I print a test in black and white on my HP laserjet pages contain an image where a 'ghost' of the image above it on the page is printed on it.

    "Ghost" images are always compensated by about 1/3 - 1 / 2 of the picture, they are printing on and disappear if I move the image of the 'ghost' comes off on the side.

    The "ghost" does not appear on pages where there is one picture above the other, does not seem to be limited to some combination of file types.

    It is not on the page outside a rectangle areas encompassing.

    I've tried mucking around with some print settings, but my knowledge is a bit limited in this area.

    This happens if I print all right out of InDesign or if I export the document as a pdf and print from that.

    I've never had this problem before using previous incarnations of this software and you want to go coloring print until I know if this might just be an artifact of the test B + W printing process, or if it's something else.

    Thanks for your help.

    Mingstru.

    First the good news. It's not your software, everything works fine.

    Now, the bad news; It's the printer... the easiest way to make sure is to print it on a different printer.  The fact that you barely notice it's probably because your pinter gets older, or need some replacement of consumables.

    As to how to solve this problem there are not that many, you can do it, you might try to print either way up, according to your location of the image, it would be not so sensitive.

  • How to track the URLS that are not in the 'history', but were actually visited by the browser?

    I open a page web mith several links that appear the same:
    www.someurl.com/somepage.SD#
    When I click on links, the section of the web page is expanded and more information is displayed. the web page contains JavaScript. So, I want to follow the real URL that the browser visits.

    These data are retrieved via a XMLHttpRequest to rebuild the part of the page and the URL in the location bar remains the same.

    You can see in the Web Console (Web Developer > Web Console;) CTRL + SHIFT + K) as a POST and GET action.

    You won't see a history entry in this case because you are not actually visit this web page.

    These data are simply used by JavaScript to update the content of the current page.

Maybe you are looking for

  • MIC Stand Pro 9.7 "iPad support

    What is the best microphone for a Pro 9.7 "iPad support?

  • Photos - How can you tell if you have already moved a photo to an album >

    I have 4000 photos to sort photos with some already created albums. I systematically go through them in the display of Photos (one with the master of all copies) and sorting them into albums. So I could spend 10 photos to an album, and then return to

  • HP Pavilion x 360-11 t - k100 CT: RE8723BE not without wireless/n

    HP Pavilion x 360-11 t - k100 CTO (ENERGY STAR) model #: L8T22AAR with a Realtek RE8723BE wireless card. This card is meant to be b/g/n.When I look in the advanced settings it shows only:1 'auto '.2 "IEEE 802 b"3 'IEEE 802 .11b/g.Initially, it was a

  • HP 2000: Power locked password

    Please can someone remove me the power on password on my new HP 2000.   After three tries, he give me the code 62951022 thanks.

  • DOWNLOAD 7DII and camera raw

    Had my 7DII in hand for about 10 days. Everything was fine until tonight. I down loaded the culture of days using Canon EOS utility, all as I have been all along. However when I tried to open the raw Photo 12 store it does not, even when I tried CS6.