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.

image

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.

image

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:

image

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:

image

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:

image

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:

image

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

image

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:

image

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:

image

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

image

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

image

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

image

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:

image

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:

image

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

image

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:

image

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

image

Now, excel will display customer by their actual value:

image

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

image

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

image

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

image

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:

image

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:

image

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.

image

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:

image

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

image

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

image

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.

image

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:

image

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

image

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

image

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

image
目录
相关文章
|
人工智能 JavaScript 算法
js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)
js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)
137 1
|
JSON 前端开发 JavaScript
Bootstrap Table表格分页的使用及分页数据(Excel)导出
Bootstrap Table表格分页的使用及分页数据(Excel)导出
104 0
表格(table)数据导出成Excel
表格(table)数据导出成Excel
76 0
|
JavaScript 前端开发
html table 如何导出为excel表格案例分享
html table 如何导出为excel表格案例分享
html table 如何导出为excel表格案例分享
|
人工智能 前端开发 JavaScript
js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)
由于数据非常的乱,php的方法肯定是行不通了,于是我打算 用前端的方法将table表中的数据下载下来。于是乎 ,我打印看了下源代码,发现多了很多tr标签。做好了之后,可以正常使用,将数据库的信息筛选出来。,其他网上的我的没有成功,这个可以解决。但是下载下来的文件,出现空格。可以参考这个文件,很有用。对方加了一个功能下载,将其替换掉 完美解决。......
120 0
js将table生成excel文件并去除表格中的多余tr(js去除表格中空的tr标签)
|
JavaScript
VUE element-ui 之table表格导出Excel(自定义表头+自定义导出字段内容)
VUE element-ui 之table表格导出Excel(自定义表头+自定义导出字段内容)
1378 0
|
JavaScript 前端开发
VUE element-ui 之table表格导出Excel功能封装(纯前端实现)
VUE element-ui 之table表格导出Excel功能封装(纯前端实现)
497 0
|
PHP
php导出excel,使用table,如何让首位是0的纯数字字符串保留首位的0
php导出excel,使用table,如何让首位是0的纯数字字符串保留首位的0
292 0
php导出excel,使用table,如何让首位是0的纯数字字符串保留首位的0
|
数据可视化 数据挖掘 BI
【聚能聊有奖话题】数据分析神器 Quick BI推出2.0版本,你还会用excel来处理数据报表吗?
云栖大会北京峰会19日下午TI的Alibaba Cloud Workshop上,阿里云的产品专家米砂向大家做了数据分析:构建可视化报表服务的演讲:如何快速搭建互联网在线运营分析平台。该工具在上个月,刚刚推出了全新的2.0版本。
3162 0

热门文章

最新文章