以 Open Data 為對象透過 Power BI 分析傳染病疫情,並以此為主軸介紹 Power BI 服務及其分析流程。使用資料為歷年健保門診類流感就診人次與健保門診及住院就診人次統計-腸病毒。
包含 : Power BI 概念與架構, 使用 Power BI 存取雲端數據, 使用 Power BI 建置資料模型, 開發視覺化互動性分析報表, 與使用行動裝置存取 Power BI。
此文件以 2017 Power BI 作為操作平台。
Use Power BI platform to analyze open data for communicable diseases. Furthermore, introduce Power BI platform and its analyzing concept. The data demonstrated includes (1) out-patient clinicis for influenza, (2) out-patient clinicis for entrovirus.
The content includes (1) the architecture and analyzing concept, (2) access to web/local data, (3) construct data model, (4) develop interactive dashboard, and (5) access the Power BI service by mobile devices.
The document is written on the 2017 Power BI platform.
2. 至微軟下載中心下載 Power BI [連結]
課前準備 下載 Power BI 及註冊帳號(可參考 https://goo.gl/KsKuPr)
1 於 Power BI 網頁進行註冊2
1. 開啟 Power BI 並點擊登入
2. 點選「免費試用」
需填入工作單位電子信箱,不可為通用信箱,
不可用 gmail.com, hotmail.com, yahoo.com
2
3. 課程結束後應該會學到 …
• Power BI 概念與架構
• 使用 Power BI 存取雲端數據
• 使用 Power BI 建置資料模型
• 開發視覺化互動性分析報表
• 使用行動裝置存取 Power BI
3
6. Power BI 分析流程 6
Power View
Power Pivot
Power Query
Power Query – 蒐集
蒐集外部資料及內部資料來源
Power Pivot – 分析
建立數據關聯模型及加值處理
Power View – 呈現
互動式智慧視覺效果
無法回答問題 ?
7. 開始使用 Power BI 吧 ! 7
下載了 Power BI 桌面版
已經申請好了 Power BI 帳號
下載好所有必要的資料集
Check list
下載「類流感健保門診及住院就診人次
統計資料 (NHI_Influenza_like_illness.csv)」
下載「縣市代號對照 (city.csv)」
取得資料集
13. • 主要功能為塑造資料模型,提供 Power View 視覺化資料
• 透過建立關聯、自訂量值、函式處理等,配合 In-memory 技術增加資料量
Power Pivot
蒐集 整理
建模 分析
呈現
13
14. Power BI 支援微軟 Excel 函式 常用函式列表 14
N
N
'05' 0
0
5 0
0
資料整合 資料清理 資料轉換
IF 檢查條件
COUNTIF 條件計數
DATEDIF 日期差値
LEN 字串長度
MID 中間子字串
LEFT 左取字串
RIGHT 右取字串
CONCATENATE 字串組合
VLOOKUP 搜尋與回傳
LOOPUP 搜尋與回傳
DATE 搜尋與回傳
YEAR 取得年份
MONTH 取得月份
TODAY 今日日期
NOW 今日日期時間
VALUE 轉換數字
INT 轉換整數
FIND 搜尋子字串
TYPE 資料屬性
RAND 0-1 亂數
其他常用
DAX 函式 : https://msdn.microsoft.com/en-us/library/ee634396.aspx