Deep Dive into PowerPivot in Office and SharePoint Diego Oppenheimer, Microsoft Kay Unkroth, Microsoft April 10-12, Chicago, IL Please silence cell phones April 10-12, Chicago, IL Goal Deep dive into Excel Services and PowerPivot for based on a sample 4 Demo XLTweet April 10-12, Chicago, IL Thanks to author Aaron Meyers for permissions to reuse his original code. Solution Architecture Overview Client Front-End Service Apps Analysi s Service s SPClient Browser PPS Web Service Power View Impor t Now Search Terms RS add-in Excel client PowerPivot Web Service Web Parts Data Refresh Timer Job MSOLAP SSPM PPS Service App RS Service App PowerPivot System Service WorkItem DataImport TimerJob SPClien t XLTweet.xlsx Excel Calculation Services (ECS) ADOMD.NET EWA Data Model SPClient XML/A Client DataImport TimerJob Status List Search Terms List Tone Dictionary List SharePoint Content Database SharePoint Work Item Queue Twitter Data Import during Model Processing PPivot App Database (WorkQ Table) Twitter Twitter Import DB 7 What we needed to get started Client Front-End Service Apps SPClient EWA Browser MSOLAP Power View RS add-in Excel client RS Service App PowerPivot Web Service Data Refresh Timer Job PowerPivot System Service SPClien t SSPM ADOMD.NE T XLTweet.xlsx Excel Calculation Services (ECS) Analysi s Service s Data Model SPClient XML/A Client PPivot App Database (WorkQ Table) 8 Our demo lab in Windows Azure 9 What we built Client Front-End Service Apps Analysi s Service s SPClient Xlviewer.aspx EWA Browser RS add-in Search Terms RS Service App Excel client PowerPivot Web Service Web Parts Data Refresh Timer Job PowerPivot System Service WorkItem DataImport TimerJob SPClien t SSPM Power View Impor t Now MSOLAP ADOMD.NET XLTweet.xlsx Excel Calculation Services (ECS) Data Model SPClient XML/A Client DataImport TimerJob Status List Search Terms List Tone Dictionary List SharePoint Content Database SharePoint Work Item Queue Twitter Data Import during Model Processing PPivot App Database (WorkQ Table) Twitter Twitter Import DB 10 What key features our solution uses Browser Interactivity and Web Parts Office Apps Workbooks as a Data Source Data Feed Support (List Import) 11 Workbooks as a Data Source Client Front-End Service Apps SPClient EWA Browser MSOLAP Power View RS add-in Excel client RS Service App PowerPivot Web Service Data Refresh Timer Job PowerPivot System Service SPClien t SSPM ADOMD.NE T XLTweet.xlsx Excel Calculation Services (ECS) Analysi s Service s Data Model SPClient XML/A Client 12 Demo Accessing a Workbook as a DataSource April 10-12, Chicago, IL Scheduled Data Refresh Twitter SharePoint Timer Service PowerPivot Data Refresh Timer Job Analysis Services Engine XLSX SharePoint Content Database PowerPivot App Database (Work Queue and Refresh History) SharePoint Configuration Database RDBMS Server 14 Demo Running a Scheduled Data Refresh on Demand April 10-12, Chicago, IL Excel Services SOAP API for Refresh HttpContext.Current = null; LogStatus(currentSite, "Performing PowerPivot Workbook Refresh", "Refresh Direct"); Status[] status; ExcelService ecs = new ExcelService(this.workbookPath); string sessionId = ecs.OpenWorkbookEx(this.workbookPath, "en-US", "en-US", true, out status); CheckExcelServicesReturnValue(status); WorkbookModelInfo modelInfo = ecs.EnsureWorkbookModel(sessionId, out status); CheckExcelServicesReturnValue(status); if (modelInfo.Version == 15) { string[] workbookConnections = ecs.GetWorkbookConnections(sessionId, out status); CheckExcelServicesReturnValue(status); if (workbookConnections != null && workbookConnections.Length > 0) { ecs.RefreshEx(sessionId, workbookConnections[workbookConnections.Length - 1], null, out status); CheckExcelServicesReturnValue(status); ecs.SaveWorkbook(sessionId, out status); CheckExcelServicesReturnValue(status); } } ecs.CloseWorkbook(sessionId, out status); CheckExcelServicesReturnValue(status); Demo Building the workbook April 10-12, Chicago, IL 18 List Office App Win a Microsoft Surface Pro! Complete an online SESSION EVALUATION to be entered into the draw. Draw closes April 12, 11:59pm CT Winners will be announced on the PASS BA Conference website and on Twitter. Go to passbaconference.com/evals or follow the QR code link displayed on session signage throughout the conference venue. Your feedback is important and valuable. All feedback will be used to improve and select sessions for future events. 20 Thank you! Questions and Answers? Diamond Sponsor Platinum Sponsor diego@Microsoft.com Twitter: @doppenhe kayu@Microsoft.com April 10-12, Chicago, IL