Showing posts with label Power View in Excel 2013. Show all posts
Showing posts with label Power View in Excel 2013. Show all posts

Thursday, 2 August 2012

What’s new in Power View in Excel 2013 and in SharePoint 2013

Power View in Excel 2013 and Power View in SharePoint 2013 both provide an interactive data exploration, visualization, and presentation experience for all skill levels. Pull your data together in tables, matrices, maps, and a variety of charts in an interactive view that brings your data to life. Many of the features now in Power View in Excel 2013 were in Power View in SharePoint 2010, and new features have been added to both.

Power View in Excel 2013: New features

Power View sheets can connect to different data models in one workbook

In Excel 2013, every workbook can contain an internal Data Model that you can modify in Excel, in PowerPivot, and even in a Power View sheet in Excel. You can base a Power View in Excel 2013 sheet on the Data Model in the same workbook or on an external data source – another workbook, or a tabular model deployed to a SQL Server 2012 Analysis Services (SSAS) instance. A single Excel workbook can contain multiple Power View sheets, and each of the sheets can be based on a different data model. A workbook can contain only one internal Data Model, but Power View sheets in a workbook can link either to that internal model or to an external data model.
  1. To base a Power View sheet on an external data model, insert a blank Excel worksheet in the workbook, and on the Data tab > Get External Data (by creating a connection or using an existing connection).
  • If you want to reuse a connection you already have in this workbook, click Existing Connections, select the connection you want to use, and click Open.
Note If you get external data while in the PowerPivot window, it is automatically added to the internal Data Model, and so it isn’t a separate data model.
  1. Provide the needed information in the Data Connection Wizard.
  2. In the last step, the Import Data dialog box, click Power View Report.
Excel opens a new Power View sheet with the external data model in the Field List.
Each Power View sheet has its own charts, tables, and other visualizations. You can copy and paste a chart or other visualization from one sheet to another, but only if both sheets are based on the same data model.

Modify the internal Data Model without leaving the Power View sheet

Now that you can create Power View sheets and an internal Data Model in an Excel 2013 workbook, if you base your Power View sheet on the internal Data Model, you can make some changes to the Data Model while you’re in the Power View sheet. For example:
  • From the Field List in Power View in Excel, you can create relationships between different tables in the workbook.
  • If the Data Model in Excel has calculated fields, you can create KPIs based on those fields, and then add them to your Power View report.
Power View in Excel Services and Excel Web App, and in Office 365

When you create Power View sheets in Excel, you can view and interact with them on-premises in Excel Services and in Office 365. You can only edit Power View sheets in Excel 2013 on a client computer.
On-premises, Power View isn’t supported on Excel Web App. In Office 2013, administrators can choose whether users view files with Excel Services or Excel Web App. If the administrator chooses to view workbooks with Excel Web App, you can’t view Power View sheets when viewing Excel workbooks in the browser.
In Office 365, you don’t view Power View sheets using Excel Services. Instead you view them with Excel Web App Data Center, part of SharePoint Online.

Power View in Excel 2013 and SharePoint 2013: New features

Pie charts

Pie charts are simple or sophisticated in Power View. You can make a pie chart that drills down when you double-click a slice, or a pie chart that shows sub-slices within the larger color slices. You can cross-filter a pie chart with another chart. Say you click a bar in a bar chart. The part of the pie chart that applies to that bar is highlighted, and the rest of the pie is grayed.


Examples of visualizations available in Power View


  1. Slicer filtering the report to breads
  2. Tile flow navigation for tiles, currently on croissant
  3. Card in a tile container, filtered to the current tile (croissant)
  4. Line chart in tile container showing quantities consumed and server, filtered to croissants January to December
  5. Multiples, filtered to breads and sorted in descending order by quantity served
  6. Column chart filtered to breads, showing quantities served and consumed
Maps

Maps in Power View use Bing map tiles, so you can zoom and pan as you would with any other Bing map. Locations and fields are dots on the map: The bigger the value, the bigger the dot. When you add a multi-value series, you get pie charts on the map.


Key performance indicators (KPIs)

You can add key performance indicators (KPIs) (key performance indicator (KPI): A quantifiable measure for gauging business objectives. The KPI gauges the performance of the value, defined by a base measure, against a target value, also defined by a measure or by an absolute value.) to your Power View report to show progress toward goals if the data model your Power View report is based on has them.


KPIs are based on calculated fields (calculated field: A field in a PivotTable report or PivotChart report that uses a formula you create. Calculated fields can perform calculations by using the contents of other fields in the PivotTable report or PivotChart report.). In Power View in Excel, you can actually create KPIs if the data model your Power View sheet is based on contains calculated fields. You create calculated fields and KPIs on the PowerPivot tab in Excel, or by managing the Data Model in the PowerPivot window. Then you can add the KPIs you create to your Power View report.

Hierarchies

If your data model has a hierarchy, you can use it in Power View. For example, the data model could have a hierarchy of Continent, Country/Region, State/Province, and City. In Power View you can add one field at a time, or you can add all the fields in the hierarchy at once.
If your data model doesn’t have a hierarchy, you can create one in Power View, too. Just adding multiple fields to the Rows or Columns box for a matrix creates a hierarchy for that matrix. Adding multiple fields to the Axis box of a chart creates a hierarchy for that chart.
You can put fields in any order in a hierarchy. It needn’t be a natural hierarchy like Category > Subcategory > Product. It could be Category > Year > Continent.
The advantage of having the hierarchy in a data model is that you can use it in every Power View report you build on that data model. You can only create a hierarchy in the Data Model in Excel by going to the PowerPivot window

Drill up/drill down

When you have a matrix with multiple fields in the rows or columns, you can set it to show levels, and that collapses the matrix to show only the top, or outermost, level. You double-click one value in that level to expand to show the values under that one in the hierarchy. To use the example in the Hierarchies section, if you set Power View to show levels, then you see only continent names in the matrix. Double-clicking a continent—say, Asia —shows the countries/regions in Asia, with an arrow to go back to continents. Double-clicking a country—say, India—shows the states/provinces of India, again with an arrow to go back up to countries/regions.

Charts work the same way. If you convert a matrix to a chart, you end up with a chart with multiple fields in the Axis box. Going back to the Continents example, if you double-click the Europe bar in a Continents bar chart,

You see the bars for the countries/regions in Europe only, with an arrow to take you back up.
If you open the Filter pane, you see that drilling down on either a chart or matrix is acting as a filter on that object. It is filtering the values in the object as you drill down, and removing the filter as you drill back up. It is only filtering that object, though. It isn’t filtering anything else on the sheet.

Report styles, themes, and text resizing


Power View has new report themes. When you change the theme, the new theme applies to all the Power View views in the report or sheets in the workbook.
Power View for SharePoint Server 2010 featured eight basic accent themes that controlled chart colors.
Power View in Excel 2013 and in SharePoint Server 2013 now features 39 additional themes with more varied chart palettes as well as fonts and background colors.
You can also change the text size for all of your report elements.


Backgrounds and background images

You can set the background of each view from white to black, with a number of gradient options. On darker backgrounds the text changes from black to white so it stands out better.
You can also add background images to each view. Browse to an image file on your hard disk or elsewhere and apply it as the background image for a view. You can then set it to fit, stretch, tile, or be centered on the view, and set its transparency from 0% (invisible) to 100% (not at all transparent). The report stores a copy of the image.
You can combine background and image for a variety of effects.

Hyperlinks

Add a hyperlink to a text box in a view and link it to any Internet or email address. In Power View in Excel and in edit mode for a Power View report in SharePoint, you follow the hyperlink by clicking it while holding down the Ctrl key. In reading and full-screen modes in Power View in SharePoint, you just click the link.

Printing

You can print Power View views in SharePoint and in Excel. In both cases, what you print is what you see on the view when you send it to the printer. If the view contains a region with a scroll bar, the printed page contains the part of the region that is visible on the screen. If a view contains a region with tiles, then whichever tile is selected is the one that prints.

Support for right-to-left languages

Power View in SharePoint now has options to set the default direction for new views and the direction for a specific existing view. Unless you change it, the direction is the same as the direction for SharePoint.
Power View in Excel takes the setting for default direction from Excel. You can change those settings. In Excel, go to File > Options > Advanced and look for Default direction. You can also change the direction for a specific sheet in the same dialog box, without changing the default direction.

Power View changes how it handles integers

By default, Power View for SharePoint 2010 aggregated decimal numbers, but treated integers as categories rather than aggregating them. A data model designer either in PowerPivot or in SQL Server Data Tools could set defaults for integers, but this was the default behavior.
In Power View in Excel 2013 and in SharePoint 2013, Power View aggregates both decimal numbers and integers by default. A data model designer can still specify other default behavior, but that is the default. To change your data into a chart, at least one data column needs to be aggregated.

Power View backward- and forward-compatibility

Power View RDLX files in SharePoint are backward compatible, meaning that if you saved a Power View file in SharePoint 2010 with the SQL Server 2012 Reporting Services add-in, you can open and save it in Power View in SharePoint 2013 with the SQL Services 2012 Service Pack 1 (SP 1) Reporting Services add-in. The reverse isn’t true: You can’t open a newer-version Power View RDLX file in older versions of SharePoint and SQL Server Reporting Services.

Power View and data models

Power View and SQL Server Analysis Services data models are forward- and backward-compatible with each other:
You can base a Power View file in SharePoint 2010 with the SQL Server 2012 Reporting Services add-in on an Excel 2013 data model or on a SQL Server 2012 SP 1 Analysis Services tabular model, and vice versa. However, some features such as hierarchies and KPIs are only available if you base a Power View report in SharePoint 2013 with the SQL Server 2012 SP 1 Reporting Services add-in on an Excel 2013 data model or on a SQL Server 2012 SP 1 Analysis Services tabular model.

Power View and Excel Services

Power View and Excel Services are backward- but not forward- compatible:
  • SharePoint 2013 is backward-compatible with Excel 2010 PowerPivot workbooks. If you upload an Excel 2010 PowerPivot workbook to SP15, you can open it in Excel Services and also base a Power View report on it.
  • SharePoint 2010 is not forward-compatible with Excel 2013 workbook Data Models. If you upload an Excel 2013 workbook with a Data Model to SharePoint 2010, it may not work properly in Excel Services and you can’t base a Power View report on it.

Bing Maps in Microsoft Excel 2013 using Power View

There has been a lot of buzz in the BI community since yesterday, and the reason is none other than the public preview of Office 2013 (Excel 2013 in particular). There’s been a lot of articles written on the new features available and the integration of PowerPivot and Power View has really got everyone talking about.

Power View in Excel 2013 has the ability to create maps from your data and uses Bing maps for the same. Unlike the maps in SSRS, here you do have the ability to zoom and pan as needed. Also, Bing maps automatically detects the location and hence you don’t need to provide a shapefile or even the latitude/longitude information. In this blog, I will take you through the steps to create a map report in Power View.

Creating a basic map report

1) Open up a new workbook Excel 2013 and then enter the following data in the cells


Country

City

Sales
USA Charlotte, North Carolina 100
USA Madison, Wisconsin 50
USA Jacksonville, Florida 140
USA Rochester, New York 40
USA Philadelphia, Pennsylvania 120
2) Select the entire data, go to the Insert tab and click on Power View icon

You should get a loading screen while it takes a couple of seconds to open Power View

3) Now click on the Country field, and then you should be able to see the Map icon appear on the menu above. Click on the Map icon as shown in the image below

You should get a warning to enable content as the data needs to be sent to Bing to get geocoded. Click on enable content to proceed. Note that you would need an internet connection for implementing this.

4) Now you can pretty much rearrange your fields by dragging them into the areas below. I have dragged Sales into the Size, City into Locations as well as Color. So I get a map report below which shows the cities as bubbles with corresponding colors and size as the amount of sales

5) You can also play around with other properties like Title, Legend, Data Labels and Map Background. They are present when you click on the Layout tab.

It is interesting to note that the data used for creating the Power View report gets imported into PowerPivot by default. This is because Power View can only communicate through DAX currently, and hence needs a tabular model behind it. The PowerPivot model can be viewed by clicking on the PowerPivot tab and then selecting the manage tab

Since there is no way to add additional data into this model without deleting and recreating the table, it would be a good practice to create the PowerPivot model first from linked tables, and then using the PowerPivot fields to create the Power View report. This way, we will be able to keep on adding data as long as there is a link between the table and PowerPivot. I will be showing you how to do this in the next part

Creating a drill down in map report

1) Select the same set of data in excel, go to the PowerPivot tab and select the Add to Data Model icon as shown below.

Note that you can still create Power View reports directly, but we will be using this technique for the reasons mentioned above earlier.
2) Select the home tab, then click on Pivot table option and select Power View to create Power View report

It is recommended to set the reporting properties of the Country and City field, so that Power View can recognize them as geographical entities, as shown in the image below

3) Now you should be able to see Power View (in case you don’t, you can click on a blank cell, go to the Insert tab and click on Power View icon). Notice that the Country and City fields have a map icon

4) Now click on the Country field, and then you should be able to see the Map icon appear on the menu above. Click on the Map and then drag both the country and city fields within locations. You can also put the Sales measure in the Size area. Now you should have a map report which drills down from the Country level to the city
If you double click on the blue dot in the center (which is USA), you will get the drill down report by cities. Notice that the title has automatically changed from Sales by Country to Sales by City. You can also click on the up arrow (highlighted in the image below) to return to the parent report
You can also create hierarchies in your PowerPivot model, and that can be directly added dragged and dropped to the Locations area. This will ensure that you don’t have to drag and drop each field individually and the drill down would be present across the entire hierarchy.
You can also see the benefit of adding the linked table to the PowerPivot model instead of using a range. Now if I have to add data, I can just go to the excel sheet and append the rows that I want as shown below

Now, all I need to do is to go to my Power View sheet and refresh the report. You can see that the new data is already included in the report

Creating Pie charts in map report

1) Use the previous report, and then add the city to the Color area. Now you can see that there is a pie chart by cities at a country level

2) You can hover the mouse on the pie charts, and the pie chart will expand and show the tooltips as shown below
You can also use the horizontal / vertical multiples location areas to split it by the selected field as shown below
Similarly, you can use the Tile By option also (however, this feature is not available if you use the multiples option)
Another best practice is to concatenate your city names with state/country info also (as I have done in all the examples) as there might be duplicate city names and doing this will help Bing in geocoding it better. You can also do this operation as a calculated column in PowerPivot, if you don’t want the city names to be displayed with their country/region info appended