1. Trang chủ
  2. » Công Nghệ Thông Tin

Microsoft SQL Server 2012 Analysis Services: The BISM Tabular Model ppt

655 3K 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Cấu trúc

  • Foreword

  • Introduction

  • Chapter 1: Introducing the Tabular Model

    • The Microsoft BI Ecosystem

      • What Is Analysis Services and Why Should I Use It?

      • A Short History of Analysis Services

      • The Microsoft BI Stack Today

      • Self-Service BI and Corporate BI

    • Analysis Services 2012 Architecture: One Product, Two Models

      • The Tabular Model

      • The Multidimensional Model

      • Why Have Two Models?

      • The Future of Analysis Services

    • Choosing the Right Model for Your Project

      • Licensing

      • Upgrading from Previous Versions of Analysis Services

      • Ease of Use

      • Compatibility with PowerPivot

      • Query Performance Characteristics

      • Processing Performance Characteristics

      • Hardware Considerations

      • Real-Time BI

      • Client Tools

      • Feature Comparison

    • Summary

  • Chapter 2: Getting Started with the Tabular Model

    • Setting Up a Development Environment

      • Components of a Development Environment

      • Licensing

      • Installation Process

    • Working with SQL Server Data Tools

      • Creating a New Project

      • Configuring a New Project

      • Importing from PowerPivot

      • Importing a Deployed Project from Analysis Services

      • Contents of a Tabular Project

    • Building a Simple Tabular Model

      • Loading Data into Tables

      • Working in the Diagram View

      • Deployment

    • Querying a Tabular Model in Excel

      • Connecting to a Tabular Model

    • Querying a Tabular Model in Power View

      • Creating a Connection to a Tabular Model

      • Building a Basic Power View Report

      • Adding Charts and Slicers

      • Interacting with a Report

    • Working with SQL Server Management Studio

    • Summary

  • Chapter 3: Loading Data Inside Tabular

    • Understanding Data Sources

    • Understanding Impersonation

    • Understanding Server-Side and Client-Side Credentials

    • Working with Big Tables

    • Loading from SQL Server

      • Loading from a List of Tables

      • Loading Relationships

      • Loading from a SQL Query

      • Loading from Views

    • Opening Existing Connections

    • Loading from Access

    • Loading from Analysis Services

      • Using the MDX Editor

      • Loading from a Tabular Database

    • Loading from an Excel File

    • Loading from a Text File

    • Loading from the Clipboard

    • Loading from a Reporting Services Report

      • Loading Reports by Using Data Feeds

    • Loading from a Data Feed

    • Loading from SharePoint

    • Loading from the Windows Azure DataMarket

    • Choosing the Right Data-Loading Method

    • Understanding Why Sorting Data Is Important

    • Summary

  • Chapter 4: DAX Basics

    • Understanding Calculation in DAX

      • DAX Syntax

      • DAX Data Types

      • DAX Operators

      • DAX Values

    • Understanding Calculated Columns and Measures

    • Calculated Columns

    • Measures

      • Editing Measures by Using DAX Editor

      • Choosing Between Calculated Columns and Measures

    • Handling Errors in DAX Expressions

      • Conversion Errors

      • Arithmetical Operation Errors

      • Empty or Missing Values

      • Intercepting Errors

    • Common DAX Functions

      • Aggregate Functions

      • Logical Functions

      • Information Functions

      • Mathematical Functions

      • Text Functions

      • Conversion Functions

      • Date and Time Functions

      • Relational Functions

    • Using Basic DAX Functions

    • Summary

  • Chapter 5: Understanding Evaluation Context

    • Evaluation Context in a Single Table

      • Filter Context in a Single Table

      • Row Context in a Single Table

      • Working with Evaluation Context for a Single Table

    • Understanding the EARLIER Function

    • Understanding Evaluation Context in Multiple Tables

      • Row Context with Multiple Tables

      • Understanding Row Context and Chained Relationships

      • Using Filter Context with Multiple Tables

      • Understanding Row and Filter Context Interactions

      • Modifying Filter Context for Multiple Tables

      • Final Considerations for Evaluation Context

    • Summary

  • Chapter 6: Querying Tabular

    • Tools for Querying Tabular

    • DAX Query Syntax

    • Using CALCULATETABLE and FILTER

    • Using ADDCOLUMNS

    • Using SUMMARIZE

    • Using CROSSJOIN, GENERATE, and GENERATEALL

    • Using ROW

    • Using CONTAINS

    • Using LOOKUPVALUE

    • Defining Measures Inside a Query

      • Test Your Measures with a Query

    • Parameters in DAX Query

      • Using DAX Query in SQL Server Reporting Services

    • Querying by Using MDX

      • Using DAX Local Measures in MDX Queries

      • Drillthrough in MDX Queries

    • Choosing Between DAX and MDX

    • Summary

  • Chapter 7: DAX Advanced

    • Understanding CALCULATE and CALCULATETABLE Functions

      • Evaluation Context in DAX Queries

      • Modifying Filter Context by Using CALCULATETABLE

      • Using FILTER in CALCULATE and CALCULATETABLE Arguments

      • Recap of CALCULATE and CALCULATETABLE Behavior

    • Control Filters and Selections

      • Using ALLSELECTED for Visual Totals

      • Filters and Cross Filters

      • Maintaining Complex Filters by Using KEEPFILTERS

    • Sorting Functions

      • Using TOPN

      • Using RANKX

      • Using RANK.EQ

    • Statistical Functions

      • Standard Deviation and Variance by Using STDEV and VAR

      • Sampling by Using the SAMPLE Function

    • Summary

  • Chapter 8: Understanding Time Intelligence in DAX

    • Tabular Modeling with Date Table

      • Creating a Date Table

      • Defining Relationship with Date Tables

      • Duplicating the Date Table

      • Setting Metadata for a Date Table

    • Time Intelligence Functions in DAX

      • Aggregating and Comparing over Time

      • Semiadditive Measures

    • Summary

  • Chapter 9: Understanding xVelocity and DirectQuery

    • Tabular Model Architecture in Analysis Services 2012

    • In-Memory Mode and xVelocity

      • Query Execution in In-Memory Mode

      • Row-Oriented vs. Column-Oriented Databases

      • xVelocity (VertiPaq) Storage

      • Memory Usage in xVelocity (VertiPaq)

      • Optimizing Performance by Reducing Memory Usage

      • Understanding Processing Options

    • Using DirectQuery and Hybrid Modes

      • DirectQuery Mode

      • Analyzing DirectQuery Mode Events by Using SQL Profiler

      • DirectQuery Settings

      • Development by Using DirectQuery

    • Summary

  • Chapter 10: Building Hierarchies

    • Basic Hierarchies

      • What Are Hierarchies?

      • When to Build Hierarchies

      • Building Hierarchies

      • Hierarchy Design Best Practices

      • Hierarchies Spanning Multiple Tables

    • Parent/Child Hierarchies

      • What Are Parent/Child Hierarchies?

      • Configuring Parent/Child Hierarchies

      • Unary Operators

    • Summary

  • Chapter 11: Data Modeling in Tabular

    • Understanding Different Data Modeling Techniques

      • Using the OLTP Database

    • Working with Dimensional Models

      • Working with Slowly Changing Dimensions

      • Working with Degenerate Dimensions

      • Using Snapshot Fact Tables

    • Computing Weighted Aggregations

    • Understanding Circular Dependencies

    • Understanding the Power of Calculated Columns: ABC Analysis

    • Modeling with DirectQuery Enabled

    • Using Views to Decouple from the Database

    • Summary

  • Chapter 12: Using Advanced Tabular Relationships

    • Using Multicolumn Relationships

    • Banding in Tabular

    • Using Many-to-Many Relationships

    • Implementing Basket Analysis

    • Querying Data Models with Advanced Relationships

    • Implementing Currency Conversion

    • Summary

  • Chapter 13: The Tabular Presentation Layer

    • Naming, Sorting, and Formatting

      • Naming Objects

      • Hiding Columns

      • Organizing Measures

      • Sorting Column Data

      • Formatting

    • Perspectives

    • Power View–Related Properties

      • Default Field Set

      • Table Behavior Properties

    • Drillthrough

    • KPIs

    • Summary

  • Chapter 14: Tabular and PowerPivot

    • PowerPivot for Microsoft Excel 2010

      • Using the PowerPivot Field List

      • Understanding Linked Tables

    • PowerPivot for Microsoft SharePoint

    • Using the Right Tool for the Job

    • Prototyping in PowerPivot, Deploying with Tabular

    • Summary

  • Chapter 15: Security

    • Roles

      • Creating Database Roles

      • Membership of Multiple Roles

    • Administrative Security

      • The Server Administrator Role

      • Database Roles and Administrative Permissions

    • Data Security

      • Basic Data Security

      • Testing Data Security

      • Advanced Row Filter Expressions

    • Dynamic Security

      • DAX Functions for Dynamic Security

      • Implementing Dynamic Security by Using CUSTOMDATA

      • Implementing Dynamic Security by Using USERNAME

    • Advanced Authentication Scenarios

      • Connecting to Analysis Services from Outside a Domain

      • Kerberos and the Double-Hop Problem

    • Monitoring Security

    • Summary

  • Chapter 16: Interfacing with Tabular

    • Understanding Different Tabular Interfaces

    • Understanding Tabular vs. Multidimensional Conversion

    • Using AMO from .NET

    • Writing a Complete AMO Application

      • Creating Data Source Views

      • Creating a Cube

      • Loading a SQL Server Table

      • Creating a Measure

      • Creating a Calculated Column

      • Creating Relationships

      • Drawing Some Conclusions

    • Performing Common Operations in AMO with .NET

      • Processing an Object

      • Working with Partitions

    • Using AMO with PowerShell

    • Using XMLA Commands

    • CSDL Extensions

    • Summary

  • Chapter 17: Tabular Deployment

    • Sizing the Server Correctly

      • xVelocity Requirements

      • DirectQuery Requirements

    • Automating Deployment to a Production Server

    • Table Partitioning

      • Defining a Partitioning Strategy

      • Defining Partitions for a Table in a Tabular Model

      • Managing Partitions for a Table

    • Processing Options

      • Available Processing Options

      • Defining a Processing Strategy

      • Executing Processing

    • Processing Automation

      • Using XMLA

      • Using AMO

      • Using PowerShell

      • Using SSIS

    • DirectQuery Deployment

      • Define a DirectQuery Partitioning Strategy

      • Implementing Partitions for DirectQuery and Hybrid Modes

      • Security and Impersonation with DirectQuery

    • Summary

  • Chapter 18: Optimizations and Monitoring

    • Finding the Analysis Services Process

    • Understanding Memory Configuration

    • Using Memory-Related Performance Counters

    • Understanding Query Plans

      • Understanding SUMX

      • Gathering Time Information from the Profiler

    • Common Optimization Techniques

      • Currency Conversion

      • Applying Filters in the Right Place

      • Using Relationships Whenever Possible

    • Monitoring MDX Queries

    • Monitoring DirectQuery

    • Gathering Information by Using Dynamic Management Views

    • Summary

  • Appendix: DAX Functions Reference

    • Statistical Functions

    • Table Transformation Functions

    • Logical Functions

    • Information Functions

    • Mathematical Functions

    • Text Functions

    • Date and Time Functions

    • Filter and Value Functions

    • Time Intelligence Functions

  • Index

  • About the Authors

Nội dung

www.it-ebooks.info www.it-ebooks.info Microsoft ® SQL Server ® 2012 Analysis Services: The BISM Tabular Model Marco Russo Alberto Ferrari Chris Webb www.it-ebooks.info Published with the authorization of Microsoft Corporation by: O’Reilly Media, Inc. 1005 Gravenstein Highway North Sebastopol, California 95472 Copyright © 2012 by Marco Russo, Alberto Ferrari, Christopher Webb All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher. ISBN: 978-0-7356-5818-9 1 2 3 4 5 6 7 8 9 M 7 6 5 4 3 2 Printed and bound in the United States of America. Microsoft Press books are available through booksellers and distributors worldwide. If you need support related to this book, email Microsoft Press Book Support at mspinput@microsoft.com. Please tell us what you think of this book at http://www.microsoft.com/learning/booksurvey. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/ Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners. The example companies, organizations, products, domain names, email addresses, logos, people, places, and events depicted herein are ctitious. No association with any real company, organization, product, domain name, email address, logo, person, place, or event is intended or should be inferred. This book expresses the author’s views and opinions. The information contained in this book is provided without any express, statutory, or implied warranties. Neither the authors, O’Reilly Media, Inc., Microsoft Corporation, nor its resellers, or distributors will be held liable for any damages caused or alleged to be caused either directly or indirectly by this book. Acquisitions and Developmental Editor: Russell Jones Production Editor: Holly Bauer Editorial Production: nSight, Inc. Technical Reviewers: Darren Gosbell and John Mueller Copyeditor: Kerin Forsyth / Ann Weaver Indexer: Nancy Guenther Cover Design: Twist Creative • Seattle Cover Composition: Karen Montgomery Illustrator: nSight, Inc. www.it-ebooks.info To the many BI communities that have supported me in the last years. —Marco russo I dedicate this book to Caterina, Lorenzo, and Arianna: my family. —alberto Ferrari I dedicate this book to my wife, Helen, and my two daughters, Natasha and Mimi. Thank you for your love, understanding, and patience. —chris Webb www.it-ebooks.info www.it-ebooks.info Contents at a Glance Foreword xix Introduction xxi CHAPTER 1 Introducing the Tabular Model 1 CHAPTER 2 Getting Started with the Tabular Model 19 CHAPTER 3 Loading Data Inside Tabular 75 CHAPTER 4 DAX Basics 121 CHAPTER 5 Understanding Evaluation Context 147 CHAPTER 6 Querying Tabular 185 CHAPTER 7 DAX Advanced 237 CHAPTER 8 Understanding Time Intelligence in DAX 291 CHAPTER 9 Understanding xVelocity and DirectQuery 329 CHAPTER 10 Building Hierarchies 361 CHAPTER 11 Data Modeling in Tabular 381 CHAPTER 12 Using Advanced Tabular Relationships 407 CHAPTER 13 The Tabular Presentation Layer 429 CHAPTER 14 Tabular and PowerPivot 449 CHAPTER 15 Security 463 CHAPTER 16 Interfacing with Tabular 487 CHAPTER 17 Tabular Deployment 513 CHAPTER 18 Optimizations and Monitoring 559 APPENDIX A DAX Functions Reference 589 Index 601 www.it-ebooks.info www.it-ebooks.info vii What do you think of this book? We want to hear from you! Microsoft is interested in hearing your feedback so we can continually improve our books and learning resources for you. To participate in a brief online survey, please visit: microsoft.com/learning/booksurvey Contents Foreword xix Introduction xxi Chapter 1 Introducing the Tabular Model 1 The Microsoft BI Ecosystem 1 What Is Analysis Services and Why Should I Use It? 1 A Short History of Analysis Services 2 The Microsoft BI Stack Today 3 Self-Service BI and Corporate BI 4 Analysis Services 2012 Architecture: One Product, Two Models 6 The Tabular Model 6 The Multidimensional Model 8 Why Have Two Models? 9 The Future of Analysis Services 10 Choosing the Right Model for Your Project 11 Licensing 11 Upgrading from Previous Versions of Analysis Services 12 Ease of Use 12 Compatibility with PowerPivot 12 Query Performance Characteristics 13 Processing Performance Characteristics 13 Hardware Considerations 13 Real-Time BI 14 Client Tools 15 Feature Comparison 15 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .17 www.it-ebooks.info viii Contents Chapter 2 Getting Started with the Tabular Model 19 Setting Up a Development Environment 19 Components of a Development Environment 19 Licensing 21 Installation Process 21 Working with SQL Server Data Tools 31 Creating a New Project 31 Conguring a New Project 33 Importing from PowerPivot 37 Importing a Deployed Project from Analysis Services 38 Contents of a Tabular Project 38 Building a Simple Tabular Model 40 Loading Data into Tables 41 Working in the Diagram View 49 Deployment 52 Querying a Tabular Model in Excel 53 Connecting to a Tabular Model 54 Querying a Tabular Model in Power View 65 Creating a Connection to a Tabular Model 65 Building a Basic Power View Report 66 Adding Charts and Slicers 68 Interacting with a Report 69 Working with SQL Server Management Studio 71 Summary. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .74 Chapter 3 Loading Data Inside Tabular 75 Understanding Data Sources 75 Understanding Impersonation 77 Understanding Server-Side and Client-Side Credentials 78 Working with Big Tables 79 Loading from SQL Server 80 Loading from a List of Tables 83 Loading Relationships 86 www.it-ebooks.info [...]... released over the years Because there are so many of these tools, it is useful to list them and provide a brief description of what each does The Microsoft BI stack can be broken up into two main groups: products that are part of the SQL Server suite of tools and products that are part of the Office group As of SQL Server 2012, the SQL Server BI-related tools include: ■■ ■■ ■■ ■■ ■■ ■■ ■■ ■■ ■■ SQL Server. .. released with SQL Server 7.0—was the first foray by Microsoft into the BI market When it was released, many people commented that this showed that BI software was ready to break out of its niche and reach a mass market, and the success of Analysis Services and the rest of the Microsoft BI stack over the past decade has proved them correct SQL Server Analysis Services 2000 was the first version of Analysis. .. ■■ ■■ ■■ SQL Server relational database  The flagship product of the SQL Server suite and the platform for the relational data warehouse http://www .microsoft. com/sqlserver/en/us/default.aspx SQL Azure  The Microsoft cloud-based version of SQL Server, not commonly used for BI purposes at the moment, but, as other cloud-based data sources become more common in the future, it will be used more and more... help bridge the gap between the worlds of self-service and corporate BI Chapter 1  Introducing the Tabular Model  5 www.it-ebooks.info Analysis Services 2012 Architecture: One Product, Two Models This section explains a little about the architecture of Analysis Services, which in SQL Server 2012 is split into two models The first and most important point to make about Analysis Services 2012 is that... made up of one or more tables of data Again, a table in the Tabular model is very similar to a table in the relational database world A table in Tabular is usually loaded from a single table in a relational database or from the results of a SQL SELECT statement A table has a fixed 6  Microsoft SQL Server 2012 Analysis Services: The BISM Tabular Model www.it-ebooks.info number of columns that are defined... releases will become known as the “Multidimensional Model, ” while the new, PowerPivot-like flavor of Analysis Services will be known as the Tabular Model. ” These two models have different strengths and weaknesses and are appropriate for different projects The Tabular Model (which, from here onward, we’ll refer to as simply Tabular) does not replace the Multidimensional Model Tabular is not “better” or... achieved Analysis Services today is an extremely successful, mature product that is used and trusted in thousands of enterprise-level deployments 2  Microsoft SQL Server 2012 Analysis Services: The BISM Tabular Model www.it-ebooks.info The Microsoft BI Stack Today The successes of Analysis Services would not have been possible if it had not been part of an equally successful wider suite of BI tools that Microsoft. .. one Analysis Services in the SQL Server 2008 R2 release and before is still present, but it is now called the Multidimensional model It has had a few improvements relating to performance, scalability, and manageability, but there is no new major functionality Meanwhile, there is a new version of Analysis Services that closely resembles PowerPivot—this is called the Tabular model The Tabular model is the. .. downloaded from the following page: http://go .microsoft. com/FWLink/?Linkid=254183 Follow the instructions to download the BismTabularSample.zip file and the sample database Installing the Code Samples Follow these steps to install the code samples on your computer so that you can follow the examples in this book: 1 Unzip the samples file onto your hard drive 2 Restore the two SQL Server databases from the bak... the fruit of more than a decade of development, even if some of them are not used very often Most of the features available in the Tabular model are present in the Multidimensional model, but the Multidimensional 8  Microsoft SQL Server 2012 Analysis Services: The BISM Tabular Model www.it-ebooks.info . www.it-ebooks.info www.it-ebooks.info Microsoft ® SQL Server ® 2012 Analysis Services: The BISM Tabular Model Marco Russo Alberto Ferrari Chris Webb www.it-ebooks.info Published with the. 4 Analysis Services 2012 Architecture: One Product, Two Models 6 The Tabular Model 6 The Multidimensional Model 8 Why Have Two Models? 9 The Future of Analysis Services

Ngày đăng: 22/03/2014, 09:20

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w