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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:24:04+00:00 2026-06-10T04:24:04+00:00

I have the following MDX query inside a report: select ({ [Measures].[Total]}) on columns,

  • 0

I have the following MDX query inside a report:

select 
({ [Measures].[Total]})   on columns,
non empty
[Dim1].[h1].allmembers
* [Dim1].[h2].allmembers
* [Dim1].[h3].allmembers
* [1 Date - Loss Date].[Date].[Year].allmembers
having [Measures].Total>100000 on rows
from [Monthly Summary]
where ([1 Date - Month End].[Month End Date].[Month].&[20120331])

This is selecting rows with the Total value of more than 100k in March. How would I select the rows with Total value of more than 100k either in March or February meaning get the result from the above query plus the result of this month values where the previous month is more than 100k ?

Right now, I’m doing this in two Datasets in SSRS and doing a join and lookup of one on the other and the month (the Where Clause) is read from a Report Parameter; which is close nut not correct.

Update: Weather the [Total] value in March is more than 100k or the [Total] value in February is, I need to see the March Total Value in the query result( which might be less than 100k in second scenario)

  • 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-10T04:24:05+00:00Added an answer on June 10, 2026 at 4:24 am

    You can use something like this:

    SELECT ({ [Measures].[Total]}) ON COLUMNS,
    [Dim1].[h1].allmembers
    * [Dim1].[h2].allmembers
    * [Dim1].[h3].allmembers
    * [1 Date - Loss Date].[Date].[Year].allmembers
    HAVING [Measures].[Total] > 100000
    OR ([Measures].[Total], [1 Date - Month End].[Month End Date].[Month].&[20120228]) >100000 
    ON ROWS
    FROM [Monthly Summary]
    WHERE ([1 Date - Month End].[Month End Date].[Month].&[20120331])
    

    You do not need the non emtpy on the rows because null < 100000

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

Sidebar

Related Questions

I have following SQL statementL: select DATE(bla), count(*) from tableA group by DATE(bla) UNION
I have within an MDX query the following calculated member: MEMBER [Asset].[Class].[Fixed Income Derivatives
I'm stuck on a MDX query... I have a table which looks like: Date
Have following String built SQL query: StringBuilder querySelect = new StringBuilder(select * from messages
I have following code that creates Linq query. I've never used Linq until today
The following MDX query returns measure X on 3 tuples: 2001, 2002-1 and 2002-2.
I have a little Problem with a MDX-Query . I want show all the
I have following method that I select all the ids from table and append
I have following code var res = from c in model.Data select new object[]
I have following plist: <?xml version=1.0 encoding=UTF-8?> <!DOCTYPE plist PUBLIC -//Apple//DTD PLIST 1.0//EN http://www.apple.com/DTDs/PropertyList-1.0.dtd>

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.