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 6124941
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:11:27+00:00 2026-05-23T16:11:27+00:00

in Sql Server Reporting Services Report is it possible to define a MDX query

  • 0

in Sql Server Reporting Services Report

is it possible to define a MDX query within a report, and then re-use it a bunch of times, but each time with different WHERE section.

i.e. the Members and SELECT section would be the same for each row (MTD.Count YTD.Count)

but, i’d want to filter it 10 different ways..

The only way i can think of doing this right now, is adding 10 datasets, each with a different WHERE section, but i’d like to re-use just one DS

ALTERNATIVELY

Another totally acceptable option would be to supply whole MDX queries to the report as parameters of some sort. My challenge is that my MDX queries are generated dynamically (including the # of actual queries), all of that is user driven. So is there a way i could supply n MDX queries to a report, and have it plug that into a matrix? One way i thought of doing this today, is to emit the whole RDL XML dynamically..

  • 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-05-23T16:11:28+00:00Added an answer on May 23, 2026 at 4:11 pm

    This is most likely my solution:

    Subreports

    Yep, subreports saved me here.. My actual goal was to repeat the same MDX query with a different WHERE section for each row. Sub reports are design for just that. You can define a matrix and bind it to a dataset. That dataset will determine how many rows of data your matrix will be populated it.

    You can embed a subreport in a cell of your matrix, and pass it a parameter (in my case i am passing the whole WHERE filter, but you could make it more granular and only pass a field.

    Then in your subreport you can display just one set of information based on a parameter which is passed in from parent report.

    here are some more links

    SubReports

    Designing Reports with Custom MDX Queries

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

Sidebar

Related Questions

We have some SQL server reporting services reports. I didn't write then but I
Possible Duplicate: Internationalization in SSRS We use SQL Server Reporting Services for our web
Is it possible to render a report in SQL Server Reporting Services using SOAP
Is it possible, using SQL Server Reporting Services (SSRS) 2008 R2, to somehow use the
How do you shade alternating rows in a SQL Server Reporting Services report? Edit:
I want to be able to view a SQL Server 2005 Reporting Services report
I have a report in SQL Server Reporting Services (SSRS) that I'd like to
I'm working on a report in SSRS (SQL Server Reporting Services) right now, and
Is it possible to get notifications using SQL Server Reporting Services ? Say for
I have a SQL Server 2008 reporting services report which runs fine in preview

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.