Showing posts with label cube. Show all posts
Showing posts with label cube. Show all posts

Thursday, March 29, 2012

Getting a ROLAP cube to refresh when a dimension changes


Have 1 ROLAP cube in an AS DB with other MOLAP cubes. The ROLAP cube is derived from a SQL database view and uses dimensions that are also used by the MOLAP cubes. The aggregation storage of the source view is defined as ROLAP. Updates to the Fact table cause the ROLAP cube to refresh while updates to the dimensions do not cause a refresh of the ROLAP cube.

When for the ROLAP cube ,set storage mode to rolap
and in proactive caching, change settings to Real-time ROLAP
click on "Options" and make sure Enable proactive caching is marked
if now you change a measure in your fact table you will see the change right away
without processing, but the problem is we can not have the same thing working for dimensions
in the same caching setting in Storage Options enabling the check box "Apply settings to dimensions"
doesn't really solve the problem, when you check off this setting
any changes to the dimensions will not update the cube until the dimensions are processed.


What can be done to enable an update of a dimension used by the ROLAP cube to cause the ROLAP cube to be refreshed without reprocessing the MOLAP cubes also using the dimension?

Thanks

If the same dimensions are used in the other MOLAP cubes, you should keep storage mode of your dimensions as MOLAP.

If you wanted to go with storage mode as ROLAP for all of your dimensions, you should create new dimensions that are going to be used only in this ROLAP cube.

You should also take a look whether sizes of your data will allow you to keep the same level of performance- ROLAP will perform slower in general when compared to MOLAP mode.

Edward.
--
This posting is provided "AS IS" with no warranties, and confers no rights

|||

There should be no need to reprocess the ROLAP cube when you just process the dimension. As long as you are not deleting records from your dimension table, you should just be doing a processAdd or processUpdate on your dimension. This will leave all your cubes in a queryable state and the proactive caching feature should keep your ROLAP partitions "fresh" as new facts arrive.

If you have been doing a processFull on your dimension, it will have been clearing out all the cubes that use the dimension in question as a processFull rebuilds the dimension structure from scratch which requires that dependant cubes have their storage structures rebuilt also.

Getting a proper COUNT

Hi,

I am new to MDX, so apologies if I am missing anything obvious and any help is greatly appreciated.

I have built a cube designed to display information on patient appointments. My only two measures are [Appointment Minutes] and [Appointment Count]. My clients want information presented in the following format:

Measures [Current Time Period] [Comparative Time Period] [% Change]

Hours Booked a hours b hours c percent

Patients Seen d patients e patients f percent

I have produced the first line of data with the following query:

WITH

MEMBER [Start Date].[Month Hierarchy].[Current] AS

'Aggregate(NonEmpty({[Start Date].[Month Hierarchy].[Date].[2006-10-11 00:00:00]:

[Start Date].[Month Hierarchy].[Date].[2006-11-11 00:00:00]}))'

MEMBER [Start Date].[Month Hierarchy].[Comparison] AS

'Aggregate(NonEmpty({ParallelPeriod([Start Date].[Month Hierarchy].[Year], 1,

[Start Date].[Month Hierarchy].[Date].[2006-10-11 00:00:00]):

ParallelPeriod([Start Date].[Month Hierarchy].[Year], 1,

[Start Date].[Month Hierarchy].[Date].[2006-11-11 00:00:00])}))'

MEMBER [Start Date].[Month Hierarchy].[% Change]

AS '([Current] - [Comparison])/[Comparison]', FORMAT_STRING = '#0.0#%', SOLVE_ORDER = 3

MEMBER [Measures].[Booked Hours] AS

'Measures].[Appointment Minutes])/60', SOLVE_ORDER = 2

SELECT {[Current], [Comparison], [% Change], [Group Average], [Benchmark %]} ON 0,

{[Booked Hours]} ON 1

FROM [Diary]

WHERE [Branch].[Branch Name].[Head Office]

This works fine. I run into trouble, though, when trying to count the patients properly in the current and comparison time columns. There is a [Patient] dimension with an [ID] attribute, and what I really want is a distinct count of how many patients have one or more appointments booked in each time column. So far, all my attempts with Distinct(), Count(), Filter(), NonEmpty() and NonEmptyCrossJoin have come to nothing. If anyone can help here, then I would be really grateful.

If you're using AS 2005, and there is a [PatientID] foreign key in the fact table, you could create a "distinct count" measure like [Patient Count] on the [PatientID] field.|||

Thanks for replying, Deepak.

That is what I have been trying to do, but I must be getting the MDX wrong.

MEMBER [No Of Patients] AS 'DISTINCTCOUNT(Filter([Patient].[Public ID], [Measures].[Appointment Count] > 0))' just returns an error. Changing DistinctCount to Count just returns 1, when I know that 12 patients should be returned by the example.

'COUNT(Filter(NonEmpty({[Patient].[Public ID].CHILDREN}), [Measures].[Appointment Count] > 0))' returns a number (the wrong one) and takes a long time to run.

Any suggestions on an expression I could use that would work?

Many thanks,

Ed.

Edit: 'COUNT(Filter(NonEmpty({[Patient].[Public ID].CHILDREN}), [Measures].[Appointment Count] > 0))' does in fact return the right result (apologies - there was an error in the test code), but takes 1 minute, 40 seconds to run. My clients are never going to accept that. I have cut dimensions and attributes down as far as I can. Can anyone suggest a way of querying the count more efficiently?

Any help greatly appreciated,

Ed.

Tuesday, March 27, 2012

Getting "Attribute relationships do not exist between one or more levels in this hierarchy&

Hello,

I have a cube that has been working just fine. When I opened it today all the hierarchies are showing the Warning ! in the triangle. When I move the cursor over it I get the message, "Attribute relationships do not exist between one or more levels in this hierarchy message."

I have been making changes to the fact table and reprocessing everything, but the processing goes fine.

I tried recreating the dimensions (with the wizards) and I still am getting these warnings. I have installed SP2, but it was working (I think) after I installed it.

Any ideas what could have caused this and what I can do to fix it?

Thank you.

-Gumbatman

Hello. You get this warning message when:

You have a user hierarchy(middle pane in the dimension editor) that is missing attribute relations between the levels in the hierarchy You have redundant attribute relations|||

Thomas,

I think I get what you are saying, but I don't think (could be very wrong) that I have redundant attributes.

The table below is the taken from my Time Dimension. Is there something I am doing wrong?

Row Date (Key) Fiscal Year Month Month Number Day Of Week Period Number 20031031 2004 October 10 Friday 1 20031130 2004 November 11 Sunday 2 20031231 2004 December 12 Wednesday 3 20040131 2004 January 1 Saturday 4 20040229 2004 February 2 Sunday 5 20040331 2004 March 3 Wednesday 6 20040430 2004 April 4 Friday 7 20040531 2004 May 5 Monday 8 20040630 2004 June 6 Wednesday 9 20040731 2004 July 7 Saturday 10 20040831 2004 August 8 Tuesday 11 20040930 2004 September 9 Thursday 12 20041031 2005 October 10 Sunday 1 20041130 2005 November 11 Tuesday 2 20041231 2005 December 12 Friday 3 20050131 2005 January 1 Monday 4 20050228 2005 February 2 Monday 5 20050331 2005 March 3 Thursday 6 20050430 2005 April 4 Saturday 7 20050531 2005 May 5 Tuesday 8 20050630 2005 June 6 Thursday 9 20050731 2005 July 7 Sunday 10 20050831 2005 August 8 Wednesday 11 20050930 2005 September 9 Friday 12

When I try and create a hierarchy of just Fiscal Year to Row Date, I get this attribute error.

I didn't get this error before on any of my dimensions, now all of them have this error. Even ones where the Dimension Wizard found the hierarchies. I don't know what changed.

Thank you for the help.

|||

Hello. Before SP2 you had a more obscure change of the icons to indicate if a user hierarchy was optimized with attribute relations or not. I think the icon was grey without attribute relations and blue(with level relations) if they were present.

This attribute relation is already present in the relation between the key and the Fiscal Year. This means that the warning message only means that you have an un-natural hierarchy. You are missing some levels between the year and the row date.

The user hierarchy you have created is already present in the attribute relation between the key and the Fiscal Year.

Your user hierarchy between Fiscal Year and the key is already present in the attribute hierarchy(the left pane).

HTH

Thomas Ivarsson

|||

Thomas,

I think it is getting clearer. Previously, the hierarchy I created was Fiscal Year, Period Number, English Month. Why is this an un-natural hierarchy? What are the levels that I am missing in between?

On a different note, when I tried to add that hierarchy to a report (even by adding one-by-one instead of the Hierarchy itself) the report gave me an error that it could not create it because of the hierarchy was something not right (I will look it up).

Again, thank you so much for your help.

|||

It is not an un-natural hierarchy between Fiscal Year and (Fiscal) Period Number.

You have a collection key (two attributes) on the Period Number because it is not unique over several years?

English Month is the name column(property) on the Period Number column.

It is not part of the attribute relationship problem so do not build a relationship on this.

HTH

Thomas Ivarsson

|||

I don't have a collection key on the Period Number. I just tried doing this, and then creating the hierarchy, but no luck.

I did this by going into the KeyColumns property of Period Number. I added FiscalYear as a Key, so I have both PeriodNumber and FiscalYear as a collection, but I still get the warning about the relationship between PeriodNumber and Fiscal Year.

I really appreciate all the help.

|||

I think that you do not have to create a user hierarchy.

You already have this relation between PeriodNumber and Fiscal Year(in the left pane of the dimension editor) without having to create the same thing in the middle pane of the dimension editor.

Remove the middle pane user hierarchy for Fiscal Year and Period Number.

HTH

Thomas Ivarsson

|||

Thomas,

I think I am getting better at figuring this out with all your help of course.

If I understand you correctly, you say that "You already have this relation between PeriodNumber and Fiscal Year(in the left pane of the dimension editor) without having to create the same thing in the middle pane of the dimension editor." Is that because of what I have just set up with the Composite Keys and moving the PeriodNumber under the FiscalYear in the Attributes pane on the left?

Now when I browse the cube and put the Fiscal Year in the Columns is shows up with 12 versions of each Fiscal Year. Then I need to place the PeriodNumber in the Columns and then it shows the 12 versions of each Fiscal Year, but now it has the plus on it so I can open it up and see the PeriodNumber. I think I see what is happening, but I liked being able to place a whole hierarchy in the browser. While my seeing it is not terribly important, why does this occur? Will it matter when I do reporting?

Also, why create a Hierarchy in the middle pane when I sort of do the same thing with the attributes?

Thank you.

|||

All attributes in the dimension have a default attribute relation to the dimension key, which you can see in the left pane and if you expand the dimension key in this pane.

This is the fact even if you have no user hierarchies in the middle pane.

When you build user hierarchies in the middle pane you add attribute relations between the levels in this user hierarchy.

So PeriodNumber(The dimension key) have already a relation to Fiscal Year before you build the same relation with a user hierarchy.

If you get a warning message on the user hierarchy, which is strange because of the existing default attribute relation, you can probably ignore it.

This message only means that the user hierarchy is not optimized.

Composite keys and attribute relations are not the same. Attribute relations is about optimization of cubes and dimensions and composite keys makes each attribute unique.

HTH

Thomas Ivarsson

|||

Thomas,

I can't begin to thank you enough for the time and effort you put into answering my questions. You've been amazingly helpful and I never would have figured all of this out by myself.

Thank you!

-Gumbatman

Monday, March 19, 2012

get unspecified error when browsing data of CUBE in Analysis servise

Tongue TiedPlease give me solution,

I am getting this message when I am browsing data of cude

"Unable to browse data of <cude name>
unspecified error"

please tell me the solution of this.

You're going to have to be a little more specific here. What tools are you using? What version of SQL Server? What cube? What's working / not working?|||Sir,
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||

What service pack have you installed? If you look at the Microsoft knowledgebase you will see that there are several problems which caused this. Typically it is fixed once you install SP4.

_-_-_ Dave

|||hey asif, m also getting the same problem, did u find any solution. I have installed SP4

get unspecified error when browsing data of CUBE in Analysis servise

Tongue TiedPlease give me solution,

I am getting this message when I am browsing data of cude

"Unable to browse data of <cude name>
unspecified error"

please tell me the solution of this.You're going to have to be a little more specific here. What tools are you using? What version of SQL Server? What cube? What's working / not working?|||Sir,
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||

What service pack have you installed? If you look at the Microsoft knowledgebase you will see that there are several problems which caused this. Typically it is fixed once you install SP4.

_-_-_ Dave

|||hey asif, m also getting the same problem, did u find any solution. I have installed SP4

get unspecified error when browsing data of CUBE

Tongue TiedPlease give me solution,

I am getting this message when I am browsing data of cude

"Unable to browse data of <cude name>
unspecified error"

please tell me the solution of this.You're going to have to be a little more specific here. What tools are you using? What version of SQL Server? What cube? What's working / not working?|||Sir,
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||

What service pack have you installed? If you look at the Microsoft knowledgebase you will see that there are several problems which caused this. Typically it is fixed once you install SP4.

_-_-_ Dave

|||hey asif, m also getting the same problem, did u find any solution. I have installed SP4

get unspecified error when browsing data of CUBE

Tongue TiedPlease give me solution,

I am getting this message when I am browsing data of cude

"Unable to browse data of <cude name>
unspecified error"

please tell me the solution of this.You're going to have to be a little more specific here. What tools are you using? What version of SQL Server? What cube? What's working / not working?|||Sir,
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||
I have SQL Server 2000 installed on Windows 2000 Advance Server. On same machine I installed MS Analysis servise. By default Analysis service have FoodMart2000 database which have some cubes and dimension. When I right click on cube and browse the data, it open the data browsing window and following message display

"Unspecified error unable to browes the data"

So please solve my problem and what can i do|||

What service pack have you installed? If you look at the Microsoft knowledgebase you will see that there are several problems which caused this. Typically it is fixed once you install SP4.

_-_-_ Dave

|||hey asif, m also getting the same problem, did u find any solution. I have installed SP4