SSAS, MDX , Cube understanding, Browsing and Tools information
The document outlines the professional qualifications and expertise of Vishal Pawar in Microsoft BI, particularly focusing on SSAS and MDX concepts. It discusses the importance of SSAS cubes in business intelligence, their structure, access methods, and the tools utilized for cube browsing and reporting. Additionally, it provides an overview of the process flow for generating dynamic reports based on user preferences using MDX queries.
SSAS, MDX , Cube understanding, Browsing and Tools information
1.
SSAS, MDX ,Cube
understanding,
Browsing and
Tools information
2.
About Me -Vishal Pawar
• 8 + years of experience in Microsoft BI Stack
• Microsoft BI Solution Architect in The Most Group
• BI Consulting partner of Right Click Info
• Professional Microsoft BI Trainer at Mentalist Network
• NMUG Community Leader , Speaker
• Microsoft Community Representative for Navi Mumbai region.
• SQL PASS Chapter Lead for Mumbai & Navi Mumbai
• MCTS: Microsoft® Certified Technology Specialist -SQL Server
2008,Business Intelligence Development and Maintenance
• MCSA: Microsoft® Certified Solutions Associate
• CSM: Certified Scrum Master from Scrum Alliance, US
• SQL Server Expert and 3 Complex SQL tool innovator on Codplex
• BE-Computer Science & Engineering , RAIT , Mumbai Univercity
• MBA-Information System, Arianth College , Pune
• Blogging @ http://bimentalist.com , http://sqlmentalist.com
• BI Articles :: 350+ , SQL Article – 400+, SQL Script – 350+
3.
Why we needSSAS Cube
3
What is SSAS Cube
Way to access Cube
What is Dimension and Attributes
3
4
Presentation Agenda
3
2
1
QHP Dimension and Attributes
Process Flow and QHP Cube Browsing
MDX Basics
MDX Tools
5
6
7
8
Comparison of Queries Written in T-SQL and MDX with Construct9
MDX – How to add where condition10
3
3
SSRS Reports with SSAS Cube11
4.
Why we needSSAS Cube
4
• Time in Processing
• Time in Development
• Dynamic structure
• Ad hoc Reporting
• Query Summery Slow
• Reporting Time Consuming
5.
5
What is SSASCube
• The Multi-Dimensional Data Model consists of:
a data cube, which is a multi-dimensional data structure consisting of
dimensions (which contain members) and measures; within a dimension,
members may be in a hierarchical relationship
• A set of operations to query cells of the cube using dimension members as
coordinates
• Rules that dictate how measure values are rolled up (or aggregated) within
hierarchies or how certain cells are computed in a sparse cube
6.
Way to accessCube
6
•Business Intelligence Development Studio (BIDS):
BIDS is used to access the cube and preview the data at the design time. This option is useful
only for the developer community and is not applicable to business analysts and decision
makers. BIDS was replaced by the SQL Server Data Tools in SQL Server 2012, but has much of
the same functionality.
•SQL Server Management Studio (SSMS):
SSMS is used to access the cube by people in different roles. It is used to access the cube by
the development/testing teams to validate the data. Those business analysts and decision
makers (very few) who are familiar with SSMS; also use it for accessing the cubes.
•Microsoft Office Excel:
Excel being one of the most widely used data analysis tool, has the capability to connect to
cubes and perform different kinds of reporting such as pivot tables, charts, etc. It is used by
many decision makers, business analysis, and even developers for reporting purposes.
•SQL Server Reporting Services (SSRS):
SSRS allows Analysis Services databases or cubes as a data source to build reports. This option
is available both in BIDSSQL Server Data Tools while building canned reports and in Report
Builder while doing ad-hoc reporting.
•PerformancePoint Services (PPS):
PPS which is now a part of SharePoint 2010 allows building KPIs, scorecards, reports, and
dashboards with Analysis Services cubes as data source.
Process Flow
10
Reads XMLfile
where user
has input the
Report preferences
Creates dynamic
MDX query based on
user’s report
preferences input
Retrieve data
from Cube
accordingly
Dynamic Excel Report
created based on user’s
report Preferences
Need to edit report ?
Click on Excel add-in
for editing the user
preferences.
Edit – View
of report
XML File
Run Application
Modifies the
User preference
XML with
necessary changes
done by user
XML File
Add/Delete /Change
the required field and
Calculations.
Click on “Report View”
Add-in to view report
Comparison of QueriesWritten in T-SQL & MDX - Construct
--TSQL Count
Select Count(1) from vwDimCompositeQuestionAssoc
--MDX Count
SELECT
NON EMPTY
{
[Measures].[Vw Dim Composite Question Assoc Count]
} ON COLUMNS
FROM [QHPAnalysis]
Now lets Convert Complex TSQL in to MDX
Select que.QuestionText,fct.TopBoxCount
from FctQuestionSurvey fct
inner join DimQuestionSample que
on que.QuestionID=fct.QuestionID
Where Fct.SurveyID=80101878 and que.QuestionText='In the last 6
months, did you get information or help from your health plan''s
customer service?'
14.
--Syntax for Joinand Where Condition in MDX
SELECT
NON EMPTY
{
--Column Selection
}
ON COLUMNS
,
NON EMPTY
{
--Row Selection
}
ON ROWS
FROM
(
SELECT
{
--Where Condition Column Selection
} ON COLUMNS
FROM
(
SELECT
{
--Where Condition Row Selection
} ON COLUMNS
FROM
[Cube Name ]
)
)
WHERE
--Where Condition on Row Selection
Syntax for Join and Where Condition in MDX
15.
SELECT
NON EMPTY
{[Measures].[Top BoxCount]}
ON COLUMNS
,
NON EMPTY
{[Dim Question Sample].[Question Text].[Question Text].ALLMEMBERS }
ON ROWS
FROM
(
SELECT
{
[Dim Question Sample].[Question Text].&[In the last 6 months, did you get information or help from your
health plan's customer service?]
} ON COLUMNS
FROM
(
SELECT
{[Dim Project Survey].[Survey ID].&[80101878]} ON COLUMNS
FROM [QHPAnalysis]
)
)
WHERE
[Dim Project Survey].[Survey ID].&[80101878];
16.
More example TSQLand MDX Comparison
http://www.mssqltips.com/
Comparison of Queries Written in T-SQL and
SQL Server MDX
Link -
http://www.mssqltips.com/sqlservertip/2916/c
omparison-of-queries-written-in-tsql-and-sql-
server-mdx/
Explain in 7 different example