Use Excel Pivot Table as a BI tool

Normally, we have created a table, view in database or cube in SSAS, user can use Excel as a BI tool to display data. Here we have an Actual, Budget and Forecast data cube in SSAS.


Open Excel, click “Data”->”From Other Sources”->”From Analysis Service” on Rabin menu, input SSAS server address, link to SSAS, select “PivotTable Report”, Excel will display cube dimensions and measures on the right panel.


Now, we can operate cube data in Excel now.

1. Columns Rows & Values

the first PivotTable Fields group is a measure group. Here “Fact Data” is our measure group. measure group fields only can be used in “Values”. For example, we want to our “Actual” data, drag “Actual” from field list to Values panel, Excel will display total actual data value on the left Excel cell like this:


Except the measure group, other fields are dimension group. For example, we have a BG group in the fields list, expand this group we can see three fields:


We can pick up our necessary fields and drag to “Columns “ panel or “Rows” panel. if we want display BG on left rows, drag BG to Rows panel, Excel will display every BG and Actual value on the left:


If you want to display BG on the top of every columns, just need drag “BG” from Rows panel to Columns panel. At the same time, left Excel region changed to BG column format:


If you don’t want display BG on Excel, you can drag the “BG” field from Columns panel to fields list or click “BG”, system will expand a menu, select “Remove Field”.


No, we want to see every year every BG actual value, we need drag BG to Rows panel, and find “Year Month” panel, drag “Year” to Columns panel, excel will display result table on the left:


We can see there is a “Month Name” field in the Year Month dimension group, can we display every year every month BG actual value? Yes, just drag the “Month Name” to columns panel, under “Year” field, excel will refresh the excel, display month under year row, at the same time ,we can collect/expand Year node:


Use the same operation, we can add Profit Center, SalesP and other fields to excel rows or columns.

2. Filter

There is a Filters panel on the right, it is used to define which fields are filter and don’t need display in Excel.

For example, we only want to display “Trading” actual data in the excel, we can find “Sales Type” and drag to Filters panel, excel will display filter control on the top left of the Excel and by default select “All”:


We just need “Trading” actual data, so select “Sales Type” equal “Trading”, we can see the Actual data table is refreshed:


We also can select multiple values on the filter control, just only need select “Select Multiple Items” checkbox.


Filters panel only used to filter the hidden fields, that means filters never display on the main excel table. If you want to filter some fields and also need display them, we can use label filters.

For example, we just need display 2013 and 2014 BG actual data, find the field in Columns panel or Rows panel. Year field is in columns panel, so click “Column Label”, excel will display a panel, remove all item select, just select 2013 and 2014 year:


If we want to filter month field, also click “Column Labels”, at the panel, switch field to “Month Name”, the below items are refreshed. We just need display the first quarter actual data, so select the first three month:


After all filter operation, excel will display 2013 2014 first quarter BG trading data:


3. Sort

Sort function is only used to rows or columns. If we want to FMBG every customer 2013 first quarter trading data, we need adjust our excel fields and filter, after adjusted, excel display like below:


By default, customer sort by name alphabet, but usually we need sort them by actual value, we can follow these operations:

Click “Row Labels”, on the menu panel, select “More Sort Options”, excel will popup a Sort window. select “Descending by:” “Actual”:


Now, excel will display customer by their actual value:


After sorted, we can use value filter to filter the customer list. If we just need top 20 customer, click “Row Labels”, on the popup panel, select “Value Filters”->”Top 10…”


Excel will open a Top 10 Filter window, input 20 and click OK.


Excel will only display 20 customers, and the grand total value is these 20 customers sum value.


The sort value is grand total value, if there are 2012 to 2014 first quarter trading value in main table, and we just need sort by 2014 trading value, how to do it?

First we need adjust our excel fields, display 3 year data on columns:


We can see our sort condition is 3 years total value. Now click “Row Labels”->”More Sort Options”, click “More Options”, system will open a More Sort Options window:


Select “Sort by Values in selected column”, and we just need sort by D column, so select any D column cell such as $D$7, and click OK. Excel will refresh and sort by D column values.


4. Format

By default, excel doesn’t display 1000 separator and show 1~2 decimal place. We need change the format of number to a friendly format.

on the right bottom of Excel, click “Actual”, Excel will display a menu, select “Value Field Settings”, Excel will open a new window:


Click “Number Format” button, Excel will open a new window, select your favorite format:


Click “OK”, Excel refresh the main table, changed all “Actual” data format.


Some times, we need use “K”(thousand) as a basic unit, we can use custom format. Also the same operations, at last step, select Custom form, and input: “#,##0.00,”.

Now all actual values use “K” unit.


If we want to use “M”(million) as a basic unit, use custom format string: “#,##0.00,,”.

5. Total&Subtotal

By default, Excel will display row total and column total, at each sub fields show subtotal value.

For example, we need display 2013-2014 first quarter every month every BG trading value, we need adjust our pivot table fields like this:


If we don’t want display every year subtotal value, we need find “Year” field on Column panel, click this field, select “Field Settings”, Excel will open a Field Settings window.

At the Subtotals & Filters tab, set Subtotals as “None”.


Now, every year subtotal value will not display on main table.


The “Grand Total” column and row also can hide. If we want to hide “H” column grand total, just need display “18” row grand total, click “DESIGN” menu, there is a “Grand Totals” item.

We just need sum every column actual value at the end of the table, so click “On for Columns Only”.

时间: 2024-12-28 07:32:36

Use Excel Pivot Table as a BI tool的相关文章

数据透视表控件Pivot Table & Charts有什么特点

问题描述 数据透视表控件Pivot Table & Charts有什么特点 最近在接触一款用于在线查看,分析和管理多维数据的控件,就是标题上的这个,个人感觉和Excel很类似,有谁知道的给我讲下它们的区别特点 解决方案 无非是呈现的外观不同,看你的需要了.具体你可以看看demo 解决方案二: Pivot Table & Charts可以对需要分析的数据(一般是数值型的)从多个维度(一般是文本型.例如分类.仓库.时间等)进行探查,Pivot Table & Charts可以根据设置对

Dynamic Pivot table wizard SQL Server

原文 http://www.gyurcit.hu/pivot.html Dynamic Pivot table wizard This stored procedure generate dynamic crosstable with multiple pivot columns by 4+1 parameters.     1. P_Row_Field Name of field that reperesent the spreadsheet's rows 2. P_Column_Field

javascript 导出数据到Excel(处理table中的元素)_javascript技巧

做法: 修改Input的outerHTML; 具体例子: 复制代码 代码如下: function resetInput() { var controls = document.getElementsByTagName('input'); for(var i=0; i<controls.length; i++){ if(controls[i].type=='text') { if(controls[i].value =="") { controls[i].outerHTML=&qu

Excel中的BI应用

BI终端用户都必须依赖Excel来保证BI数据的稳定性和安全性.BI管理者长时间以来都在美好憧憬着这一现状的改变,不过总 是事与愿违.Excel在BI流程中所占据的一席之地从未消失过,最终无谓的尝试反倒让BI团队更加适应了它. 美国 Forrester研究机构的分析师Boris Evelson说:"这场战役已经打了二十年,可最后还是我们输了."目前,BI管理者能做的只 有尽全力优化Excel在BI方面的性能.Evelson举了一个例子,他推荐将Excel集成到BI软件中,把数据导出到表

如何用Python执行常见的Excel和SQL任务

本教程的代码和数据可在 Github 资源库 中找到.有关如何使用 Github 的更多信息,请参阅本指南. 数据从业者有许多工具可用于分割数据.有些人使用 Excel,有些人使用SQL,有些人使用Python.对于某些任务,使用 Python 的优点是显而易见的.以更快的速度处理更大的数据集.使用基于 Python 构建的开源机器学习库.你可以轻松导入和导出不同格式的数据. 由于其多功能性,Python 可以成为任何数据分析师工具箱的重要组成部分.但是,这很难开始.大多数数据分析师可能熟悉 S

pivot-Pivot table不能format cells

问题描述 Pivot table不能format cells Pivot tableformat cells后没有效果,不能对number类型使用1000 separate.并且点击一列后,excel不能自动sum出结果

艾伟_转载:ASP.NET实现类似Excel的数据透视表

    代码:/Files/zhuqil/Pivot.zip     数据透视表提供的数据三维视图效果,在Microsoft Excel能创建数据透视表,但是,它并不会总是很方便使用Excel.您可能希望在Web应用程序中创建一个数据透视报表.创建一个简单的数据透视表可能是一件非常复杂的任务.所以,我打算不但为你提供一个非常有用的工具创建简单和高级的数据透视表,而且为你移除一些笼罩他们的神秘面纱.    目标是:我们想要有能力将datatable中的二维的数据转换成三维视图.    在大多数情况

关于Excel导入的问题记录

当Excel导入成为需要时,之前的导出Excel为html方式的方法就受阻了,于是,需要开始新的百度与google来解决问题. 前提为OLEDB+Excel. 根据需求,多数是对于表的数据的导入.于是产生这么一个需求过程: 1.准备一个空的标准Excel. 2.根据表名查询字段 3.动态生成字段表头 4.Copy空的标准Excel,循环表头生成新的标准Excel以二进制流导出. 5.用户再根据表头的提示添加数据再上传提交. (1步和4步为大体上为网上搜出来的想法) 过程遇到这么点问题: 问题1:

GridView导出生成Excel文件的问题,office2007/2010打不开 ????

问题描述 导出代码HttpContext.Current.Response.AppendHeader("Content-Disposition","attachment;filename=a.xls");HttpContext.Current.Response.Charset="UTF-8";HttpContext.Current.Response.ContentEncoding=System.Text.Encoding.UTF7;HttpCon