Published on

deck for DevTeach Vancouver May 2012

Published in: Technology
1 Like
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide
  • SQL Server 2012 learning resources - http://www.microsoft.com/sqlserver/en/us/learning-center/resources.aspxMore about PowerView - http://technet.microsoft.com/en-us/library/hh213579(v=sql.110).aspxExcel add-in for MDS - http://www.microsoft.com/download/en/details.aspx?id=28149More about column store index - http://msdn.microsoft.com/en-us/library/gg492088(v=SQL.110).aspxNew data type (enhancement to filestream) – Filetable - http://msdn.microsoft.com/en-us/library/ff929144(v=sql.110).aspx#DescriptionAlso enhancements to Full-text indexing (adding ability to search file metadata for .pdf, etc…)Also CDC support for Oracle
  • From MSDN – SSAS server mode names -- Multidimensional and Data Mining (default - UDM), PowerPivot for SharePoint, or Tabular (BISM)Very good summary of changes to SSAS in StaciaMeisner’s blog - http://blog.datainspirations.com/2012/02/11/3-big-changes-in-analysis-services-2012-enabling-flexible-design/
  • From MSDN – determining the SSAS server mode -- Multidimensional and Data Mining (default - UDM), PowerPivot for SharePoint, or Tabular (BISM)
  • Overcomes the 2 GB Max in Excel Well-written blog post explaining:What is columnstore vs. Vertipaq?Why both are neededHow customers may use both the UDM and the BISMhttp://www.marktab.net/datamining/index.php/2010/11/12/sql-server-data-mining-and-vertipaq-columnstore-indexes/
  • http://msdn.microsoft.com/en-us/data/hh297027
  • About connecting in SharePoint - http://msdn.microsoft.com/en-us/library/hh230972(v=sql.110).aspx
  • About creating KPIs w/examples of DAX - http://msdn.microsoft.com/en-us/library/hh231698(v=sql.110).aspxWhen importing from PowerPivot to SSAS, source can not use Linked Tables (in Excel), if using Linked Tables, that data must be stored as part of the import
  • Other infoBlog – using database images as a basis for BISM - https://denglishbi.wordpress.com/2011/12/09/using-database-images-in-tabular-bi-semantic-models-with-power-view/Blog - Direct Query Impersonation Options Explained - http://blogs.msdn.com/b/cathyk/archive/2011/12/13/directquery-impersonation-options-explained.aspx
  • About Direct Query mode - http://msdn.microsoft.com/en-us/library/hh230898(v=sql.110).aspxList of supported functions in DAX with Direct Query Mode - http://msdn.microsoft.com/en-us/library/hh213006(v=sql.110).aspx
  • Note: If you are doing a query against a Tabular model in SSMS, you will usually use DAX. To do this in the query window, you use this syntaxEVALUATE(<<DAX >>), for example: EVALUATE(CALCULATETABLE(ALL('Geography', 'Date'[Month]=“January”) ))
  • Both
  • Codeplex samples - http://msftdbprodsamples.codeplex.com/releases/view/55330
  • http://visualstudiogallery.msdn.microsoft.com/5be8704f-3412-4048-bfb9-01a78f475c64More aobut BISM NormalizerDatabase CompareConsider Database Schema Compare in Visual Studio Premium or Ultimate (minimum $4,000 extra in Visual Studio licensing cost).Many companies such as Red Gate, ApexSQL, Altova (to name but a few) provide (relational) database-compare tools that compete with Database Schema Compare in Visual Studio.What is the equivalent for OLAP databases on the Microsoft platform? There is none. Correction: there is now! BISM Normalizer.PowerPivot Model Migration to EnterpriseWhen migrating a Tabular model from PowerPivot to enterprise-level in Analysis Services, we can use “Import from PowerPivot”.But what then? Should we have a separate database for each PowerPivot migration? This could mean hundreds of databases to manage.BISM Normalizer allows merging of models migrated from PowerPivot into the appropriate enterprise Analysis Services database.Maintain a master model to be extended by different implementations in an enterprise organization.Script selected differences between models, enabling partial deployments.Report differences in an easily distributable format (Excel).Full integration with Visual Studio 2010 allows Tabular projects to act as source/target databases. This implies tight integration with source control/TFS.
  • From MSDN -- http://msdn.microsoft.com/en-us/library/hh230820(v=sql.110).aspxSSAS 2008 operations guide - http://msdn.microsoft.com/library/hh226085.aspxExtended events - http://msdn.microsoft.com/en-us/library/gg492139(v=sql.110).aspxPerformance counters - http://msdn.microsoft.com/en-us/library/hh230807(v=sql.110).aspx
  • Comparison of features from MSDN -- http://msdn.microsoft.com/en-us/library/hh212940(v=sql.110).aspx
  • Team blog - http://blogs.msdn.com/b/analysisservices/archive/2011/11/17/announcing-microsoft-sql-server-2012-release-candidate-0-rc0.aspx
  • Teach from www.TeachingKidsProgramming.org – Donate at www.MonaFoundation.org
  • SQL 2012 BISM

    1. 1. BI Semantic Model @LynnLangit
    2. 2. Breakthrough Insights = Better BI
    3. 3. Insights = Better BI Storage/Query/Display Modeling Query Display • PowerPivot • Columnstore • Excel Improvements • DAX • SharePoint • BISM for • XMLA • PowerView SSAS
    4. 4. What is …• What is it• Why to use it• Who will use it• When / where to install it• How to use it• What else?
    5. 5. SQL Server Analysis Services Modes• UDM (Multidimensional / Data Mining)  Also called OLAP cubes• BISM (Tabular)  Business Intelligence Semantic Model• PowerPivot for SharePoint
    6. 6. What is the BISM?• New model for SQL Server Analysis Services• Complimentary to the UDM (OLAP cube)• Must be installed ‘tabular model’ in SSAS  Only one model type per SSAS instance• Similar to PowerPivot, but on a server  Uses Vertipaq
    7. 7. Why Use BISM?• Quick and simple to set up (flexible model)  Fast – in memory by default w/Vertipaq  Connects to many types of data  Overcomes the limits of desktop Excel client  Granular (role-based) security model• Integrates with PowerView (data source in SPS)
    8. 8. Data Sources for BISM
    9. 9. Some Example Data Markets• Windows Azure Data Market• DataMarket.com• Factual.com• InfoChimps
    10. 10. When to use the BISM?• PowerPivot for personal BI  Excel desktop + PowerPivot add-in• PowerPivot on SPS for team BI  Excel Services + SharePoint Enterprise• BISM on SSAS for corporate BI  Tabular models created in SSDT  Tabular models viewed in one of the clients  Excel Power Pivot / Pivot Tables  SharePoint Reports  SharePoint PowerView
    11. 11. Installing BISM• SQL Server 2012 • BI or Enterprise Editions • Install SSAS in Tabular mode• Build models in Excel –AND- using SSDT • Stand-alone –OR- • Add-in to Visual Studio 2010• Not installed by default
    12. 12. How to Use BISM?• Design in SSDT (or import from PowerPivot)• Models can be opened in Excel PowerPivot, SharePoint or• Can be used as data sources for SSRS in SharePoint….
    13. 13. Parts of BISM • Tabular Model Project in SSDT • New or Import • BISM – new or from PowerPivot via Excel • Workspace Database (in memory by default) • Views in BISM • Data & Calculation • Diagram • Toolbars—create KPI, etc… • Perspectives are supported as well
    14. 14. Enhancing Models• Sort or Filter Table data• Add Relationships (diagram view)• Add Hierarchies (diagram view)• Adding Calculated Columns via DAX• Adding Measures and KPIs via DAX
    15. 15. Diagram View of BISM in SSDT• Manage Relationships• Create Hierarchies
    16. 16. Using DAX with BISM modeling• Data-expression Query Language  Excel-like simplified version of MDX  Excel ‘plus’ adds  Navigate relationships  Dynamic calculation of measures  Table-valued functions  Date/Time intelligence (functions, ex. MTD, QTD, YTD)
    17. 17. BISM Models and Excel• Can be created in Excel (and imported into SSDT)• Can be viewed in Excel (PivotTables) while modeling in SSDT
    18. 18. Enhancing the Model – Advanced View
    19. 19. Enhancing the Model – Advanced View 2 • Set the Table Behavior  Row ID  Uniqueness  Default Label  Default Image
    20. 20. About Query Modes• InMemory is the default• Query Mode (SSDT) / Direct Query Mode (SSMS)• Direct Query mode can use Columnstore indexes• Direct Query mode supports only a single data source• Not all DAX functions work in Direct Query mode – c-link
    21. 21. SSAS Server Settings for Tabular Mode
    22. 22. Adding Security Roles• Map groups to BISM roles
    23. 23. Deployment of BISM in SSDT to SSAS• Query Mode default is ‘In- Memory’• Cube Name default is Model
    24. 24. Connecting to a deployed BISM model• Administration in SSMS• View in Client  Excel / PowerPivot  SharePoint PowerView
    25. 25. DAX or MDX?• MDX issuing clients (Excel) can talk to both multidimensional models and tabular models running in VertiPaq (in-memory) mode.• MDX cannot be used to talk to DirectQuery models.• DAX issuing clients (Power View) can talk to tabular models (both kinds - VertiPaq and DirectQuery)• DAX cannot be used to talk to multidimensional models. This functionality is on the roadmap, but will not be present at RTM
    26. 26. Connect in SSMS
    27. 27. Tips, Tricks & Gotchas• Installation • SSAS in either Tabular –or- UDM mode • Needs prerequisites• Development • One BISM model per project • DAX, not MDX • Try it out in Excel while developing in SSDT
    28. 28. Trying out BISMSamples• SQL 2012 tutorial - here• CodePlex samples – here
    29. 29. Tips, Tricks, Gotchas for BISMMust install it correctly when installing SSAS3rd party tool – BISM Normalizer
    30. 30. Monitoring Resource Usage• Can use Profiler• Extended Events for monitoring• Can use DMVs• SSAS Operations Guide
    31. 31. What about the UDM?• UDM / Data Mining is fully supported in SSAS• Must be installed in this mode  Mutually exclusive to Tabular mode• But, should you use it anymore?
    32. 32. ResourcesTeam Blog - hereOther blogsAbout DAX – MVP blog - here
    33. 33. Next Steps• Install SSAS Tabular mode• Learn PowerPivot and DAX• Build a Tabular model
    34. 34. Related Session(s)• SQL BI  SQL 366 - Understanding Analysis Services in SQL Server 2012  SQL 422 – Integrating Spreadsheets with Enterprise Data  SQL 245 - Why Data Warehousing Projects Fail  SQL 384 - Data Quality Services (DQS) and Master Data Services in SQL Server 2012
    35. 35. www.TeachingKidsProgramming.orgDo a Recipe  Teach a Kid (Ages 10 ++)Microsoft SmallBasic  Free Courseware (recipes)
    36. 36. Keep up with Data Follow me @LynnLangit RSS my blog www.LynnLangit.com Hire me • To help build your BI/Big Data solution • To teach your team next gen BI with SQL Server 2012