Control Checks between Sql Tables (Facts and Dims) and SSAS Cubes?
3 posters
Page 1 of 1
Control Checks between Sql Tables (Facts and Dims) and SSAS Cubes?
Hi
How can one write a report that compares data in sql tables (facts / dims) to data stored in an SSAS cube?
I have to write a control check report to compare this data to ensure that the cube contains the same data as is stored in our sql server enterprise data warehouse.
It will of course be specific tests for example:
Sum of a specific measure in a specific fact table, grouped by say 5 dimensions.
And then in the Cube I want to do the same via a script? and compare the resulting tables?
Anyone done this before with some examples please?
I am not sure if one can combine mdx queries and t-sql queries in one script / stored procedure to do this?
How can one write a report that compares data in sql tables (facts / dims) to data stored in an SSAS cube?
I have to write a control check report to compare this data to ensure that the cube contains the same data as is stored in our sql server enterprise data warehouse.
It will of course be specific tests for example:
Sum of a specific measure in a specific fact table, grouped by say 5 dimensions.
And then in the Cube I want to do the same via a script? and compare the resulting tables?
Anyone done this before with some examples please?
I am not sure if one can combine mdx queries and t-sql queries in one script / stored procedure to do this?
ian.coetzer- Posts : 57
Join date : 2010-05-31
Age : 44
Location : South Africa
Re: Control Checks between Sql Tables (Facts and Dims) and SSAS Cubes?
It's not easy as there is no direct access for TSQL to query the cube. The only approach I can think of is to use OpenQuery through linked server as follows:
SELECT *
FROM OpenQuery(linked_olap,'SELECT --measures.members
{Measures.[Internet Sales Amount]} ON COLUMNS,
[Date].[Month].members ON ROWS
FROM [Adventure Works]')
SELECT *
FROM OpenQuery(linked_olap,'SELECT --measures.members
{Measures.[Internet Sales Amount]} ON COLUMNS,
[Date].[Month].members ON ROWS
FROM [Adventure Works]')
hang- Posts : 528
Join date : 2010-05-07
Location : Brisbane, Australia
SSRS
Hi Ian
I'd be thinking an SSRS (Reporting Services) report would be the easiest solution. You can have separate Datasets - one connected to SQL, the other to SSAS. Then you can either lay them out side by side in two tables for a quick win. If you want to get fancy, you can use the Lookup functions to compare values between the Datasets.
Good luck!
Mike
I'd be thinking an SSRS (Reporting Services) report would be the easiest solution. You can have separate Datasets - one connected to SQL, the other to SSAS. Then you can either lay them out side by side in two tables for a quick win. If you want to get fancy, you can use the Lookup functions to compare values between the Datasets.
Good luck!
Mike
Similar topics
» Dimensionality of facts and Microsoft SSAS Cubes
» Filters in SSAS Cubes
» Difference between Aggregate Fact Tables, Rollup Tables and OLAP Cubes ?
» How to model Facts with Conformed Dims on different grain level in BO XI universe
» duplicated facts against multpile dimensions in MS OLAP control (excel/SSMS)
» Filters in SSAS Cubes
» Difference between Aggregate Fact Tables, Rollup Tables and OLAP Cubes ?
» How to model Facts with Conformed Dims on different grain level in BO XI universe
» duplicated facts against multpile dimensions in MS OLAP control (excel/SSMS)
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum