Download presentation
Presentation is loading. Please wait.
Published byLawrence O’Connor’ Modified over 6 years ago
1
Régis Baccaro regis@baccaro.com @regbac
Power View and the Cube Régis Baccaro @regbac
2
Sponsors
3
Introduction Régis Baccaro @regbac regis@baccaro.com
Founder and lead organizer of SQL Saturday Denmark Works for Rehfeld A/S Passionate about the community .Net developer, BI guy, SharePoint fellow and accidental DBA SQL Server MVP Farmer, runner, father and cook 10 år siden. Sharepoint Who uses sharepoint ? Developer ? Admin ?
4
The Recipe – The Cook You should be : You will learn
Familiar with Analysis Services Multidimensional Familiar with Power View You will learn How Cubes are exposed in Power View MD Enhancements related to Power View 4 | 11/18/201811/18/2018 | Power View and the Cube
5
Demos Agenda Architecture Measure groups Dimensions Calculated Members
Default Member Report filters Images Perspective & Translation Demos Power Views is about visualisations so what is the point if I don’t do a lot of demos ? 5 | 11/18/201811/18/2018 | Power View and the Cube
6
The big picture - Architecture
Power views isn’t really aware if it’s talking to MD or Tabular. As far as it knows it only speaks to BISM. Metadata is a bit diiferent. Exciting because it enables power view but also other applications that want to send DAX to MD models 6 | 11/18/201811/18/2018 | Power View and the Cube
7
The Recipe - Architecture
Third-party applications Reporting Services (Power View) Reporting Services (Power View) SharePoint Insights Excel PowerPivot Multi- dimensional Data model Tabular Business logic MDX DAX BI Semantic Model Queries MDX MDX/DAX MDX/DAX Previously… What is introduced is the ability to send dax queries to the MD model and the ability to get metadata using a discovery which enables power view to connect to a MD modelwithout knowing if it’s a MD or tabular model Made a lot of work to make sure you don’t have to change your MD model in order to make this work. All demos are built on Adventureworks which ships with SQL Server This is a feature deployed for people who already have MD models for years and want to use Power View on top of these existing models. They are a few things that you need to turn on so it will enable some new stuff in PV you otherwise won’t see. In the future may be DAX queries from Excel against MDs. Currently only works with Sharepoint 2010 or 2013 Power View in Excel! Data access ROLAP VertiPaq Direct Query MOLAP MOLAP Databases LOB Applications Files OData Feeds Cloud Services 7 | 11/18/201811/18/2018 | Power View and the Cube
8
The Recipe - ingredients
SharePoint 2010 or 2013 Enterprise edition Microsoft SQL Server 2012 SP1/SP2 or 2014 Analysis Services Multidimensional instance Reporting Services Add-in for Microsoft SharePoint Technologies PowerPivot for SharePoint Tip : How to install SharePoint without a domain account! 8 | 11/18/201811/18/2018 | Power View and the Cube
9
The Recipe – Preparation
Configuration of SharePoint Generate a New Key in Secure Store Service Application Minimum installation! It’s a jungle ! Usually AutoSPInstaller is a great help Secure Store is where unattended service account password will be 11/18/201811/18/2018 | Power View and the Cube
10
The Recipe – Preparation
Configuration of PowerPivot Click Start and then launch the PowerPivot Configuration Tool from the Microsoft SQL Server 2012, Configuration Tool group. In the PowerPivot Configuration Tool, click OK to configure or repair PowerPivot for SharePoint. The PowerPivot for SharePoint Configuration Tool queries the state of your SharePoint environment. It detects the existing farm and determines which of the SharePoint components required by PowerPivot for SharePoint are already installed. Review the steps identified by the configuration tool to configure or repair PowerPivot for SharePoint. Enter the following information on the default Parameters tab, replacing the arguments with the appropriate values for your environment: Default Account Username: Default Account Password Database Server Confirm Passphrase Click Create PowerPivot Service Application and on the Parameters tab, select the checkbox, Upgrade workbooks to enable data refresh. Click Create Unattended Account for Data Refresh and on the Parameters tab, enter the following information, replacing the arguments with values appropriate for your environment: Unattended Account User Name: Unattended Account Password: Click Validate and then verify that all of the hazard icons disappear and are replaced by information icons. Review each of the tasks with an information icon, but do not make any changes. After validation succeeds, click OK. Click Run and then click Yes to continue 11/18/201811/18/2018 | Power View and the Cube
11
The Recipe – Preparation
Can be scripted 11/18/201811/18/2018 | Power View and the Cube
12
The Recipe – Preparation
Configuration of Reporting Services Create a new RS application in SharePoint central admin Enable features on SharePoint 11/18/201811/18/2018 | Power View and the Cube
13
The Recipe – Preparation
Add the right content types to SharePoint library Demo it. Remember that they are on the data connection library!! 11/18/201811/18/2018 | Power View and the Cube
14
Putting it all together – Connecting to a cube
RSDS file You need to create a Reporting Services shared data source (RSDS file) with Data Source Type set to “Microsoft BI Semantic Model for Power View” and specify the connection string to your cube as the one shown below. Data Source=sp15\md;Initial Catalog=AdventureWorksDW2012Multidimensional-EE;Cube='Adventure Works‘ Go through the credentials possibilities… 11/18/201811/18/2018 | Power View and the Cube
15
Multidimensional – Tabular mapping
BISM – MD Object Tabular Metadata Cube Model Cube Dimension Table Attribute(Key(s),Name) Columns Measure Group Measure Measure without measure group Called ”Measures” within tables Measure group Dimension Relationship Relationship Perspective KPI User/Parent-Child Hierarchies Hierarchies Object mapping Cube becomes a model and dimensions are exposed as tables as well as measure groups. Any attributes are exposed as columns a bit more complex semantics with keys and names some will be hidden as part of the metadata. the Adventure Works sample cube’s objects (measure groups and cube dimensions) in SQL Server Data Tools and how they are shown in the Power View field list. The measure groups are exposed as tables with ∑ icon indicating they contain aggregating objects (measures). All the measure groups appear first in the Power View field list sorted alphabetically. Following the measure groups you will see the cube dimensions (with the table icon) also sorted alphabetically. 11/18/201811/18/2018 | Power View and the Cube
16
Measure and Measure groups
Demo 1 Show cube in visual studio Show data connections Start power view and expand internet sales Internet sales amount Show KPIs in visual studio and explain structure compared to PV (KPI are part of a particular tables so they are exposed under it) In tabular model you only have value, goal and status in MD also trend show it ! (Status + Trend). Hierarchies and KPI are in SP1 for Tabular. Recap : Measure groups exposed as tables, measures are shown under tables, KPIs are shown under their associated measures groups. 11/18/201811/18/2018 | Power View and the Cube
17
Measures as variants Variants are not strongly typed
Can have different data types Measures as variants Measures in multidimensional models are variants. This means the measures are not strongly typed and can have different data types. For example, in the image below, the Amount measure in the Financial Reporting table by default is Currency data type, but also has a string value “NA” for the sub-total of “Statistical Accounts”, which is String data type. Power View recognizes certain measures as variants and shows the correct values and formatting in the different visualizations. Demo if time
18
Dimensions, attributes and hierarchies
Dimensions tables Attributes columns within display folder The dimension attributes that have the AttributeHierarchyEnabled property set to false; for example: Birth Date attribute in Customer dimension, or AttributeHierarchyVisible property set to false will not appear in the Power View Field List. Multi-level hierarchies or user hierarchies; for example Customer Geography in the Customer dimension, are exposed as hierarchies in the Power View Field List. Hidden UnknownMembers of a dimension attribute are exposed in DAX Queries and in Power View. If you want to add the entire hierarchy you have multiple ways. Drag and drops individual columns into the field list. Other way check the lowest levels 11/18/201811/18/2018 | Power View and the Cube
19
Dimensions attribute types
Dimension attribute geography types in SSDT and Power View Field List Multidimensional models support associating dimension attributes with specific dimension attribute types. The image below shows the Geography dimension where the City, State-Province, Country and Postal Code dimension attributes have geography types associated with them. These are exposed in the tabular metadata. Power View recognizes the metadata enabling users to create map visualizations. Demo 11/18/201811/18/2018 | Power View and the Cube
20
Parent-Child Hierarchy
Exposed as hierarchy Multidimensional models support Parent-Child Hierarchies. The Parent-Child hierarchies are exposed as a hierarchy in the tabular metadata as you will see. Each level of the Parent-Child hierarchy is exposed as a column in the tabular metadata. The key attribute of the Parent-Child dimension is not exposed in the tabular metadata. Demo 3 – Parent-child hierarchy Employees – level 3,4,5 as a matrix to show total 11/18/201811/18/2018 | Power View and the Cube
21
Dimension Calculated members
2 common types : Children of ”All” with a single real member Calculated members on user hierarchies Constraints: Must be a single real member when the dimension has more than one attribute. Cannot be the key attribute of the dimension unless it is the only attribute. cannot be a parent-child attribute. Calculated members on attribute hierarchies is one of the most common type of calculated members modelers use. Multidimensional model exposes this type of calculated members as values of a column. There are a few additional options/constraints while exposing this type of calculated members as listed below: The calculated members of user hierarchies are not exposed in Power View. A Power View end-user will be able to connect to a cube containing calculated members on user hierarchies but they will not be able to see calculated members if they do not meet the constraints mentioned above. Power View report against a cube that contains time intelligence calculated members on a dimension attribute “Fiscal Date Calculations” in the Date dimension. 11/18/201811/18/2018 | Power View and the Cube
22
Non-Aggregatable Attributes
Don’t aggregate across hierarchies Demo In a multidimensional model, attributes of a dimension can have the IsAggregatable property set to false. This means the modeler has specified that client applications should not aggregate the data across hierarchies (attribute or multi-level) when they query the data. In Power View this dimension attribute is exposed as a column for which sub-totals are not available. Example of a non-aggregatable hierarchy: Accounts. The topmost level of the Accounts Parent-Child hierarchy is non-aggregatable while the other levels are aggregatable. Hence in a matrix visualization of the Accounts hierarchy (first two levels) you see sub-totals in Power View for Account Level 02 but not for the top most level, Account Level 01. Account level 01 – 02 + Amount 11/18/201811/18/2018 | Power View and the Cube
23
Default Members Exposed as default value or filter
Only applied when used on filters Demo Multidimensional models support specifying default members for dimension attributes. The default member is used by Analysis Services when aggregating data for a query. The default member of a dimension attribute is exposed as default value or filter for the corresponding column in the tabular metadata. When Power View queries the data via DAX you will see the default filter being applied. The CustomerCity column from the Adventure Works cube where the default member property of the dimension attribute City has been set to Seattle ([Customer].[City].&[Seattle]&[WA].). When you add a column to one of the Power View visualizations (table or matrix or chart) that contains a default filter then Power View adds all the default filters of the corresponding table and also show the default filter value in the filter pane. In the tabular metadata that powerview sees : Attributes are mapped to columns Default members exposed as default value of the column Default members applied to visuals as default filters Report demo3!! The point is that default members get applied all the time unless you state otherwise ! 11/18/201811/18/2018 | Power View and the Cube
24
Images Not specific to MD models However fun and powerful
We encourage to tweak your model to get the benefits. Graph of sales by product or subcategory demo 11/18/201811/18/2018 | Power View and the Cube
25
Perspective and locale
Specified in the Cube connection string Data Source=localost;Initial Catalog=AdventureWorksDW-MD;Cube='Direct Sales' Added as ”Locale identifier” Data Source=localost;Initial Catalog=AdventureWorksDW-MD;Cube='Adventure Works'; Locale Identifier=3084 Demo
26
Report pinned filters Tabular and MD models Change one = change all
Added or modified via the filter pane Added via ”rf” URL parameter EXAMPLE &rf=[Date].[Calendar Year] eq 'CY 2005' Comes from Microsoft dynamics A Power View report can contain multiple views. An additional feature included in SP1 (for both tabular and multidimensional models) is the ability to create filters that apply across all views in a report. By default, a view filter is unpinned and applies only to that view. Pinning a view filter applies it to all views; unpinning it removes it from other views. Rf parameter is very closed to Odata syntax…anyone recognizes it ? Only support for attribute eq value 11/18/201811/18/2018 | Power View and the Cube
27
Unsupported features Power View in Excel 2013 Actions Named sets
Cell level security Unsupported Actions and Named sets do not prevent users from connecting to and exploring multidimensional models using Power View. Security will flow through Multidimensional models support dimension and cell level security via Roles. A user connecting to a cube via Power View is authenticated and evaluated for appropriate permissions. When a user has dimension security applied then the respective dimension members will not be seen by the user in Power View. However if a user has a cell security permission defined where certain cells are restricted then that user cannot connect to the cube via Power View. 11/18/201811/18/2018 | Power View and the Cube
28
Conclusion Use metadata
29
</end> Questions ? Thank you!! Contact me: @regbac
11/18/201811/18/2018 | Power View and the Cube
30
Please give us feedback
Thank you!
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.