How to show top n rows in a table

  • I have a table in a report that I only need to print the first 3 rows. I am using report viewer with website data source so I can't do a separate dataset.

    I tried this and get the error below:

    = IIf (CountRows ((Fields!First_Name.Value) &" "& (Fields!Middle_Name.Value ) &" "& (Fields!Last_Name.Value)) >3,false,true)

    Error: The Value expression for the textbox ‘EX_Name’ has a scope parameter that is not valid for an aggregate function. The scope parameter must be set to a string constant that is equal to either the name of a containing group, the name of a containing data region, or the name of a data set.

    Changinagain

  • Hi

    The way to do this is to go to the properties of the table, then go to the filters, and add a filter in with an operator called TopN.

    Should be relatively easy from there.

    Regards,

    Nigel.

    Nigel West
    UK

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply