Four-Step Dimensional Design Process
1. ビジネスプロセスの選択。(Select the business process)
2. 粒度を宣言する。(Declare the Grain)
3. ディメンションを特定する。(Identify the dimensions)
4. ファクトを特定する。(Identify the facts)
Slide 22
Slide 22 text
Four-Step Dimensional Design Process
1. ビジネスプロセスの選択。(Select the business process)
2. 粒度を宣言する。(Declare the Grain)
3. ディメンションを特定する。(Identify the dimensions)
4. ファクトを特定する。(Identify the facts)
Slide 23
Slide 23 text
1.ビジネスプロセスの選択
Slide 24
Slide 24 text
ビジネスプロセスの選択
データをモデリングする前に、ビジネスを理解することは重要です。
用意されたデータに目を通して、モデリングすることは簡単ですが、
最も良いのは、社内の色々な従業員と対話して、
人々が何をしたいのかを理解することです。
また、この工程は全体の中で、最も重要です。
ここで失敗すると、修復困難な欠陥が、連鎖的に発生することになります。
ビジネスプロセスの整理には、Business Process Modelling Notation
(BPMN)やUnified Modelling Language (UML)が使えます。
Four-Step Dimensional Design Process
1. ビジネスプロセスの選択。(Select the business process)
2. 粒度を宣言する。(Declare the Grain)
3. ディメンションを特定する。(Identify the dimensions)
4. ファクトを特定する。(Identify the facts)
Four-Step Dimensional Design Process
1. ビジネスプロセスの選択。(Select the business process)
2. 粒度を宣言する。(Declare the Grain)
3. ディメンションを特定する。(Identify the dimensions)
4. ファクトを特定する。(Identify the facts)
Four-Step Dimensional Design Process
1. ビジネスプロセスの選択。(Select the business process)
2. 粒度を宣言する。(Declare the Grain)
3. ディメンションを特定する。(Identify the dimensions)
4. ファクトを特定する。(Identify the facts)
先月の広告クリック数を、広告掲載メディア別で見る
SELECT
d_media.media_name,
sum(fct_clicks.click_amount) AS click_amount
FROM fct_clicks
INNER JOIN dim_media ON fct_clicks.media_key = d_media.media_key
INNER JOIN dim_date ON fct_clicks.order_date_key = d_date.date_key
WHERE d_date.day_of_month = 6
GROUP BY 1
さらに学びたい方へ
● ディメンションモデリング
○ https://zenn.dev/pei0804/articles/dimensional-modeling
● Building a Kimball dimensional model with dbt
○ https://docs.getdbt.com/blog/kimball-dimensional-model
● Star Schema The Complete Reference
○ 書籍です。