SQL Server & Power BI Geographical and Temporal Predictions Dejan Sarka Sponsors Gold Sponsors: Bronze Sponsors: Swag Sponsors:
Speaker Bio Dejan Sarka (dsarka@solidq.com) 30 years of experience SQL Server MVP, MCT, 13 books 7+ courses Focus: Data modeling Data mining Data quality Agenda Exploring Geographic and Temporal Data SSRS and Power View Introducing Power Map Optimizing the Data Model Visualizing Geospatial and Temporal Data Adding Forecasts
Exploring Geographic and Temporal Data Business analysts frequently request comparing sales in different regions and over time Most of the international statistical information includes statistics over countries or over time Showing such data on a map might be much more informational than showing it in a tabular format Microsoft BI suite includes several tools SQL Server Reporting Services (SSRS) Power View Power Map SSRS Map Data Region In a SSRS report, you can add: A map that displays locations only A bubble map where the bubble size or the bubble color depends on some analytical aggregated data A marker map where you can use a marker style based on some analytical data A line map to display routes between points on a map Map sources Map gallery ESRI shapefile SQL Server spatial data stored in a database Bing maps
SSRS Pros and Cons (1) You are limited to 2-D maps Bing maps and ESRI shapefiles The Map gallery already includes USA maps You can embed maps in your report Can work in offline mode You can create a very complex layout and design every property of each part of the report in details SSRS reports do not include time-lapsed views Can use a multi-panel of small, similar maps, one map for each time period trellis chart SSRS Pros and Cons (2) You can export the report to various formats Developing a SSRS report might need a lot of effort and time SSRS reports are typically authored by BI developers and not by end users If you want to create a trellis report, you have to do it manually, by adding a chart inside a matrix You can use data from nearly any source You can use SSRS reports in native and SharePoint integrated mode
Introducing Power View A simplified and streamlined environment for creating reports in a browser or Excel A tool for creating presentation-ready, dynamic, interactive data visualizations based on tabular models Not all model features supported (KPIs) No query language knowledge required Power View generates queries against a model Live data access provides meaningful context immediately No distinction between design and run modes Power View Pros and Cons (1) You can use Bing maps only No offline mode You are limited to 2-D maps To view changes in data over time, you can use scatter and bubble charts, and add a time dimension to them with a play axis You cannot add the play axis to the map report, meaning you can t show data over geography and time at the same time You can use trellis charts supported out of the box to add a static time dimension to maps
Power View Pros and Cons (2) There are two versions of Power View: Power View in Excel and Power View in SharePoint You can only export to PowerPoint from Power View in SharePoint Export from Power View in Excel is not available. You cannot export reports to other formats Power View is extremely simple to use and is thus very suitable for end users You can use data from the Power Pivot, SSAS Tabular, or SSAS Multidimensional data model Introducing Power Map Power Map is an add-in for Excel you can use to plot geographic data on a 3-D globe or custom map and use animations to explore temporal data visually With Power Map, you can: Map data: Plot more than a million rows of data visually on Bing 3-D or flattened (2-D) maps Discover insights: Discover new patterns inside your dataset by analyzing your data in geographic space and by visually checking changes over time Create and share stories: Capture screenshots and build video tours and share them to a broad audience
Power Map Pros and Cons (1) 3-D maps are supported and are actually the default presentation for geographic data You can use Bing maps only You can t create or view the geographic report in offline mode Time-lapsed animations are fully supported You can export screenshots, or even create a MP4 video files from your Power Map tours You cannot export reports to other formats Power Map Pros and Cons (2) Trellis charts are not supported Power Map is simple to use and thus suitable for end users You can use data from Power Pivot data model or Excel worksheets only There is only Excel version of Power Map
Power Map Tours, Scenes and Layers The basic building block of a Power Map visualization is a tour You can create multiple tours in a single workbook Tours can be static or dynamic You can create a MP4 video from a single tour Each tour has one or more scenes You can use multiple scenes that play sequentially to show different aspects of this data Each scene can have one or more layers Besides analytical data, show other data related to the geographic locations you are showing Power Map in Office 365 Filtering options List filter: This filter allows you to select or exclude individual categories Range filter: With this filter, you can filter a numerical field between the minimum and maximum values, including the minimal and maximal value Advanced filter: For this filter, you can use predicate statements to filter your data Filters operate on the layer level In Power Map for Office 365, you can also use custom maps
Introducing Power Pivot A free add-in that enables a single-user in-memory SSAS tabular instance in Excel Download for Excel 2010 Built into Excel 2013 (must enable it) PowerPivot for SharePoint install SQL Server Analysis Services (SSAS) Tabula in SharePoint integrated mode Can create Business Intelligence Semantic Models (BISMs) in PowerPivot Supports large datasets Multiple sources, can enrich data with DAX Optimizing the Data Model Geographic formats and levels supported by Power Map: Latitude / longitude (two decimal columns in a table) Street / Address, City / County, State / Province, Zip Code / Postal Code, Country / Region Matching geographic data to locations ambiguity More data less ambiguity For time-lapsed animations, you need to have a column of the date data type column in a Power Pivot data model table Enrich the data model with Power Query
Introducing Power Query Personal ETL tool that enables: Find and import data from external sources Search public data Combine and shape data from multiple sources Filter, sort, and group data Add data to a workbook data model Save queries in a workbook for reuse Share queries (Office 365 only) Power Query Formula Language (aka M) Functional language for data combining, cleansing and more Deploying Power Map Tours The simplest way to share a Power Map tour is to share the Excel workbook that contains it You can capture one or more screens when you edit a Power Map visualization Use the Capture Screen button in the Power Map editor ribbon You can also export a Power Map tour as a video Add a soundtrack from an audio file to your video You have to create the audio file separately; you can t create audio files from Power Map.
Adding Forecasts to the Data Model Send DMX queries to SSAS installed in the multidimensional and data mining mode Query Time Series model Union DMX result sets with historical data sets Power Query Transact-SQL Add a flag denoting whether the data is historical or forecasted Create tours and reports Sponsors Gold Sponsors: Bronze Sponsors: Swag Sponsors: