Posts mit dem Label SSAS werden angezeigt. Alle Posts anzeigen
Posts mit dem Label SSAS werden angezeigt. Alle Posts anzeigen
Dienstag, 11. Januar 2011
Freitag, 31. Dezember 2010
Mittwoch, 20. Oktober 2010
Currency Conversion
Boyan Penev writes in his Blog about Currency Conversion in SSAS. He provides a lot of interesting links and includes also practical examples. His Blog is absolutly worth reading (and is now included into the link section of this page).
Mittwoch, 8. September 2010
Linked Cubes
Again only a link ...
Chris Webb wrote in his Blog about the question:
Chris Webb wrote in his Blog about the question:
whether, if you have multiple fact tables, you should create one big cube with multiple measure groups or multiple cubes each with a single measure group.Wenn he says that "Linked measure groups are a pain to manage" I have to agree...
Freitag, 14. Mai 2010
Process Update
In his Blog Chris Webb has published a short explanation of the consequences of ProcessUpdate on a dimension for the aggregations on related partitions. To make it even shorter: It seems to be a good idea to do a ProcessIndex on those partitions after the ProcessUpdate for the dimension.
Donnerstag, 18. März 2010
Save your day with ProcessIncremental
Who claims not to have too long processing times in real-world analytic databases either is a lyer ...
... or he has the SSAS Enterprise Edition installed with the great "ProcessIncremental" processing mode. In principal, this is a clever usage of the "Partition Merge" option in that it allows to feed a tiny data set that is disjunct from the last processing slice into a temporary partition which is then merged with an existing partition that is to be extended.
In our current project, where we tried to setup a "ProcessUpdate" szenario, the complexity of dimension, partition changes and ProcessIndex calls had summed up to a period that was nearly as long as a full "Process" (~2h for 5GB/2 years of business data).
Now it seems that we will come down to around 10-20min which should give us a nice slap to our backs unless I did oversee something stupid, here.
... or he has the SSAS Enterprise Edition installed with the great "ProcessIncremental" processing mode. In principal, this is a clever usage of the "Partition Merge" option in that it allows to feed a tiny data set that is disjunct from the last processing slice into a temporary partition which is then merged with an existing partition that is to be extended.
In our current project, where we tried to setup a "ProcessUpdate" szenario, the complexity of dimension, partition changes and ProcessIndex calls had summed up to a period that was nearly as long as a full "Process" (~2h for 5GB/2 years of business data).
Now it seems that we will come down to around 10-20min which should give us a nice slap to our backs unless I did oversee something stupid, here.
Dienstag, 16. März 2010
Data Quality
Hilmar Buchta mentions in his Blog an new codeplex project with a (NUnit-based) testing suite to monitor the data quality in BI solutions. Seems to be quite useful.
Montag, 8. März 2010
Setting Locale-Specific Naming Size Information
In SSAS 2008, there is the possibility to translate a key-only attribute just on a locale-specific basis: The name in the default attribute properties is left empty and the individual name columns are associated on a per-attribute/locale basis in the translation tab.
When the size of those columns changes, there is now the need to adapt it also in the name mapping. The place to to this is not quite obvious since the name property of the attribute is now empty: When selecting the attribute in the translation tab, go to the properties view and unfold the "CaptionColumn" property. Here you will find the important mapping information that you need to manipulate.
When the size of those columns changes, there is now the need to adapt it also in the name mapping. The place to to this is not quite obvious since the name property of the attribute is now empty: When selecting the attribute in the translation tab, go to the properties view and unfold the "CaptionColumn" property. Here you will find the important mapping information that you need to manipulate.
Various (Non-)Ways for Hiding Trivial Members in Hierarchies
This is a link-collection that Martin has been doing when investigating, how and why the auto-hide-member of trivial members (they show a single child with the same semantics and are mostly artificially introduced to render unbalanced parent-child tress into balanced md-trees) does not work with Excel 2007 and SSAS 2008.
The Microsoft Documentation for the HideMemberIf-Property mentions the MDX Compatibility-Level of connections.
Chris Webb and Mark Russo describe how Excel 2007 overwrites the property value no matter what you specified.
There was a time when you could set the level in the registry back with SSAS 2000.
http://social.msdn.microsoft.com/forums/en-US/sqlanalysisservices/thread/aeca1ce0-e6aa-4fdc-b604-cc0e27b7ab5a/
--> in 2005 + 2008 ist der Registry-Eintrag nicht vorgesehen
Greg Galloway hacks Excel to be content overwriting only a first fake property:
Extended Properties="MDX Compatibility=2";MDX Compatibility=2;
However, in our experiments, this rendered the whole subbranch invisible.
Oh no, we do not sacrifice so much for that functionality.
The Microsoft Documentation for the HideMemberIf-Property mentions the MDX Compatibility-Level of connections.
Chris Webb and Mark Russo describe how Excel 2007 overwrites the property value no matter what you specified.
There was a time when you could set the level in the registry back with SSAS 2000.
http://social.msdn.microsoft.com/forums/en-US/sqlanalysisservices/thread/aeca1ce0-e6aa-4fdc-b604-cc0e27b7ab5a/
--> in 2005 + 2008 ist der Registry-Eintrag nicht vorgesehen
Greg Galloway hacks Excel to be content overwriting only a first fake property:
Extended Properties="MDX Compatibility=2";MDX Compatibility=2;
However, in our experiments, this rendered the whole subbranch invisible.
Oh no, we do not sacrifice so much for that functionality.
Freitag, 19. Februar 2010
Collation
Donnerstag, 11. Februar 2010
Dienstag, 26. Januar 2010
The difference between Names and descriptive Attributes
Depending on the configuration of your SSAS landscape (DB/OS/Locale of the data source, OS/Server Locale and Column Collation of the SSAS machine/cluster), you can get very strange processing errors in your dimensions especially related to character-based attributes/names.
For example, the default collation settings in SSAS (ignore whitespaces, case-insensitivity) will usually unify more (European/German-rooted) strings than a "distinct" selection in the database of your choice. NULL entries which SSAS cannot stand at all in dimension processing are also a constant cause of problems in that respect ...
If you now wonder, why this leads to processing errors in certain attributes (duplicate key error) and not in others, please remind the setup of each attribute into a key and a name column (the latter pointing to the former in the standard-case).
One of the fundamental differences between the two is that a "select distinct" of the key columns MUST NOT have two rows which will be unified by SSAS collation processing while this is not necessarily true for name columns in which case an arbitrary value is taken as the representative.
For example, the default collation settings in SSAS (ignore whitespaces, case-insensitivity) will usually unify more (European/German-rooted) strings than a "distinct" selection in the database of your choice. NULL entries which SSAS cannot stand at all in dimension processing are also a constant cause of problems in that respect ...
If you now wonder, why this leads to processing errors in certain attributes (duplicate key error) and not in others, please remind the setup of each attribute into a key and a name column (the latter pointing to the former in the standard-case).
One of the fundamental differences between the two is that a "select distinct" of the key columns MUST NOT have two rows which will be unified by SSAS collation processing while this is not necessarily true for name columns in which case an arbitrary value is taken as the representative.
Quasi-Cursor-Reading of Large Cellsets
One annoyance especially when batch-testing Cubes/Dimensions against the relational data source is that the MDX/XMLA-Architecture has no concept of continuation or open-cursor-reading.
And we all know how soon SSMS or MDX Studio present an OutOfMemoryException!
One particularly useful construct in that regard is the
And we all know how soon SSMS or MDX Studio present an OutOfMemoryException!
One particularly useful construct in that regard is the
SubSet(Set,Position,Length)MDX-function which can be easily used to technically partition large result spaces into manageable junks.
Freitag, 22. Januar 2010
Strange Perspectives
In SSAS Persepctives are a very useful tool to control the visibility of objects (dimesions, measures, hierarchies etc.). They represent subsets of cubes and define Views with the relevant data for a specific audience. In the Perspectives tab of the cube designer in BIDS I can exclude objects, that I want to hide from my users. But obviously sometimes SSAS does not believe that I know what I do:
In the following example I defined a simple cube with only one measure group and some dimensions. In addition I created a calculation TestQuantity. In the Perspectives tab I choosed to include all the measures and the additional calculation:
In the browser we see the expected elements:
Now I exclude some of my measures from the Perspective:
And again I get the expected selection:
But when I exclude all the basic measures and want to include only my calculation, SSAS apparently starts to question my accountability:
The result again contains all the measures of the group, I wanted to exclude:
Perhaps SSAS believes that a cube (or a cube view) without measures is not very beneficial, but since the calculation TestQuantity was not excluded, I see no reason for this implicit addition of objects.
For the sake of completeness a link to William Pearson's article on Perspectives in the Database Journal and another one to the (books online) documentation.
In the following example I defined a simple cube with only one measure group and some dimensions. In addition I created a calculation TestQuantity. In the Perspectives tab I choosed to include all the measures and the additional calculation:
In the browser we see the expected elements:
Now I exclude some of my measures from the Perspective:
And again I get the expected selection:
But when I exclude all the basic measures and want to include only my calculation, SSAS apparently starts to question my accountability:
The result again contains all the measures of the group, I wanted to exclude:
Perhaps SSAS believes that a cube (or a cube view) without measures is not very beneficial, but since the calculation TestQuantity was not excluded, I see no reason for this implicit addition of objects.
For the sake of completeness a link to William Pearson's article on Perspectives in the Database Journal and another one to the (books online) documentation.
Mittwoch, 20. Januar 2010
Official release date for SQL Server 2008 R2
According to the Data Platform Insider Blog ''SQL Server 2008 R2'' received an official release date and will be available by May 2010.
Sonntag, 10. Januar 2010
Dynamic Management Views (DMV) in SSAS
Vincent Rainardi wrote in his Blog SSAS DMV (Dynamic Management View) on a topic we tried already to cover here some weeks ago. The article provides some interesting links to Blogs that explain who to join the results of different DMVs together.
Montag, 21. Dezember 2009
Changing results with IIF hints
Recently we saw some strange effects with calculations using a conditional IIF-logic: the calculation should show the difference between two measures if the first measure is greater than 0:
Apparently the different execution pathes can bring different results - and that is something I would not expect...
IIF([Measures].[FirstMeasure]=0,NULL,
([Measures].[FirstMeasure]-[Measures].[SecondMeasure])
A query using the calculation returned the expected results for the [All]-node of a given hierarchy but wrong results for other levels. Since the given measures are involved in some scoped assignments we assumed an error in our logic, and were quite suprised when we discovered that a CASE-block returned the correct results:CASE [Measures].[FirstMeasure]
WHEN 0 THEN NULL
ELSE [Measures].[FirstMeasure]-[Measures].[SecondMeasure]
END
Further research showed that IIF also brought the correct results when we used the eager hint in the calculation. The hint is a new feature in SSAS 2008 and documented here. The SQLCAT team explains the hint in the blog IIF Function Query Hints in SQL Server Analysis Services 2008: the IIF mdx function is a commonly used expression that can be very costly to evaluate. It takes 3 arguments:
iif(< condition >, < then branch >, < else branch >)
Where the condition evaluates to true, the value from the “then branch” is used otherwise the “else branch” expression is used.
Note the term “used” – one or both branches may be evaluated even if its value is not used. It may be cheaper for the engine to evaluate the expression over the entire space and use it when needed (termed an eager plan) rather than chop up the space into a potentially enormous number of fragments and evaluate only where needed (a strict plan).
Apparently the different execution pathes can bring different results - and that is something I would not expect...
Freitag, 18. Dezember 2009
Do not call a dimension attribute "DESCRIPTION"!
At least the Office Web Components (OWC) browser integrated into BI Development Studio and Management Studio will not show the values as a member property when the attribute (Name, not key nor translation) is called "DESCRIPTION".
Labels:
2008,
Attribute Relationship,
BIDS,
SSAS,
SSMS
Donnerstag, 17. Dezember 2009
Federating a Secondary SQL Server Data Source into a Primary-Oracle Data View
It is a common, though tricky, thing to host some, but not all of your analytical data that is to be fed into the cubeware of your trust in the nearby, type-consistent and easy-to-maintain SQL Server instance.
This methodology has also the nice side-effect that it will not give the .. say Oracle-minded ... datawarehouse people much to reason about such they will not get distracted from their ... um ... daily slee.., ah, work was the political correct term.
The idea will however bite you the first time you notice that you cannot mix dimensions and facts between two seperate Oracle/SQL Server data views. So you will read diverse blog entries trying to mix the two data sources within a single view.
Oracle will be your primary data source. "Add table" in the view allows you weel to choose a registered SQL Server as a secondary data source, but the table chooser stays empty!
If you read above-mentioned thread to its end, there will be the definitive hint, which is "Add Named Query" and .... here you are ... nearly.
Be aware that this will operate on some "Remote view" feature of the Oracle ODBC driver. For example, Oracle tends to lower-case only the key columns, which can fool you when switching an existing dimension from a seperate data view to the now merged view.
I would not recommend trying it the other way round (Oracle secondary, SQL Server primary data source) unless your primary data source will become bigger than the secondary one ... ok, we still hope that ... since it is to expect that using this kind of federation for practical volumes of fact data will not be funny.
This methodology has also the nice side-effect that it will not give the .. say Oracle-minded ... datawarehouse people much to reason about such they will not get distracted from their ... um ... daily slee.., ah, work was the political correct term.
The idea will however bite you the first time you notice that you cannot mix dimensions and facts between two seperate Oracle/SQL Server data views. So you will read diverse blog entries trying to mix the two data sources within a single view.
Oracle will be your primary data source. "Add table" in the view allows you weel to choose a registered SQL Server as a secondary data source, but the table chooser stays empty!
If you read above-mentioned thread to its end, there will be the definitive hint, which is "Add Named Query" and .... here you are ... nearly.
Be aware that this will operate on some "Remote view" feature of the Oracle ODBC driver. For example, Oracle tends to lower-case only the key columns, which can fool you when switching an existing dimension from a seperate data view to the now merged view.
I would not recommend trying it the other way round (Oracle secondary, SQL Server primary data source) unless your primary data source will become bigger than the secondary one ... ok, we still hope that ... since it is to expect that using this kind of federation for practical volumes of fact data will not be funny.
Labels:
2008,
Data Source,
Data View,
Oracle,
SQL-Server,
SSAS
Mittwoch, 9. Dezember 2009
How to translate the [All] member
I was always hesitating on that issue because I did not want to affect a thousand lines of MDX-Code in which [Dimension].[Hierarchy].[All] is a common construct, e.g., to exclude unwanted detail-calculations from a calculation scope.
But per default, there is no translation row in the dimension editor that allows one to override the display name of that ubiquitous and ugly (though, comprehensible) node.
Here comes the (straightforward) step: Simly set the property "AttributeAllMemberName" of the relevant dimensions explicitely to the default value "All" and - voilà - you have the translation rows for your pleasure without having to reinterpret your scripts.
Please be aware that the member must be also (re-)translated for all the hierarchies (these rows will also automatically appear). Similarly, you can treat the "UnknownMemberName" ...
But per default, there is no translation row in the dimension editor that allows one to override the display name of that ubiquitous and ugly (though, comprehensible) node.
Here comes the (straightforward) step: Simly set the property "AttributeAllMemberName" of the relevant dimensions explicitely to the default value "All" and - voilà - you have the translation rows for your pleasure without having to reinterpret your scripts.
Please be aware that the member must be also (re-)translated for all the hierarchies (these rows will also automatically appear). Similarly, you can treat the "UnknownMemberName" ...
Abonnieren
Posts (Atom)