Overview
After completing this lesson and re-deploying the model to a Analysis Services instance integrated with SharePoint and Reporting Services, you can create a data source, specify the data connection information, launch Power View, and design reports against the model.
This lesson does not describe how to create and use Power View reports. This lesson is meant to provide tabular model authors an introduction to those properties and settings that affect how model data will appear in Power View. To learn more about creating Power View reports, see Power View Overview.
In order to complete this particular supplemental lesson, you must have the following:
When authoring a tabular model, there are certain properties that you can set on individual columns and tables to enhance the end-user reporting experience in Power View. In addition, you can create additional model data to support data visualization and other features specific to the reporting client. For the sample Adventure Works Internet Sales Model, here are some of the changes you will make:
Because there is already a Product Category calculated column and Product Subcategory calculated column in the Product table, it is not necessary to have the Product Category and Product Subcategory tables visible to client applications.
In the model designer, right-click on the Product Category table (tab), and then click Hide from Client Tools.
Right-click on the Product Subcategory table (tab), and then click Hide from Client Tools.
Sometimes it may be necessary to create new data in your model by using DAX formulas. In this task, you will add two new calculated columns to the Date table. These new columns will provide date fields in a format convenient for use in charts.
In the Date table, scroll to the far right, and then click on Add Column.
Add two new calculated columns using the following formulas in the formula bar:
Year Quarter
=[Calendar Year] & " Q" & [Calendar Quarter]
Year Month
=[Calendar Year] & FORMAT([Month],"#00")
The Default Field Set is a predefined list of columns and measures for a table that are automatically added to the Power View report canvas when the table is clicked on in the report field list. Essentially, you can specify the default columns, measures, and field ordering users will want to see when this table is visualized in Power View reports. For the Internet Sales model, you will define a default field set and order for the Customer, Geography, and Product tables. Included are only those most common columns that users will want to see when analyzing Adventure Works Internet Sales data by using Power View reports.
Default Field Set dialog box
For detailed information about Default Field Set, see Configure Default Field Set for Power View Reports (SSAS Tabular) in SQL Server Books Online.
In the model designer, click the Customer table (tab).
In the Properties window, under Reporting Properties, in the Default Field Set property, click Click to edit to open the Default Field Set dialog box.
In the Default Field Set dialog box, in the Fields in the table list box, press Ctrl, and select the following fields, and then click Add.
Birth Date, Customer Alternate Id, First Name, Last Name.
In the Default fields, in order window, use the Move Up and Move Down buttons to put the following order:
Customer Alternate Id
First Name
Last Name
Birth Date.
Click Ok to close the Default Field Set dialog box for the Customer table.
Perform these same steps for the Geography table, selecting the following fields and putting them in this order.
City, State Province Code, State Region Code.
Finally, perform these same steps for the Product table, selecting the following fields and putting them in this order.
Product Alternate Id, Product Name.
By using Table Behavior properties, you can change the default behavior for different visualization types and grouping behavior for tables used in Power View reports. This allows better default placement of identifying information such as names, images, or titles in tile, card, and chart layouts.
Table Behavior dialog box
For detailed information about Table Behavior properties, see Configure Table Behavior Properties for Power View Reports (SSAS Tabular) in SQL Server Books Online.
In the Properties window, in the Table Behavior property, click Click to edit, to open the Table Behavior dialog box.
In the Table Behavior dialog box, in the Row Identifier dropdown list box, select the Customer Id column.
In the Keep Unique Rows list box, select First Name and Last Name.
This property setting specifies these columns provide values that should be treated as unique even if they are duplicates, for example, when two or more employees share the same name.
In the Default Label dropdown list box, select the Last Name column.
This property setting specifies this column provides a display name to represent row data.
Repeat these steps for the Geography table, selecting the Geography Id column as the Row Identifier, and the City column in the Keep Unique Rows list box. You do not need to set a Default Label for this table.
Repeat these steps, for the Product table, selecting the Product Id column as the Row Identifier, and the Product Name column in the Keep Unique Rows list box. For Default Label, select Product Alternate Id.
There are a number of basic column properties and specific reporting properties on columns you can set to improve the model reporting experience. For example, it may not be necessary for users to see every column in every table. Just as you hid the Product Category and Product Subcategory tables earlier, by using a column’s Hidden property, you can hide particular columns from a table that is otherwise shown. Other properties, such as Data Format and Sort by Column, can also affect how column data can appear in reports. You will set some of those on particular columns now. Other columns require no action, and are not shown below.
You will only set a few different column properties here, but there are many others. For more detailed information about column reporting properties, see Column Properties (SSAS Tabular) in SQL Server Books Online.
Click on the Customer Id column to display the column properties in the Properties window.
In the Properties window, set the Hidden property to True. The Customer Id column then becomes greyed out in the model designer.
Repeat these steps, setting the following column and reporting properties for each table specified. Leave all other properties at their default settings.
Customer
Geography Id
Hidden
True
Birth Date
Data Format
Short Date
Date
Day Number of Week
Day Name
Sort By Column
Day of Week
Day of Month
Day of Year
Month Name
Month
Month Calendar
Fiscal Quarter
Fiscal Year
Fiscal Semester
Geography
Sales Territory Id
Product
Product Id
Product Alternate Id
Default Label
Product Subcategory Id
Product Start Date
Product End Date
Large Photo
Internet Sales
Customer Id
Promotion Id
Currency Id
Order Quantity
Data Type
Decimal Places
Decimal Number
0
Order Date
Due Date
Ship Date
Because you have changed the model, you must re-deploy it. You will essentially repeat the tasks performed in [[Lesson 14: Deploy]].
In SQL Server Data Tools, click the Build menu, and then click Deploy Adventure Works Internet Sales Model.
The Deploy dialog box appears and displays the deployment status of the metadata as well as each table included in the model.
You can now use Power View to visualize data from the model. Ensure the Analysis Services and Reporting Services accounts on the SharePoint site have read permissions to the Analysis Services instance where you deployed your model.
To create a Reporting Services report data source that points to your model, see Table Model Connection Type (SSRS).
Fernando Lugão Veltem edited Revision 12. Comment: added toc
Owen Duncan [MSFT] edited Revision 5. Comment: Updated for SQL Server 2012 RC0.
Ed Price - MSFT edited Revision 4. Comment: Use "Community Resources" for external links.
Ed Price - MSFT edited Revision 2. Comment: Tags and link in first sentence.
Can not find most properties mentioned above in the properties list?
This lesson has now been updated to reflect the latest user interface changes now avaialble in the RTM version of the tabular model designer in SQL Server Data Tools.