Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7870299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T01:34:41+00:00 2026-06-03T01:34:41+00:00

can anyone tell me how to use SSRS parameter here? I am using SSAS

  • 0

can anyone tell me how to use SSRS parameter here? I am using SSAS as the datasource, the report displays everything fine except i want to filter the results based on the parameter value.

SELECT NON EMPTY { [Measures].[Count of ID], [Measures].[Average of Amount] } ON COLUMNS, NON EMPTY { (STRTOMEMBER(@Region,CONSTRAINED) * [Query].[State].[State].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM [Model] CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS

the parameter is @Region in the report.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T01:34:42+00:00Added an answer on June 3, 2026 at 1:34 am

    The easiest way is when you set up your DataSet, to use the QueryDesigner to pull back what you want from SSAS. When you specify your dimension filters, on the far right is a checkbox under the heading “Parameter”. Check this, and it will automagically generate the SSRS parameter for you.

    That’ll create a parameter expecting a value like the following, which is actually a Dimension filter:

    \[DimensionName\].\[AttributeName\].&\[Value\]
    

    If you need to do it manually via MDX though, looking at your MDX expression, it looks to me (in my very limited MDX experience – still learning) that you’re attempting to specify your parameter (filter) in your ROWS, rather than applying it in the FROM clause.

    I would expect that it might be something more like this?:

    SELECT 
    NON EMPTY { [Measures].[Count of ID], [Measures].[Average of Amount] } ON COLUMNS
    ,NON EMPTY { ([DimensionName].[AttributeName].ALLMEMBERS * [Query].[State].[State].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS 
    FROM 
    (SELECT (STRTOSET(@Region,CONSTRAINED) ON COLUMNS FROM [Model])
    WHERE ( IIF( STRTOSET(@Region, CONSTRAINED).Count = 1, STRTOSET(@Region, CONSTRAINED), [DimensionName].[AttributeName].currentmember ) ) CELL PROPERTIES VALUE, BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING, FONT_NAME, FONT_SIZE, FONT_FLAGS
    

    Replacing DimensionName and AttributeName with your actual values from your cube definition. This assumes that your @Region parameter is in the same format as the one I specified above. If not, you can substitute the rest of the syntax in your DataSet properties when you assign your report parameter to the DataSet.

    Apologies if this doesn’t work, I’m working off a limited knowledge of MDX at the moment, but I figured a partial answer is better than none at all, right?

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Can anyone tell be where to use the UDP protocol except live streaming of
Can anyone tell me what syntax highlighting theme is in use here? http://jamierumbelow.net/images/code.png Jamie
Can anyone please tell me when should I use MessageContracts and when should I
Can anyone please tell me is there any special requirement to use either EXTERN
Can anyone tell me how to hide the header in DevExpress gridcontrol..?? I'm using
Can anyone tell me what the need/advantage is to using a web service with
Can anyone tell me when I should use either. For example, I think I
Can anyone tell me which one better to use for xml parsing - DOM
Can anyone tell me if they know how to use the Google Chart API
Can anyone tell me how to unify the font I use in all browsers

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.