Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Analysis Server and Reporting Services (2008)
 MDX query to group data.

Author  Topic 

deployX
Starting Member

2 Posts

Posted - 2012-01-24 : 05:23:58
I have a cube in which there are following values:
Dimension 1:
Time Taken
Size
Product
Error Value
Measure available is [Measures].[Dimension 1 Count], which is basically the number of users.

I want to have data in groups/buckets like following example for :
Users who took 0-5 seconds while installing Product1 = 10
Users who took 5- 10 secs while installing Product1 = 15
Users who took 10-15 secs while installing Product1 = 3
Users who took more than 15 secs while installing Product1 = 5

Can someone tell me how to write a single MDX query for doing this.

deployX
Starting Member

2 Posts

Posted - 2012-01-24 : 08:01:24
Also, if there are 3 Dimensions with following Hierarchies
Time Taken, Size, Product, Error Value

and Measures available are [Measures].[Dimension 1 Count], [Measures].[Dimension 2 Count] and [Measures].[Dimension 3 Count]

Is it possible to calculate top 10 error values across the 3 dimensions?
Go to Top of Page

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2012-01-25 : 06:58:46
You need to create a hierarchy on the Dimension that groups the time taken into buckets for you. This will entail grouping it in your sql table already and making use of this attribute in your Dimension design. Not really easy to answer this one with a text example, but read up on attributes and hierarchies in Dimension design.

Duane.
Go to Top of Page
   

- Advertisement -