Display top 5 records

Hi Friends,
i've a prompt in my dashbord, based on the prompt the report values will display right,
my requirement is that i want display only top 5 records,
how will you do that

Hi
Create a prompt with a column and assign presentation variable in it.
In report for measure give the function as topN in edit formula.The syntax is shown as
TOPN(expr, integer)
If u want top 5 then TOPN(Measure Column,5) give filter to this column with presenntation variable
We can do it with 'rank' function also like this
Rank(Measure column)
Otherwise,Use TopN filter in the report.But it shows 5records statically.For this there is no need of prompt.
Thanks
Don

Similar Messages

  • To display top 7 records in the dashboard

    hai,
    while iam creating the a report with top 7 records to be displayed but, it dispalys only 5.
    plz let me know the correct way to approach it.
    thanks in advance.

    yah! the data is displayed by using "is in Top" function as a filter.
    7 records are displayed, without the year column.
    thanks we found the answer. we think that only year column, which is displayed in that table view made this issue.
    thanks for response....
    thanks kishore..... sorry to disturb ur time.

  • How to display top n records(sorted by no of defects) within date range

    I would like to display top n production orders(sorted by defects linked with each order) within the date range entered by the user.
    Please advice.
    I have 3 parameters to my report:
    1. n(n is no of top records to be displayed)
    2. From date
    3. To date
    Appreciate quick response.
    Regards,
    Hari

    if you use the parameters in the report by placing them in the record selection it should display the records within your date range.
    if {date field} in ?start to ?end then true

  • TOP 3 Records

    hi,
    i have a table CATEGORY.There are two Column CATEGORY_ID and CATEGORY_NAME.
    if i have Multiple record corresponding CATEGORY_ID.
    i want to display only top 3 Record like.
    1---A
    1---B
    1---C
    2---O
    2---E
    2----F
    3---JJ
    3---YU
    3---LK
    How can i display top three Record in Report.i have no PK In taht table.
    Thanks

    try:
    select CATEGORY_ID,
    CATEGORY_name from
    select
    CATEGORY_ID,
    CATEGORY_name,
    row_number() over (partition by CATEGORY_ID order by CATEGORY_name) rn
    from
    CATEGORY
    where
    rn <= 3
    also check
    http://nimishgarg.blogspot.com/2010/02/oracle-sql-rank-denserank-rownumber.html
    Nimish Garg
    http://nimishgarg.blogspot.com/

  • Displaying latest top 5 records...

    Hi
    I want to display top 5 sales records at BEx level to the newly loaded data.
    Info objects are plan, date, sales currency etc..
    Data can be loading and BEx report execution can be done on daily basis.
    The report should display top 5 sales records of latest data load when the report is executed.
    Santhosh

    Hi
    Refer Below Blog in SCN   Posted By AL. Here  He  Explained in Detail how to Handle this  Kind  of scenarios.
    How to show First and Latest Record at BEx Level
    Regards,
    Seshu.P

  • Selecting Top N records in a table using a slider or drop down list

    Hi Experts,
    I have a query that  displays 1000 records ( say) in VC iview.
    Can i have a drop down list in the variable form to control the number of records displayed in the output table by the user .
    or can i have a horizaontal slider ( Min value is 2 -max 1000)  to display the number of records in the output table  selected by the horizaontal slider.
    basically iam having a requirement to give the user the capability to select the Top N records of the output table...where the user enters the N value in Drop downlist of variable form or user slides the N value using Horizontal slider
    Thnaks
    P.Navakanth

    Hi
    Yes it is possible. First you need to create 'Condition' in BEx query where you have to create 'TOP N' & 'N' should be a variable input. Then you will get this in 'Variable Screen' of a query. In VC for this same variable you can use slider. Use 'Select' function in the 'Action' of the slider & pass it to require table/graph.
    Try this, this will give you the required result.
    Regards
    Sandeep

  • How to Get Top 10 records using SQL select statement.

    :-) Hiee E'body,
    I want to generate a sql report in which I only want the top 10 records based on the numeric value of a column.
    For Example,
    To generate a Location Wise, Employee Wise Years of Service Report.
    Here I need the Top 10 Employees according to their No. of Years of Service for all the existing locations using a single query.
    eg.
    Location Emp No. YOS
    India - 22 30
    212 28
    819 24 ...
    US 123 40
    312 33
    90 33
    144 30 ...
    UK 77 20
    79 20
    331 18
    109 16 ...
    Every Location should display their respective Top 10 Employees
    regarding their No. of Years of Service.
    Please let me the know the solution to this.
    Have a nice day.
    Thanking You,
    Vivek Kapoor.

    For example if the table contained (India rows only shown) :
    India 202 30
    India 212 28
    India 819 24
    India 820 24
    India 900 20
    India 920 18
    India 922 17
    India 925 16
    India 926 15
    India 927 14
    India 928 13
    India 929 13
    India 930 12
    do you want to see
    India 202 30
    India 212 28
    India 819 24
    India 820 24
    India 900 20
    India 920 18
    India 922 17
    India 925 16
    India 926 15
    India 927 14
    or
    India 202 30
    India 212 28
    India 819 24
    India 820 24
    India 900 20
    India 920 18
    India 922 17
    India 925 16
    India 926 15
    India 927 14
    India 928 13
    India 929 13
    Also if the India rows were
    India 202 30
    India 212 30
    India 819 30
    India 820 30
    India 900 30
    India 920 30
    India 922 30
    India 925 30
    India 926 30
    India 927 30
    India 928 30
    India 929 30
    do you want to see
    India 202 30
    India 212 30
    India 819 30
    India 820 30
    India 900 30
    India 920 30
    India 922 30
    India 925 30
    India 926 30
    India 927 30
    or
    India 202 30
    India 212 30
    India 819 30
    India 820 30
    India 900 30
    India 920 30
    India 922 30
    India 925 30
    India 926 30
    India 927 30
    India 928 30
    India 929 30
    Please clarify.
    Thanks,
    Partha

  • Layout and Pagination... Limiting my data to top 500 records

    Hi,
    My report is based on SQL, it's displaying only top 500 records... May I know how to fix it...?
    I've tried different options under Report attibutes -> Layout and Pagination but no success yet
    Thanks

    Try closing OAE and the application if running.. Seems like the changes don't take effect until you come back into OAE... At least that is what mine does.

  • ABAP Query to display top 5 employees who are having highest salary

    How will you write a query in abap to display top 5 emplyeee records who are having Highest Salary Among all the employees.
    Please Reply...

    Hi Kush,
    Before writing any Database Query, always keep 2 important thumb rules in your mind :
    1. Keep the number of data base access small
    2. Keep the amount of data transfer small.
    As you mentioned the Database Table has only 100 records, you can locally buffer the Table. So, make a local buffering and then you can sort the table based on the salary.
    Select *
      from Table_name
    into table gt_itab.
    Sort gt_itab by salary descending.
    Now you can read the  entries one after the another based on the index.
    Have a look at the following code for an efficient performance feature. Goto SE38 and have a look at the ABAP Examples.
    demo_select_some_columns. Package : SABAPDEMOS
    Hope this will help.
    Thanks,
    Samantak.

  • Only show top 2 records

    My report link to an Excel database, in my Excel, I have two columns, like:
    VP      Revenue
    A1     7
    A2     6
    A3     15
    A4     8
    A5     9
    how can I only display top 2 VPs and their revenue in my Crystal report, like
    VP           Revenue
    A3            15
    A5             9
    You think it's easy? it's easy in Excel but not in Crystal.
    hiccup

    you can do a top n sort where you select the number of records to display
    or you can sort by revenue descending
    then do a record count and supress the records based upon that.

  • How to display top Position Level using conditions / Exception Aggregation

    Hello,
    I have the following problem where I need to list out the row with the highest POSITION LEVEL (with reference to BUSINESS PARTNER). I have tried out all possibilities including Conditions and Exception Aggregation (MAX) but nothing seems to work. Conditions work to an extent i.e. it shows the top position level but unfortunately for the entire query result i.e. only one row is displayed in the result (the first row to satisfy the condition) instead of all the rows for each Business Partner. POSITION LEVEL is a KEY FIGURE value. It also exists as a CHARACTERISTIC under a diferent name in the cube. How can I solve this? Pls help.
    This is how the report looks at present...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     1
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     1
    This is how the report looks when I use conditions...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    This is how the report should look...
    First Name     Last Name     Business Partner Nr.     Date of Birth     Postalcode     City     Position Level
    Testfallini     Enzweiler     3000000020     21.10.1990     63674     New York     1
    Tamara     Dimmer     3000179274     10.09.1987     54689     Chicago     2
    Thu-Ha     Tran     3000069951     25.12.1988     93047     Atlanta     2
    Thanks in advance,
    SD

    Hi Sebastian,
    I thought you need to display all the records with the highest position level at top. But now I realize your requirement.
    It should only display only the maximum position level for each level.
    You can try using the Condition for the position level KF, with Top N operator and value = '1'
    And then go to char assignement tab in the exception and select Most Detail Chars along Rows/Individual Chars. and combinations for the required combination of Chars.
    [List Condition for All Characteristics in Drilldown Independent|http://help.sap.com/saphelp_nw04/helpdata/en/86/dfc405ab60524ea0d3e89db15fb2e7/content.htm]
    [Defining Conditions |http://help.sap.com/saphelp_nw04/helpdata/en/73/702e39074dc93de10000000a114084/frameset.htm]
    Hope this helps....
    Rgs,
    Ravikanth.

  • Material Description is not displaying for few records in Report

    Dear Experts,
    Report Material Description is not displaying for few records in Bex Report but for records it is coming and even the heading of the material Description is also not coming for this report.
    Cud u plz suggest a good solution for it.
    Regards,
    Sai Phani.

    Hi Phani,
    For the text of the material in records, check if there is text maintained for that material in the master data. also try by changing the text to medium text and long text.
    regarding header, you will have same heading for key and text, you may use Materail ID / Description as the heading if you want.
    regards,
    Rk.

  • How to display the NULL records by multiple XMLTABLE()

    First, let me provide the testing data of INSERT and CREATE TABLE sql:
    create table xml_t2 (xml_raw XMLTYPE);insert sql, a bit long.....just copy and paste then run it will be OK!
    the system warns: Your message exceeds the maximum length of 30000 characters.
    So, I place it on the mediafire shariing space
    http://www.mediafire.com/?npmot6lgl86dgliTesting SQL:
    SELECT t1.years, t1.months,t1.days,t1.hours,t1.value,t2.value
            FROM xml_t2,
            XMLTABLE ('$d/cdata/F1' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t1 ,
            XMLTABLE ('$d/cdata/F2' passing xml_raw as "d" COLUMNS years integer path '//year', months varchar(3) path '//month', days varchar(2) path '//day', hours varchar(2) path '//hour', mins varchar(2) path '//minute', value float path '//value') t2The condition for now is....In the xml data, I have deleted the month 'Jan' with <F2>tag which is in 2010.
    That mean the output of XMLTABLE t2 will not contain the 'Jan' records but it is still remain in XMLTABLE t1.
    The problem is that when I use the above SQL to show the t1.value, it will not display the t1.value in 2010 Jan.....it just skipped 'Jan' and becomes 'Feb'...
    what i would prefer to display is something like this:
    YEARS MONTHS DAYS HOURS t1_value t2_value
    2009     Jan    01   01       8       8
    2009     Jan    01   02       8     580
    2009     Jan    02   01     580     580
    2009     Jan    02   02     580     580
    2009     Feb    01   01     440     440
    2010     Jan    01   01     627     NULL
    2010     Jan    01   02     627     NULL
    2010     Jan    02   01     367     NULL
    2010     Jan    02   02     367     NULL
    2010     Feb    01   01     367     849
    2010     Feb    01   02     849     849
    ..............So...the main problem is how to display back the record in JAN in 2010 in t1 XMLTABLE and assign null to the t2 XMLTABLE since it doen't contains this months record.
    THANKS for help!!

    Hi,
    What's your database version?
    Are you using binary XML storage? (This is the default in 11.2.0.2)
    If not you have to explicitely specify it :
    create table xml_t2 (xml_raw XMLTYPE)
    xmltype column xml_raw store as securefile binary xml;Along with object-relational, it's the best storage strategy to use in conjunction with XMLIndex.
    You should also use a structured XML index instead, it's more appropriate than the unstructured index you're currently using :
    create index xml_t2_sxi on xml_t2 (xml_raw)
    indextype is xdb.xmlindex
    parameters (q'#
    XMLTABLE xml_t2_xt '/cdata'
    COLUMNS
    YEARS  INTEGER    PATH 'F1/name/year',
    MONTHS VARCHAR(3) PATH 'F1/name/month',
    DAYS   VARCHAR(2) PATH 'F1/name/day',
    HOURS  VARCHAR(2) PATH 'F1/name/hour',
    MINS   VARCHAR(2) PATH 'F1/name/minute',
    VALUE  FLOAT      PATH 'F1/name/value',
    VALUE2 FLOAT      PATH 'F2/name/value'
    call dbms_stats.gather_table_stats(user, 'XML_T2');Use the query provided by Stew and check the explain plan, you'll see the difference.

  • How to display top 10 values in a Webi report?

    Hi,
    I have the following requirement.
    If the report contains 'State' and 'Revenue' columns, I need to display top 10 cities with highest revenue and the revenue of the remaining cities can be summed together and should be available in a separate cell.
    I tried several formulae to achieve the requirement but was unsuccessful.
    I created a variable using the formula: '= If (Rank(<State> ,<Sales revenue>)>10 ) Then Sum(<Sales revenue>) Else 0' and added it as a column in the report. This provides the required results.
    When I add this variable as a column in the report, it displays 0 for the first top 10 values and only displays the remaining values. After that we can apply the Sum on this column to get the sum of the remaining (Other) sales revenue excluding top 10 values. However I cannot display this sum in a separate cell.
    Please provide some suggestions on this.
    Regards,
    Aditya Joshi

    Hi Aditya,
    Could you please try the following solutions to resolve the issue.
    Solution1:
    In Oracle, there is a function called: RANK() OVER (PARTITION BY () ORDER BY ()) which can be used to define an object at Universe level to return a rank position when used in a report. If you can check with your DBA - there is a similar function available for SQL Server. It should be RANK() OVER (ORDER BY colname) AS () FROM.
    Solution2:
    Or you can also try returning all rows in query, apply sort at report level & apply alerter to highlight the top 10 values.
    Regards,
    Sarbhjeet Kaur

  • Display current month records only

    Hi Experts,
    I have the following requirement.
    Report should display current month records only.
    For example If the report is run on 20090324, It should display records from 20090301 to 20090324.
    That means,  report may run on any date of that month, It should display from 01 (of that month) to current date.
    I have a select statement saying
      SELECT * FROM likp
      WHERE wadat_ist BETWEEN month_start_date AND sy-datum          
        AND vkorg IN s_vkorg
        AND vkbur IN s_vkbur
        AND kunnr IN s_kunnr.
    How to calculate date for month_start_date, so that it can display only current month records.
    Thanks in advance
    Rohan

    Hi Kunta, Suhas, Nandi,
    Thank you for your quick reply, I really appreciate it.
    for this current month records, I need to display a check box saying
    Open orders  and shipments with the current month.
    But where as Selection text is accepting 32 characters only. Is there any possibility to overcome this?
    Thanks in advance
    Rohan

Maybe you are looking for

  • How to link Excel Chart with multiple columns dynamically?

    Hi all, I have one problem. I have an excel chart which has to read data from multiple columns for it's X-axis values (time stamps) and the same number of values for it's Y-axis from multiple columns. See figure attached. Now, you can do this by manu

  • Forms Server Error

    Hi When I am running a form i am getting the following error: FRM-92101 : There was a failure in th Forms Server during startup.This could happen to be invalid configuration.Please look into the web-server log file for details. I am using Oracle 10g

  • Can't open a poblem ticket with SAP support hot-line

    Before calling the SAP Support Hotline (800-677-7271), please have your "Partner#" at hand, then follow the instruction below to proceed: Please call 800-677-7271 (option #1) and open a ticket Please specify: customer# 179009 Partner#: ??????? Compon

  • Smooth-scrolling layouts

    Hi everybody, I tried to use a suggestion described by Colin Fleming in one of his video regarding "Smooth-scrolling layouts" but it seems I am not able to make it work (I get an error from Folio Builder). Do anyone has been able to create a .folio w

  • Generating Oracle reports o/p to xls format.

    Hi all, I have few reports which run while being called from forms.All the reports display a parameter form before generating the o/p. Is there any way using which one can generate the o/p in MS-Excel format. Thanks in advance. Rajeev