Skip to Content
author's profile photo Former Member
Former Member

Row Number

I need to get the row number on IDT. How i can get the row number? Basically i need to add a prompt using this number. if user give 200 as a input then the report should show only 200 (It can be anything top or bottom).

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2014 at 05:56 AM

    Create a object using function Row_Number() and apply prompt on this object // gives you the Row number.

    ROW_NUMBER

    ROW_NUMBER (Transact-SQL)

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 08, 2014 at 03:43 PM

    Hi, take a look at this

    How to create a row number in a table that allows filteringcan give you a clues.

    Cheers,

    Rogerio

    Add a comment
    10|10000 characters needed characters exceeded

    • @:Rogerio: I believe the OP wants to filter the number of rows returned by a query, based on user input. Passing a parameter would only work if the table contains a row number object exposed to the universe, which is of course a viable option if this criteria is satisfied.

      @OP: You can use the database ranking function in the query designer (if your DB supports it) to achieve this, but this is going to effect a ranking - not strictly speaking just returning 'n' rows - and you'll need a measure object in the query for a ranking basis.

      There's probably numerous ways to do this at the Universe / semantic layer level; if you want to do this just at the report level, I think you'll struggle.

      HTH

      NMG

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.