Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

SSAS, MDX , Cube understanding, Browsing and Tools information

3,147 views

Published on

Why we need SSAS Cube
What is SSAS Cube
Way to access Cube
What is Dimension and Attributes
QHP Dimension and Attributes
Process Flow and QHP Cube Browsing
MDX Basics
MDX Tools
Comparison of Queries Written in T-SQL and MDX with Construct
MDX –How to add where condition

Published in: Technology
  • Be the first to comment

SSAS, MDX , Cube understanding, Browsing and Tools information

  1. 1. SSAS, MDX , Cube understanding, Browsing and Tools information
  2. 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. 3. Why we need SSAS 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. 4. Why we need SSAS Cube 4 • Time in Processing • Time in Development • Dynamic structure • Ad hoc Reporting • Query Summery Slow • Reporting Time Consuming
  5. 5. 5 What is SSAS Cube • 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. 6. Way to access Cube 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.
  7. 7. What is Dimension and Attributes 7
  8. 8. QHP Dimension and Attributes 8
  9. 9. Dimension and Attributes 9
  10. 10. Process Flow 10 Reads XML file 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
  11. 11. QHP Cube Browsing with SSMS 11 DEMO
  12. 12. MDX Tools 12 http://www.sqlbi.com/tools/mdx-studio/ Click above link to download
  13. 13. Comparison of Queries Written 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. 14. --Syntax for Join and 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. 15. SELECT NON EMPTY {[Measures].[Top Box Count]} 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. 16. More example TSQL and 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
  17. 17. MDX how to add where condition 17 Demo
  18. 18. SSRS Reports with SSAS Cube 18
  19. 19. Basic SSAS tutorial 19  MSBI # 1– BI # 1-Its always start with the introduction  MSBI # 2– BI # 2- Lets play with Business Intelligence Development Studio (BIDS)  MSBI # 9– BI # 3 – Architectural Overview of SSIS,SSRS and SSAS .  MSBI # 5 – SSAS # 1- What is SSAS ? – (SQL Server Analysis Services)  MSBI # 8 – SSAS # 2- Get familiar with BIDS–SSAS ? – (SQL Server Analysis Services)  MSBI # 17 – SSAS # 3 – Lets Get Start with SSAS ,Features and Project Start up  MSBI # 18 – SSAS # 4 – Building a Cube and Dimension Using SSMS–SSAS Wizards  MSBI # 19 – SSAS # 5 – How to Defining a Data Source and Data Source View  MSBI # 20 – SSAS # 6 – How Defining a Cube in SSAS  MSBI # 21 – SSAS # 7 – Understanding the Cube Designer Tabs in SSAS  MSBI # 27 – SSAS # 8 – Deploying an Analysis Services Project  MSBI # 28 – SSAS # 9 – Modifying Measures, Attributes and Hierarchies in SSAS  MSBI # 34 – SSAS # 10 – How to Defining Actions in SSAS  MSBI # 41 – SSAS # 11 – How to Defining Calculations in SSAS  MSBI # 42 – SSAS # 12 – How to Defining Key Performance Indicators (KPIs) in SSAS  MSBI # 43 – SSAS # 13 – How Defining Actions in SSAS  MSBI # 56 – SSAS # 14 – How to Defining Perspectives and Translations in SSAS  MSBI # 58 – SSAS # 15 – How to Defining Administrative Roles in SSAS

×