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

Developing business intelligence apps for sharepoint

591 160 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

  • Copyright

  • Table of Contents

  • Preface

    • Why You Need to Read This Book

    • Business Application Components

    • The Example Application

    • Conventions Used in This Book

    • Using Code Examples

    • Safari® Books Online

    • How to Contact Us

    • Acknowledgments

  • Part I. 

    • Chapter 1. SharePoint, Apps, and Business Intelligence

      • So What Does All This Have to Do with Business Intelligence?

    • Chapter 2. Choosing the Right Tools for the Job

      • Technology Selection Goals

      • Solution Components

      • Visual Studio LightSwitch

      • SharePoint Server 2010-2013

      • SharePoint Development: Past, Present, and Future

        • Farm Solutions: SharePoint 2007

        • Sandbox Solutions and CSOM: SharePoint 2010

        • The Cloud App Model with Apps for SharePoint: SharePoint 2013

        • Our Strategy

      • SQL Server 2012 for Business Intelligence

      • Summary

    • Chapter 3. Basic Concepts of Relational Database Design

      • Normalization

        • First Normal Form: Stop repeating yourself

        • Second Normal Form: The Whole Key

        • Third Normal Form: Nothing but the Key

        • Bringing It All Together

      • Many-to-Many Relationships

      • Summary

  • Part II. 

    • Chapter 4. Why You Need LightSwitch

      • Traditional SharePoint Development Is Difficult

      • Custom Development Is Tedious

      • Build Custom Apps, Coding Optional

    • Chapter 5. Start with Data

      • Defining Basic Fields and Data Types

      • Using the Properties Window

      • Enhancing a String with a Choice List

      • Setting Default Values

      • Adding Relationships

      • Business Types

      • Defining Uniqueness

      • Practicing What We Just Learned

      • Calculated Computed Properties

      • Advanced Relationships

      • Summary

    • Chapter 6. Screens: The LightSwitch User Interface

      • Creating Screens

        • Using Read-Only Controls

        • Displaying Related Fields

        • Launching the Application for the First Time

      • Creating a Modal Window

      • Summary

    • Chapter 7. Adding Business Logic

      • Change Tracking in LightSwitch

      • Factoring Out Repeated Logic

      • Customizing the Add and Edit Buttons

      • Designing Running Screens

      • Creating a Custom Details Page

      • Custom Validation

      • Summary

    • Chapter 8. Application Security, Access Control, and Personalizing Your Application

      • Enabling Authentication: Windows or Forms

      • Adding a Welcome Message Using Our ViewModel

        • Adding a Query to the Model

        • Add the Query to the Screen (ViewModel)

        • Binding to Query Parameters

      • Summary

    • Chapter 9. Running and Debugging Our Application

      • The LightSwitch Runtime Experience

      • The LightSwitch Grid Control

        • Sorting

        • Export to Excel

      • Search

        • What’s Really Happening Between Our Client and the Server?

      • Running as a Web Application

      • Summary

    • Chapter 10. LightSwitch with SharePoint Data

      • Logical SharePoint Architecture

      • Adding a SharePoint Data Source

        • Relating to SharePoint Data

      • Populating the Knowledge Base

      • Summary

    • Chapter 11. Deploying Your LightSwitch Application

      • The Application Designer

      • The Publishing Wizard

        • What Kind of Application Do You Want to Deploy?

        • Where Will the Application’s Services Be Hosted?

        • Remotely Publish the App or Just Package It for Now?

        • Do You Need an SSL Certificate?

        • How Will You Deploy Your Database?

        • Should LightSwitch Create an Application Administrator Account?

        • Specify Other Connection Information

        • Signing Your Code

        • Ready to Deploy

      • Deploying Your Packages to the Server

        • A First Look at the Database

      • Summary

  • Part III. 

    • Chapter 12. Introduction to Business Intelligence

      • What Is Business Intelligence?

      • Applications of Business Intelligence

      • Microsoft’s Tools for Business Intelligence

        • SQL Server Database Engine

        • SQL Server Analysis Services (Prior to 2012)

        • PowerPivot for Excel and SharePoint

      • Summary

    • Chapter 13. Business Intelligence Semantic Model (BISM)

      • Why Business Intelligence Semantic Model?

      • BISM Design Goals

      • Business Intelligence Semantic Model Architecture

      • Consuming Data from OData Sources

      • How Do Existing Analysis Services Applications Translate to the New Semantic Model?

      • Pros and Cons of the New BI Tabular Data Model

      • How Do the Data Access Methodologies Stack Up?

        • xVelocity (Tabular)

        • MOLAP (UDM)

        • ROLAP (UDM)

        • DirectQuery (Tabular)

      • Business Logic

      • DAX Syntax

      • Getting Started with DAX

    • Chapter 14. Populating Sample Data into Our Database

      • Downloading Adventure Works Data from Microsoft

      • Attaching the Database

      • Importing People from Adventure Works

      • Synthesizing Help Desk Queues from Adventure Works

      • Importing Tickets from Adventure Works

      • Review the Results

    • Chapter 15. Building the Help Desk Tabular Cube

      • Importing SQL Server Data into PowerPivot

      • Connecting Excel to the PowerPivot Model

      • Importing Data from the Windows Azure Marketplace DataMarket

      • Summary

    • Chapter 16. Enriching the Cube: Relationships and DAX

      • Relationships in PowerPivot

      • Manually Adding Relationships

      • Traversing Relationships with DAX

      • Hiding Columns and Tables from Client Tools

      • Using DAX to Aggregate Rows in a Related Table

      • Calculating Earliest and Latest Related Dates with DAX

      • Parsing Strings with DAX

      • Counting and Aggregating Related Rows with DAX

      • Count of Distinct Values with DAX

      • Calculating the Difference Between Dates with DAX

      • Adding a Measure from the Excel Side

      • Counting Rows Across an Inactive Relationship

      • Creating a Hierarchy for Dates

      • Looking Up Related Data Without an Active Relationship

      • Summary

    • Chapter 17. Deploying to SharePoint

      • Sharing with Your Team

      • Summary

    • Chapter 18. SQL Server Analysis Services (SSAS)

      • Scalability

      • Manageability

      • Security

      • Development Tools

      • Direct Feature Comparison

      • Upgrading a PowerPivot Workbook to a Tabular Model

      • Validating the Deployment

      • Automating Processing Your Cube

      • Summary

  • Part IV. 

    • Chapter 19. PivotTable Basics

      • Meaning from Data

      • The Universal Business Intelligence Tool

      • PivotTables

      • Ranking Largest to Smallest

      • Percentage of Parent Row

      • Filtering and Sorting PivotTable Dimensions

      • Visual Totals

      • Values on Rows

      • PivotCharts

      • Summary

    • Chapter 20. Slicers

      • Inserting an Additional PivotTable

      • Connecting Additional PivotTables to Slicers

      • Summary

    • Chapter 21. Formatting

      • Custom Slicer Formatting

      • Disabling Gridlines and Headings

      • Formatting PivotTables and PivotCharts

      • Summary

    • Chapter 22. PivotTable Named Sets

      • Scenario: Last Four Years of Ticket Counts and Total Average Time to Closure

      • Reusing a Named Set for Another Chart

      • Summary

    • Chapter 23. Sparklines and Data Bars

      • Sparklines: Intense, Simple, Word-Sized Graphics

      • Adding a Data Bar

      • Summary

    • Chapter 24. Configuring a Gallery for Reporting Services, Power View, and Excel Services

      • Enabling Required Features

      • Creating the PowerPivot Gallery

      • Enabling Business Intelligence Content Types

      • Setting Up Your Default View

      • Summary

    • Chapter 25. Reporting Services Basics

      • What Is Reporting Services?

      • Report Architecture

      • Creating a Reporting Services Data Source

      • Launching Report Builder 3.0

      • Creating Datasets

      • Creating a Reporting Services Report

      • Adding a Chart

      • Consuming an OData Feed from Reporting Services

      • Summary

    • Chapter 26. Advanced Reporting Services Charting

      • Create a Drill-Down Report

        • Creating a Basic Chart

        • Applying Predefined Styles

        • Size the Chart and Preview

        • Adding a Parameter to the Report

        • Applying Dataset Filters

        • Construct a Filter Expression

        • Validating the Parameterized Report

        • Creating a Dynamic Chart Title

        • Headers and Footers

      • Two Approaches to Drill-Down Reporting

      • Basic Drill-Down Reports

      • Advanced Pop-Up Window Drill-Down Report

      • Summary

    • Chapter 27. Subscriptions and Data Alerts

      • Report Subscriptions and Delivery

      • How Does It Work?

      • Setting Up a Report

      • Common Scenarios for Subscriptions

      • Data Alerts

        • How Data Alerts Work

        • Managing Data Alerts

        • Creating a New Data Alert

      • Summary

    • Chapter 28. Excel Services and Power View

      • What Is Excel Services?

      • What Is Power View?

      • Why Are We Talking About Excel Services and Power View Together?

      • Publishing a PowerPivot Model to Excel Services

      • Using Excel Services 2013 as an OData Feed

      • Using Power View on a PowerPivot Model

      • Saving Your Power View

      • Exporting to PowerPoint

      • Connecting to Tabular Cubes

      • Summary

    • Chapter 29. What’s Next for Excel and Power View 2013

      • Quick Explore

        • Trend Chart

        • Drill To

      • PowerPivot and Power View Are Built into Excel 2013

        • Enabling the PowerPivot and Power View Add-ins

        • Adding a Power View Report

      • Power View Maps

        • Maps with Pie Charts

      • Power View Hierarchies and Drill Down

      • Power View Pie Charts, Slices, and Drill Down

      • Enabling Tabular Drill Down with the Matrix

      • Key Performance Indicators

        • Building an Average Days to Closure KPI

        • Surfacing KPIs in Power View

        • Filtering a KPI Table with a Pie Chart

        • Adding a Trend Chart

        • Bringing It All Together

      • Summary

  • Part V. 

    • Chapter 30. Architecture to Support SharePoint BI

      • SharePoint Architecture with SQL 2012 BI

        • Content, Service Application, and Configuration Databases

        • Reporting Services (SSRS)

        • Excel Services

        • PowerPivot and Power View

      • SharePoint 2013 Changes

        • SQL Server Analysis Services (SSAS)

        • The BI Light-Up Story

      • Summary

    • Chapter 31. The Infrastructure

      • The Environment

        • Active Directory

        • SharePoint Web Server

        • SharePoint App Server

        • SQL Database Server

        • Development Machine

      • Microsoft SharePoint 2010

      • Visual Studio LightSwitch 2011

        • The LightSwitch Development Environment

        • LightSwitch Server Runtime Components

      • SQL Server

        • SQL Server Analysis Services

        • SQL Reporting Services

        • SQL Server Database Engine

      • SQL Server Licensing

      • Summary

    • Chapter 32. Your Environment

      • Server Requirements

        • Physical Versus Virtual

        • Single Server Versus Multi-Server

      • Logical Requirements

      • Recommended Specs

      • Summary

    • Chapter 33. Active Directory

      • Before Setting Up Active Directory

      • Creating the Active Directory

      • Managing Service Accounts

        • Service Accounts Management

        • Managed Service Accounts: Windows Server Version

        • Managed Service Accounts: SharePoint Team Edition

      • Security in Active Directory

        • Setting Group Policy

      • Summary

    • Chapter 34. Visual Studio LightSwitch

      • Visual Studio LightSwitch Client-Side Installation

        • Microsoft Minimum Requirements for Running Visual Studio LightSwitch

        • Experiential Recommendation for Visual Studio LightSwitch Requirements

        • Client-Side Installation of Visual Studio LightSwitch

      • Visual Studio LightSwitch Server-Side Implementation

        • Installing Visual Studio LightSwitch Server-Side Extensions

      • Summary

    • Chapter 35. Installing the BI Components for SharePoint

      • SQL 2012 for PowerPivot on the App Tier

        • Upgrading from PowerPivot 2008 R2 to 2012

        • Clean Install of PowerPivot 2012

      • Summary

    • Chapter 36. PowerPivot Instance Configuration

      • Initial PowerPivot Instance Configuration

      • Summary

    • Chapter 37. PowerPivot Service Application Configuration

      • PowerPivot Management Dashboard Setup

      • Request Allocation

        • Load Balancing with xVelocity

        • Caching: xVelocity Versus Disk Cache

      • Using the PowerPivot Management Dashboard

      • Summary

    • Chapter 38. Excel Services Configuration

      • Excel Services and the Secure Store

        • What Is the Secure Store Service?

        • Configuring the Unattended Service Account for Excel Services

      • Allow Cross-Domain Access

      • Summary

    • Chapter 39. Office Client Configuration of PowerPivot and Power View

      • Getting Started

        • PowerPivot Version 2

      • The Light-Up Story for PowerPivot and Power View in Office 2013

      • Power View Light Up on SharePoint

      • Summary

    • Chapter 40. SQL Server Reporting Services Configuration

      • Provisioning Subscriptions and Alerts

      • Email Configuration

      • Key Management

      • Leveraging EffectiveUserName

      • Summary

  • Index

  • About the Authors

Nội dung

www.it-ebooks.info www.it-ebooks.info Developing Business Intelligence Apps for SharePoint David Feldman and Jason Himmelstein www.it-ebooks.info Developing Business Intelligence Apps for SharePoint by David Feldman and Jason Himmelstein Copyright © 2013 Jason Himmelstein, David Feldman All rights reserved Printed in the United States of America Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA 95472 O’Reilly books may be purchased for educational, business, or sales promotional use Online editions are also available for most titles (http://my.safaribooksonline.com) For more information, contact our corporate/ institutional sales department: 800-998-9938 or corporate@oreilly.com Editor: Rachel Roumeliotis Production Editor: Christopher Hearse Copyeditor: Gillian McGarvey Proofreader: Charles Roumeliotis June 2013: Indexer: Ellen Troutman Zaig Cover Designer: Randy Comer Interior Designer: David Futato Illustrator: Rebecca Demarest First Edition Revision History for the First Edition: 2013-06-28: First release See http://oreilly.com/catalog/errata.csp?isbn=9781449320836 for release details Nutshell Handbook, the Nutshell Handbook logo, and the O’Reilly logo are registered trademarks of O’Reilly Media, Inc Developing Business Intelligence Apps for SharePoint, the image of an Eastern Kingbird, and related trade dress are trademarks of O’Reilly Media, Inc Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks Where those designations appear in this book, and O’Reilly Media, Inc., was aware of a trade‐ mark claim, the designations have been printed in caps or initial caps While every precaution has been taken in the preparation of this book, the publisher and authors assume no responsibility for errors or omissions, or for damages resulting from the use of the information contained herein ISBN: 978-1-449-32083-6 [LSI] www.it-ebooks.info Table of Contents Preface xiii Part I SharePoint, Apps, and Business Intelligence So What Does All This Have to Do with Business Intelligence? Choosing the Right Tools for the Job Technology Selection Goals Solution Components Visual Studio LightSwitch SharePoint Server 2010-2013 SharePoint Development: Past, Present, and Future Farm Solutions: SharePoint 2007 Sandbox Solutions and CSOM: SharePoint 2010 The Cloud App Model with Apps for SharePoint: SharePoint 2013 Our Strategy SQL Server 2012 for Business Intelligence Summary 6 10 11 12 13 14 16 16 17 Basic Concepts of Relational Database Design 19 Normalization First Normal Form: Stop repeating yourself Second Normal Form: The Whole Key Third Normal Form: Nothing but the Key Bringing It All Together Many-to-Many Relationships 19 20 22 24 25 25 iii www.it-ebooks.info Summary 26 Part II Why You Need LightSwitch 29 Traditional SharePoint Development Is Difficult Custom Development Is Tedious Build Custom Apps, Coding Optional 29 30 32 Start with Data 33 Defining Basic Fields and Data Types Using the Properties Window Enhancing a String with a Choice List Setting Default Values Adding Relationships Business Types Defining Uniqueness Practicing What We Just Learned Calculated Computed Properties Advanced Relationships Summary 34 35 36 37 39 42 43 43 44 45 45 Screens: The LightSwitch User Interface 47 Creating Screens Using Read-Only Controls Displaying Related Fields Launching the Application for the First Time Creating a Modal Window Summary 48 49 51 52 55 58 Adding Business Logic 59 Change Tracking in LightSwitch Factoring Out Repeated Logic Customizing the Add and Edit Buttons Designing Running Screens Creating a Custom Details Page Custom Validation Summary 61 62 63 68 70 73 75 Application Security, Access Control, and Personalizing Your Application 77 Enabling Authentication: Windows or Forms iv | Table of Contents www.it-ebooks.info 77 Adding a Welcome Message Using Our ViewModel Adding a Query to the Model Add the Query to the Screen (ViewModel) Binding to Query Parameters Summary 79 84 85 86 89 Running and Debugging Our Application 91 The LightSwitch Runtime Experience The LightSwitch Grid Control Sorting Export to Excel Search What’s Really Happening Between Our Client and the Server? Running as a Web Application Summary 91 91 91 91 92 92 93 96 10 LightSwitch with SharePoint Data 97 Logical SharePoint Architecture Adding a SharePoint Data Source Relating to SharePoint Data Populating the Knowledge Base Summary 97 103 106 108 112 11 Deploying Your LightSwitch Application 113 The Application Designer The Publishing Wizard What Kind of Application Do You Want to Deploy? Where Will the Application’s Services Be Hosted? Remotely Publish the App or Just Package It for Now? Do You Need an SSL Certificate? How Will You Deploy Your Database? Should LightSwitch Create an Application Administrator Account? Specify Other Connection Information Signing Your Code Ready to Deploy Deploying Your Packages to the Server A First Look at the Database Summary 113 114 114 115 116 117 118 119 120 121 122 123 134 135 Part III Table of Contents www.it-ebooks.info | v 12 Introduction to Business Intelligence 139 What Is Business Intelligence? Applications of Business Intelligence Microsoft’s Tools for Business Intelligence SQL Server Database Engine SQL Server Analysis Services (Prior to 2012) PowerPivot for Excel and SharePoint Summary 139 140 141 143 144 145 147 13 Business Intelligence Semantic Model (BISM) 149 Why Business Intelligence Semantic Model? BISM Design Goals Business Intelligence Semantic Model Architecture Consuming Data from OData Sources How Do Existing Analysis Services Applications Translate to the New Semantic Model? Pros and Cons of the New BI Tabular Data Model How Do the Data Access Methodologies Stack Up? xVelocity (Tabular) MOLAP (UDM) ROLAP (UDM) DirectQuery (Tabular) Business Logic DAX Syntax Getting Started with DAX 149 149 150 151 153 156 157 157 157 158 158 158 159 160 14 Populating Sample Data into Our Database 161 Downloading Adventure Works Data from Microsoft Attaching the Database Importing People from Adventure Works Synthesizing Help Desk Queues from Adventure Works Importing Tickets from Adventure Works Review the Results 161 162 166 168 172 174 15 Building the Help Desk Tabular Cube 177 Importing SQL Server Data into PowerPivot Connecting Excel to the PowerPivot Model Importing Data from the Windows Azure Marketplace DataMarket Summary 178 184 187 195 16 Enriching the Cube: Relationships and DAX 197 Relationships in PowerPivot vi | 197 Table of Contents www.it-ebooks.info Manually Adding Relationships Traversing Relationships with DAX Hiding Columns and Tables from Client Tools Using DAX to Aggregate Rows in a Related Table Calculating Earliest and Latest Related Dates with DAX Parsing Strings with DAX Counting and Aggregating Related Rows with DAX Count of Distinct Values with DAX Calculating the Difference Between Dates with DAX Adding a Measure from the Excel Side Counting Rows Across an Inactive Relationship Creating a Hierarchy for Dates Looking Up Related Data Without an Active Relationship Summary 200 201 203 205 207 208 210 213 214 217 218 224 228 231 17 Deploying to SharePoint 233 Sharing with Your Team Summary 233 239 18 SQL Server Analysis Services (SSAS) 241 Scalability Manageability Security Development Tools Direct Feature Comparison Upgrading a PowerPivot Workbook to a Tabular Model Validating the Deployment Automating Processing Your Cube Summary 241 242 242 243 244 245 253 253 262 Part IV 19 PivotTable Basics 265 Meaning from Data The Universal Business Intelligence Tool PivotTables Ranking Largest to Smallest Percentage of Parent Row Filtering and Sorting PivotTable Dimensions Visual Totals Values on Rows 265 265 266 267 268 269 270 274 Table of Contents www.it-ebooks.info | vii PivotCharts Summary 275 279 20 Slicers 281 Inserting an Additional PivotTable Connecting Additional PivotTables to Slicers Summary 283 287 289 21 Formatting 291 Custom Slicer Formatting Disabling Gridlines and Headings Formatting PivotTables and PivotCharts Summary 291 296 297 300 22 PivotTable Named Sets 301 Scenario: Last Four Years of Ticket Counts and Total Average Time to Closure 302 Reusing a Named Set for Another Chart 305 Summary 308 23 Sparklines and Data Bars 309 Sparklines: Intense, Simple, Word-Sized Graphics Adding a Data Bar Summary 309 317 318 24 Configuring a Gallery for Reporting Services, Power View, and Excel Services 319 Enabling Required Features Creating the PowerPivot Gallery Enabling Business Intelligence Content Types Setting Up Your Default View Summary 319 320 322 324 326 25 Reporting Services Basics 327 What Is Reporting Services? Report Architecture Creating a Reporting Services Data Source Launching Report Builder 3.0 Creating Datasets Creating a Reporting Services Report Adding a Chart Consuming an OData Feed from Reporting Services viii | Table of Contents www.it-ebooks.info 327 327 328 330 332 339 341 348 ...www.it-ebooks.info Developing Business Intelligence Apps for SharePoint David Feldman and Jason Himmelstein www.it-ebooks.info Developing Business Intelligence Apps for SharePoint by David Feldman... Introduction to Business Intelligence 139 What Is Business Intelligence? Applications of Business Intelligence Microsoft’s Tools for Business Intelligence. .. LightSwitch SharePoint Server 2010-2013 SharePoint Development: Past, Present, and Future Farm Solutions: SharePoint 2007 Sandbox Solutions and CSOM: SharePoint 2010 The Cloud App Model with Apps for SharePoint:

Ngày đăng: 27/03/2019, 10:11

w