+ Reply to Thread
Results 1 to 2 of 2

Thread: Matrix show top 5 results

  1. #1
    Barn Newbie cipriani1984 is an unknown quantity at this point cipriani1984's Avatar
    Join Date
    Dec 2009
    Posts
    1
    Rep Power
    3

    Matrix show top 5 results

    Hi,

    Im fairly new to MDX and have the query that I need now. I dont really want to go back and modify the query as its alot of work getting the result i needed initially. Anyways:

    I have my matrix up and running and sorted descendingly on the sum(value) I just want to show the top 5 rows, is there anyway to do this within the reporting side without having to go back to the query?

    Thanks

    Cipriani

  2. #2
    I like Data Cubes too... Lauramc has a spectacular aura about Lauramc has a spectacular aura about Lauramc's Avatar
    Join Date
    Mar 2008
    Location
    Far Far Away
    Posts
    387
    Real Name
    Laura
    Rep Power
    5

    Unforunately, I cannot think of anyway to force only the first five rows to show unless you modify the query to return only five rows. Can you just add a "SELECT TOP 5" to your SQL someplace? I know it's a pain, but it's the only foolproof way.

    The filter function may work for you as well (just set a filter in the properties of your matrix). But, you have to have a condition in the dataset that you are filtering on (I tried RowNumber but that doesn't work). So I'm afraid either route will require some modification of your SQL.

    The other pitfall here is that you'll have to add all your sorting conditions to the SQL; otherwise the first five rows may not be the five you want.

    If you want some help with the SQL I can do that. Just post back with the code you're having trouble with. Maybe we can help sort it out for you.
    "The Enrichment Center is required to remind you that first you will be baked, then there will be cake." - GLaDOS

+ Reply to Thread

Similar Threads

  1. blank results (href)
    By Rebelle in forum ASP Development
    Replies: 2
    Last Post: October 15th, 2009, 09:04 AM
  2. Handling SubTotal Formatting in Matrix
    By harish in forum SQL Server Reporting Services Help
    Replies: 9
    Last Post: June 11th, 2009, 03:32 PM
  3. Adjacent Cols & Rows in Matrix
    By harish in forum SQL Server Reporting Services Help
    Replies: 6
    Last Post: June 9th, 2009, 01:53 AM
  4. Spliced tables, paged results
    By dr_rock in forum SQL Code Samples
    Replies: 0
    Last Post: September 16th, 2008, 03:19 AM
  5. same markup diff results in .Net
    By Shem in forum HTML & CSS Help
    Replies: 4
    Last Post: July 3rd, 2008, 04:45 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

SEO by vBSEO