[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.0

How can I make my OLAP exectute faster?

Asked by gosi75 in OLAP, SQL Server 2008

Tags: OLAP, MDX, EXCEL 2007, SSAS 2008

I'm having big difficulties with an existing OLAP where the end user uses Excel to pivot the data. The OLAP has 6 dimensions where  5 of the dimension have from 34 to 2266 rows and the last dimension, has around 275.000 rows. The fact table has about 165.000  rows and around 2.500 rows are added each month.

The OLAP has few calculated members, some YTD and MAT calculations. Those measures are the most important for the client, along with attributes from most of the dimensions. When attributes from the  biggest dimension, the one with 275.000 rows are added to pivot table, it can take up to few hours to execute.

I just recently heard about the non_empty_behavior function and added that to the members, and a query that before took around 3-5 hours took only few seconds. Later, I found out that there are a lot of data missing. There are few things I think is a bit odd about this, and that is probably because I don't fully understand the behaviour of the non_empty_behavior, but when I do add the non_empty to my calculated member in SSAS f.exs. [MAT - Number Of Packages], I get the correct sum value for, but in the detail view it's missing. In the attached files(September_incorrect.pdf), there is 2.060 in grand total but the detail view only show the one for september, 496 units.
How come the grand total is showing when the detail data are missing?

What are my alternatives here, is there any other function I could add to my calculated measures in SSAS in order to speed up the exectution time without missing any data?

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
SELECT {
		[Measures].[Number Of Packages Sold],
		[Measures].[MAT - Number Of Packages Sold],
		[Measures].[Year to date - Number Of Packages Sold]} DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON COLUMNS , 
NON EMPTY CrossJoin(
					Hierarchize({DrilldownLevel({[Product].[Product Information - By Name].[All]})}), 
					Hierarchize({DrilldownLevel({[Product].[Strength - number].[All]})})) DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON ROWS 
FROM (
		SELECT ({[Product].[Product Information - By Name].&[Product A - 141945 - 0,18 - mg - 100 - stk], 
				 [Product].[Product Information - By Name].&[Product B - 141945 - 0,17999999 - mg - 100 - stk]}) ON COLUMNS  
		FROM [MDIA])
WHERE ([Dates].[Date hierarchy].[Year].&[2009].&[3. quarter].&[2009 - September]) CELL PROPERTIES VALUE, FORMAT_STRING, LANGUAGE, BACK_COLOR, FORE_COLOR, FONT_FLAGS
 
 
--This is example of one of my calculated member from SSAS 
CREATE MEMBER CURRENTCUBE.[Measures].[MAT - Number Of Packages Sold]
 AS AGGREGATE(LastPeriods(12,[Dates].[Date hierarchy].currentmember),[Measures].[Number Of Packages Sold]), 
/*NON_EMPTY_BEHAVIOR = { [Number Of Packages Sold]}, */
VISIBLE = 1  ;
Attachments:
 
september-incorrect.pdf
 
[+][-]10/15/09 01:35 PM, ID: 25584613Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/15/09 04:07 PM, ID: 25585754Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/16/09 04:36 AM, ID: 25588507Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/16/09 06:18 AM, ID: 25589185Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/19/09 01:51 PM, ID: 25608907Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: OLAP, SQL Server 2008
Tags: OLAP, MDX, EXCEL 2007, SSAS 2008
Sign Up Now!
Solution Provided By: agandau
Participating Experts: 2
Solution Grade: A
 
[+][-]10/19/09 02:48 PM, ID: 25609347Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/19/09 03:49 PM, ID: 25609657Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/19/09 09:25 PM, ID: 25611058Assisted Solution

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 30-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10/22/09 05:19 AM, ID: 25633194Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/22/09 01:29 PM, ID: 25638634Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20091111-EE-VQP-89 - Hierarchy / EE_QW_3_20080625