building your first analysis services tabular bi semantic model with sql server 2012
DESCRIPTION
Speaker: Frederik VandeputteDownload SQL Server 2012: http://www.microsoft.com/sqlserver/en/us/get-sql-server/try-it.aspxTRANSCRIPT
![Page 1: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/1.jpg)
BUILDING YOUR FIRST ANALYSIS SERVICES TABULAR BI SEMANTIC MODEL WITH SQL SERVER 2012
Frederik VandeputtePartner @KoheraPresident @[email protected]
![Page 2: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/2.jpg)
AGENDA
• Introduction•Demo•Wrap Up
![Page 3: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/3.jpg)
3
ANALYSIS SERVICES: TODAY
Broad adoption “Customers in the Magic Quadrant survey report that their Microsoft average deployment sizes are now larger than any other vendor in the survey in terms of users.”
“Use of OLAP functionality by Microsoft customers is more than double that for the rest of the survey respondents.”
Source: Gartner Magic Quadrant for BI Platforms, 2011
Highest rated infrastructure and development tools“Microsoft customers rate its BI platform infrastructure and development tools among the highest compared to other vendors, and a higher percentage of customers use them extensively.”
Source: Gartner Magic Quadrant for BI Platforms, 2011
Large ecosystem "Wide availability of skills is among the top reasons customers select Microsoft over competing vendors.”
Source: Gartner Magic Quadrant for BI Platforms, 2011
![Page 4: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/4.jpg)
ANALYSIS SERVICES: TOMORROW
Build on the strengths and success of Analysis Services and expand its reach to a much broader user base
Embrace the relational data model – well understood by developers and IT Pros
Bring together the relational and multidimensional models under a single unified BI platform – best of both worlds!
Provide flexibility in the platform to suit the diverse needs of BI applications
Analysis Services VisionBI Semantic Model
![Page 5: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/5.jpg)
BI SEMANTIC MODEL
One Model for all End User Experiences
Client Tools Analytics, Reports, Scorecards,
Dashboards, Custom Apps
Data SourcesDatabases, LOB Applications, OData Feeds,
Spreadsheets, Text Files
BI Semantic ModelData model
Business logic and queriesData access
Team BIPowerPivot for
SharePoint
Personal BIPowerPivot for
Excel
Organizational BIAnalysis
Services
![Page 6: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/6.jpg)
BI Semantic ModelData model
Business logic and queries
Data access ROLAP MOLAP VertiPaq DirectQuery
MDX DAX
Multi-dimensional
Tabular
Third-partyapplications
ReportingServices
Excel PowerPivot
Databases LOB Applications Files OData Feeds Cloud Services
SharePointInsights
BI SEMANTIC MODEL: ARCHITECTURE
![Page 7: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/7.jpg)
SO WHAT’S ANALYSIS SERVICES TABULAR ANYWAY
• “Server Side version of PowerPivot v1”• Development in Visual Studio, not in Excel• Adding PowerPivot v2 features• Adding Enterprise features like • security• partitions• management• ...
![Page 8: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/8.jpg)
WHAT’S NEW COMPARED TO POWERPIVOT V1
• Richer Models• KPIs• Descriptions• Persisted formatting• Advanced sorting • Mark as Date Table• Distinct count• Drill-through• Perspectives• Hierarchies• Multiple relationships• Parent child
Optimized UsabilityImproved Date and Text filteringDiagramMeasure gridVarious usability enhancements
Reporting PropertiesRepresentative ColumnTable DetailTable IdentifierImageURL
![Page 9: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/9.jpg)
DEMO TIME
![Page 10: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/10.jpg)
ABOUT THE DEMO
• Built a first SSAS Tabular model from scratch• Enhance the model step by step• Compare and highlight differences with PowerPivot and SSAS Multidimensioal (OLAP)
![Page 11: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/11.jpg)
GETTING STARTED – 3 NEW OPTIONS
![Page 12: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/12.jpg)
THE WORKSPACE DATABASE
• Can be local or remote server • Holds in memory “development copy” of model• Databasename = ProjectName + username + GUID• Analyze in Excel connects to workspace DB• No need to redeploy to see changes in Excel or Cube browser
![Page 13: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/13.jpg)
MEASURES MUST BE EXPLICITELY CREATED
• PowerPivot will create implicit measures when you drag a column to the values area in a pivot table
• Not possible in BISM (No_ measure defined)• Like in SSAS OLAP – measures must be created explicitely• Eeasiest way: AutoSum in SQL Data Tools
![Page 14: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/14.jpg)
HIDE COLUMNS FROM CLIENT TOOLS
•Make your model user friendly• Hide (surrogate) key columns• Hide columns used in formulas• Hide SalesAmount• Sum of Sales Amount visible
![Page 15: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/15.jpg)
DAX DATA ANALYSIS EXPRESSION
• DAX = Data Analysis Expressions• Launched with PowerPivot• DAX goals• Make data analysis really easy• Used relationships defined in PowerPivot/BISM model (no need for
VLOOLUP)
• Excel like Syntax • Support for +/- 80 Excel function• 35 Built in Time Intelligence functions• + Additional functions
![Page 16: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/16.jpg)
WHAT CAN WE DO WITH DAX
•Create caclulated columns•Create calculated measures•Define security in the model•Query the BI Semantic Model• out of scope of this presentation• Power View uses DAX as a query language
![Page 17: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/17.jpg)
CALCULATED COLUMNS
• Just another column in a table• Similar to named calculations in SSAS OLAP Datasource
views• Calculated after data has been loaded (cube processing)• Can be placed in colums, rows, filters and slicers• Evaluated in row context• Examples
• [Amount] =[Qty] *[Price] • [Full Name] = [First Name] & “ “ & [Last Name]
![Page 18: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/18.jpg)
CALUCATED MEASURES
•Created in the measure grid•Calculated “on the fly”•Can only be placed in values area of PivotTables•Evaluated in filter context• Rows/Columns/filters/Slicers
•Examples• [Sales] = SUM (Sales[Amount])• [Average Sale] = AVERAGEX ( Sales, Sales[Amount])
![Page 19: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/19.jpg)
DATE CALCULATIONS
• TOTALYTD function• Calculated Year To Date Values• SalesAmtYTD:=TOTALYTD(SUM(AutoSales[SalesAmount]);Dates[Date]
)
WRONG RESULTS
![Page 20: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/20.jpg)
CREATE A DATE DIMENSION
• Mark Time Dimension Table as Date• Use data column from Time dimension in Calculations • Sort Columns By key column• Create Hierarchies (in Diagram view)
CORRECT RESULTS
![Page 21: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/21.jpg)
KPIS
![Page 22: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/22.jpg)
DAX EDITOR
• Code highlighting• No intellisense• Free download at http://daxeditor.codeplex.com/
![Page 23: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/23.jpg)
NO DETECTION OF MISSING RELATIONSHIPS
• PowerPivot detects missing relationships• No warning in SSAS Tabular• Create relationships manual
![Page 24: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/24.jpg)
PERSPECTIVES
![Page 25: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/25.jpg)
SECURITY
![Page 26: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/26.jpg)
PARTITIONS
![Page 27: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/27.jpg)
MANAGEBILITY OF YOUR BISM CUBES
• Via SSMS• Backup/Restore• Script• Deploy• Partition and security Managements
• SSIS• Analysis Services Processing Task
• AMO/ADOMD/PowerShell• Other tools• Deplyoment wizard, msbuild, source control, ..
![Page 28: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/28.jpg)
CONCLUSIONS
• Tabular model vs traditional SSAS OLAP cubes• Easier learing curve• No MDX, but DAX• Not all SSAS OLAP features are available in BISM tabular
o SCOPE statementso Write Backo Native support for many to many dimensionso ...
• Personal BI -> Team BI – Corporate BI• PowerPivot for Excel PowerPivot for Sharepoint BISM• Watch Kasper’s session tonight on Power View
![Page 29: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/29.jpg)
SOME RESOURCES
• Blogs• http://www.vandeputte.org (Frederik Vandeputte)• http://www.powerpivotblog.nl/ (Kasper De Jonge)• http://sqlblog.com/blogs/marco_russo/ (Marco Russo)• http://sqlblog.com/blogs/alberto_ferrari/ (Alberto Ferrari)• http://cathydumas.com/ (Cathy Dumas new)• http://blogs.msdn.com/b/cathyk/ (Cathy Dumas old)
• Sites• http://
social.technet.microsoft.com/wiki/contents/articles/277.powerpivot-overview.aspx (PowerPivot Wiki)
• http://www.powerpivot-info.com/• www.sqlug.be• www.kohera.be
![Page 30: Building your first Analysis Services Tabular BI Semantic model with SQL Server 2012](https://reader031.vdocuments.site/reader031/viewer/2022022404/545b5d3bb1af9f97118b4686/html5/thumbnails/30.jpg)
THANK YOU