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”.

Use Excel Pivot Table as a BI tool的更多相关文章
- EXCEL Pivot table manipulate
Add filter For the Demo time,I would like to filter out the products which not in Red and Black colo ...
- Open xml 操作Excel 透视表(Pivot table)-- 实现Excel多语言报表
我的一个ERP项目中,客户希望使用Excel Pivot table 做分析报表. ERP 从数据库中读出数据,导出到Excel中的数据源表(统一命名为Data),刷新Pivot table! 客户还 ...
- Dynamic Pivot table wizard SQL Server
原文 http://www.gyurcit.hu/pivot.html Dynamic Pivot table wizard This stored procedure generate dynami ...
- Pivot Table系列之展开/折叠用法 (Expand/Collapse)
1.遇到的问题: PivotTable中本来已经展开的维度的Hierarchy(层次结构),在切换切片器的数据集时,层次结构就折叠在一起了:没有按照之前的方式展开显示. 2.在做成PivotTable ...
- 转 Refresh Excel Pivot Tables Automatically Using SSIS Script Task
Refresh Excel Pivot Tables Automatically Using SSIS Script Task https://www.mssqltips.com/sqlservert ...
- Pandas 基础(10) - 用 Pivot table 做格式转换
Pivot allows you to transform or reshape data.Pivot 可以帮助我们改变数据的格式, 下面两个例子可以作为参考: 下面来看下具体实现, 首先引入一个 c ...
- ArcGIS自定义脚本-通过txt/excel/dbf/table生成多边形要素类
ArcGIS自定义脚本-通过txt/excel/dbf/table生成多边形要素类 联系方式:谢老师,135-4855-4328,xiexiaokui#qq.com 目的:读取文本文件,常见多边形要素 ...
- html table表格导出excel的方法 html5 table导出Excel HTML用JS导出Excel的五种方法 html中table导出Excel 前端开发 将table内容导出到excel HTML table导出到Excel中的解决办法 js实现table导出Excel,保留table样式
先上代码 <script type="text/javascript" language="javascript"> var idTmr; ...
- pandas 学习 —— pivot table
0. DataFrame 的 index.columns.values >> df = pd.DataFrame(np.arange(6).reshape(3, 2), index=['o ...
随机推荐
- java servlet手机app访问接口(三)高德地图云存储及检索
这篇关于高德地图的随笔内容会多一点, 一.业务说明 对应APP业务中的成员有两类,一是服务人员,二是被服务人员, 主要实现功能, 对APP中的服务人员位置进行时时定位, 然后通过被服务人员登 ...
- JVM堆和栈的区别
物理地址 堆的物理地址分配对对象是不连续的.因此性能慢些.在GC的时候也要考虑到不连续的分配,所以有各种算法.比如,标记-消除,复制,标记-压缩,分代(即新生代使用复制算法,老年代使用标记--压缩) ...
- php取默认值以及类的继承
(1)对于php的默认值的使用和C++有点类似,都是在函数的输入中填写默认值,以下是php方法中对于默认值的应用: <?phpfunction makecoffee($types = array ...
- Android异步回调中的UI同步性问题
Android程序编码过程中,回调无处不在.从最常见的Activity生命周期回调开始,到BroadcastReceiver.Service以及Sqlite等.Activity.BroadcastRe ...
- SQL Server 跨库同步数据
最近有个需求是要跨库进行数据同步,两个数据库分布在两台物理计算机上,自动定期同步可以通过SQL Server代理作业来实现,但是前提是需要编写一个存储过程来实现同步逻辑处理.这里的存储过程用的不是op ...
- PHP插入header('content-type:text/html;charset="utf-8')和error_reporting()
1.header PHP文件插入header("Content-type: text/html; charset=utf-8");相当于页面里面的<meta http-equ ...
- Web安全之CSRF攻击
CSRF是什么? CSRF(Cross Site Request Forgery),中文是跨站点请求伪造.CSRF攻击者在用户已经登录目标网站之后,诱使用户访问一个攻击页面,利用目标网站对用户的信任, ...
- Flex Viewer(三)——Config的原理
一.概述 在上文<深入浅出Flex Viewer(二)——体系结构>中,笔者详细介绍了到Flex Viewer框架,使得读者能够对该框架源代码的关键目录和文件结构和这些文件中所包含或涉及到 ...
- ABAP 一个隐藏 selection-screen block的实例
以下是一个演示如何通过 selection-screen 中的pushbutton来动态改变屏幕上的字段的显示状态的(即显示或者隐藏). 注意:显示 通过本示例可知selection-scr ...
- ae_将面积小于1500的Feature同附近Feature进行合并
private void 合并1500图斑ToolStripMenuItem_Click(object sender, EventArgs e) { /* *将图层中面积小于1500的图斑与之相同BS ...