Login or Sign Up to become a member!
LessThanDot Sit Logo

LessThanDot

Data Management

Less Than Dot is a community of passionate IT professionals and enthusiasts dedicated to sharing technical knowledge, experience, and assistance. Inside you will find reference materials, interesting technical discussions, and expert tips and commentary. Once you register for an account you will have immediate access to the forums and all past articles and commentaries.

LTD Social Sitings

Lessthandot twitter Lessthandot Linkedin Lessthandot friendfeed Lessthandot facebook Lessthandot rss

Note: Watch for social icons on posts by your favorite authors to follow their postings on these and other social sites.

Your profile

    Search

    XML Feeds

    Google Ads

    « SSRS Properties - Interactive SortMongoDB: Creating capped collections »
    comments

    This blog is part of my series Making Data Tell a Story With SSRS Properties.

    Property: Tablix Sorting

    The purpose of this property is to sort the results of a tablix in the order you determine.

    To access the property for a tablix, right-click a row or column and select Tablix Properties. Select Sorting. Click Add.

    To select it for a row or column group, go to the group pane, click the down arrow to the right of the group name, and select Group Properties.

    Choose what field to sort by or click fx to build an expression. You can sort ascending (A to Z) or descending (Z to A).

    Example: I have a report that shows sales per year by sales territory. I want to sort it by territory name in ascending order, then by year in descending order.

    I go to my first group, which is set on the territory ID, and add sorting on the Name column, in ascending order.

    I go to my second group, which is set on OrderYear, and add sorting on the OrderYear column, in descending order.

    When I run the report, it is sorted in the order I specified.

    This can be useful when datasets return data from stored procedure that isn’t sorted. It can also be useful when you add grouping to the tablix and want to sort the various groups.

    Further reading:

    Filter, Group, and Sort Data (Report Builder and SSRS)

    Sort Data in a Data Region (Report Builder and SSRS)

    About the Author

    User bio imageJes Schultz Borland is a Consultant with Brent Ozar Unlimited, and a Microsoft SQL Server MVP. She holds an AAS - Programmer/Analyst degree, is a Microsoft Certified Professional in SQL Server 2012, and has worked with SQL Server as a developer, report writer, DBA, and consultant. Her favorite topics are administration, automation, and SSRS. She is an active member of PASS, President of FoxPASS, founder of Tech on Tap, and a LessThanDot.com blogger. She frequently presents at user groups, SQL Saturdays, and other community events. She is also an avid runner and chef.
    Social SitingsTwitterLinkedInLTD RSS Feed
    InstapaperVote on HN

    No feedback yet

    Leave a comment


    Your email address will not be revealed on this site.

    To mislead the spambots.

    Your URL will be displayed.
    (Line breaks become <br />)
    (Name, email & website)
    (Allow users to contact you through a message form (your email will not be revealed.)