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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:18:43+00:00 2026-05-27T14:18:43+00:00

We need in a MDX query to group by Date column by number of

  • 0

We need in a MDX query to group by Date column by number of days from parameter.
Example:

Date       Requestor  Duration  Duration RFC
-------    --------   -------   -------
1/1/2011    C1         100      150
1/15/2011   C1         200      250
2/1/2011    C1         300      350
2/1/2011    C2         400      450

Parameter Days=30 Begin =1/1/2011
Result:

Period                Requestor  Duration  Duration RFC
----                  --------   -------   -------
1/1/2011-1/30/2011     C1         300      400
1/31/2011-2/2/2011     C1         300      350
1/31/2011-2/2/2011     C2         400      450

can somebody help me with MDX query?
Sample MDX query(without grouping I need):

SELECT NON EMPTY {[Close Date].[Year  -  Month -  Date].[Date]*[Requestor].[Requestor].  [Requestor]} ON ROWS,
NON EMPTY {[Measures].[Duration] ,[Measures].[RFC Audit  Stage Count]} ON
COLUMNS FROM (SELECT ( STRTOSET (@CategoryCategory, CONSTRAINED) ) ON COLUMNS 
FROM ( select (STRTOSET(@RequestorRequestor,CONSTRAINED)) ON COLUMNS FROM [RFC Cube]))

Using SSAS 2008.

Cube Name: RFC Cube.
Dimensions(with hierarchies):
1. Date= [Close Date].[Year – Month – Date].[Date]
2. Customer = [Requestor].[Requestor].[Requestor]
3. Amount1(Measure) = [Measures].[Duration]
4. Amount2(Measure) = [Measures].[RFC Audit Stage Count]

  • 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-27T14:18:43+00:00Added an answer on May 27, 2026 at 2:18 pm

    If the grouping has a static number of members, you can use the Aggregate function the create calculated members in an hierarchy of the Date dimension.

    In your case, however, it seems the grouping is dynamic, which you can’t do in MDX; you’ll have to create a new attribute in your Date (?) dimension.

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

Sidebar

Related Questions

I need to execute MDX query from command line (MS AS 2005). I have
I need to define a calculated member in MDX (this is SAS OLAP, but
Need a function that takes a character as a parameter and returns true if
Need to add it to textview, for example, standard java-code.
I'm using an MDX query to pull information to support a set of reports.
I have written a MDX query which works fine in SQL Server Management Studio.
Hi I have been playing around with MDX and need some very high-level getting-started
Need something simulat jcrop plucgin (link to example is here: http://publikz.com/one-more-task-rounded-selection-in-jquery/ ) but with
Need advise I am currently using CRM4.0 webservice to create account from reading my
Hallo at all! I have a little Problem with my Query in MDX. I

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.