Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
モデリング、コンテキスト トランジション +1 / Data modeling
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Yoichi Ishikawa
May 04, 2022
Technology
920
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
モデリング、コンテキスト トランジション +1 / Data modeling
2022年5月4日
https://powerbi.connpass.com/event/246419/
Yoichi Ishikawa
May 04, 2022
More Decks by Yoichi Ishikawa
See All by Yoichi Ishikawa
Microsoft 365の中でのPower BIの利用 / M365VM2022
ishiayaya
1
3.4k
Power BIのモバイルと都 +1 / Tokyo
ishiayaya
0
620
Power Query 日時の変換でちょっと焦ったケース +1 / Power Query Some cases
ishiayaya
0
520
Power Automateの実行履歴をPower BIで見よう / Nakama and Kimama
ishiayaya
0
970
Powe BIの導入ロードマップと実装計画 / roadmap of Power BI
ishiayaya
0
1.3k
SUMとSUMXの確認からいろいろな気づき / DAX-SUM-SUMX
ishiayaya
0
790
Tabular Editor 3 おそるべし / Super Tabular Editor 3
ishiayaya
0
360
自己紹介 LT / self-introduction LT
ishiayaya
1
380
Power QueryとDAXの入口 / Power Query and DAX
ishiayaya
0
450
Other Decks in Technology
See All in Technology
営業オントロジーの作り方と、エージェントからの辿り方 ── ナレッジワークの現場から
kworkdev
PRO
1
200
Terraformを用いたJamf Pro構成のIaC, GitOps化への挑戦
yukun
0
110
BedrockとLambdaで作る リアルタイム進行型推理ゲーム
kawametho
0
120
Oracle Cloud Infrastructure(OCI):Onboarding Session(はじめてのOCI/Oracle Supportご利⽤ガイド)
oracle4engineer
PRO
3
21k
AI臭い文章とは何なのか
nasuvitz
36
75k
プラットフォームを「作る」、 チームに「入り込む」
sansantech
PRO
0
390
Mastering Agentic Development: Harness Engineering for Effective Coding Agents
konippi
3
660
AIエージェント時代のPlatform as a Product —— テックリードがPdMとして回す発見・導入・計測 / Platform as a Product in the AI Agent Era
toshi0607
1
530
Claude起点の仕様駆動開発
tanakaseiya
0
220
CI/CDではもう遅い - 人とAIが迂回しないDevSecOps Verify基盤の再設計 -
kintotechdev
1
440
spanner-autoscalerに学ぶ CRD設計パターン 〜自動化と緊急時対応を両立する Kubernetesコントローラーの作り方〜
tkuchiki
0
210
【データ横丁主催】AI Agentがコンテキストを使って仕事をした後、何が残るのか― 組織の経験を次の判断に引き継ぐ「Agent Memory」
shisyu_gaku
2
270
Featured
See All Featured
New Earth Scene 8
popppiees
4
2.6k
Exploring the relationship between traditional SERPs and Gen AI search
raygrieselhuber
PRO
3
4.3k
Information Architects: The Missing Link in Design Systems
soysaucechin
1
1.2k
Test your architecture with Archunit
thirion
2
2.4k
Practical Orchestrator
shlominoach
192
12k
Paper Plane
katiecoart
PRO
4
53k
Beyond borders and beyond the search box: How to win the global "messy middle" with AI-driven SEO
davidcarrasco
3
270
First, design no harm
axbom
PRO
2
1.3k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
560
Designing for Timeless Needs
cassininazir
1
510
Refactoring Trust on Your Teams (GOTO; Chicago 2020)
rmw
35
3.8k
How Software Deployment tools have changed in the past 20 years
geshan
2
34k
Transcript
None
• Microsoft MVP for Data Platform - Power BI Since
Sep. 2021 • 自称Citizen Developer • アント・キャピタル・パートナーズ株式会社 • Power BI, Power Platform, M365, EMS • 東京・町田在住 • 心臓にIoTデバイスICD埋め込みあり • コラボ・コミュニティ Power BI Weekly News with Yugo • コア・参加コミュニティ Power BI 勉強会、気ままに勉強会 • セルフ・コミュニティ 市民開発者 なってみよう! #TryCivicEngr 石川 陽一 @ishiayaya
モデリングは必ず確認を
None
• 自動で思わぬリレーションになる場合も • スタースキーマに近づいているか? • 多のもの(ファクト)と1のもの(ディ メンション)の区別
できるだけ「スタースキーマに」 ファクトテーブル 明細等 ディメンションテーブル • 分析したい軸 • 一意な値 「多」対「一」等に紐づけ=モデリング
None
None
コンテキストトランジションの話 2022年4月30日 DAX Boot Camp #20発表より
(その前に)コンテキストとは
コンテキストとは • 行コンテキスト • フィルターコンテキスト 評価コンテキストevaluation contexts
Power BI Desktop での DAX の基本 - Power BI |
Microsoft Docs https://docs.microsoft.com/ja-jp/power-bi/transform-model/desktop- quickstart-learn-dax-basics
Context transitionとは 2022/5/3版
「Context transition」 教材:
モデル
• 計算列で作成→フィルターコンテキストはn/a • 行コンテキスト(row context) • 行コンテキストはフィルタリングしないので同じ値 Calculateではさんだら… 計算列では行コンテキストになるはずが、Calculate がきたことによってトランスフォームされ、フィル
ターコンテキストが効くようになった これが「コンテキスト トランジション(変換)」
None
製品テーブルでやったことを、売上テーブルでやってみましょう ファクトテーブルのような「多」の重複した値を持つテーブル使う場合は、 意図しない結果を生むかもしれないので要注意
None
Automatic CALCULATE • メジャーが呼び出されるたびに自動的に(内部的に、暗黙的に)CALCULATEが 追加される • テーブルのカラムでメジャーを使う便利な理由 • CALULATEがあればコンテキスト変換が起こる→フィルターコンテキスト SUMX
( Orders, [Sales Amount] ) SUMX ( Orders, CALCULATE ( [Sales Amount] ) )
かがたさんからのアドバイス(私なりの要約) • コンテキスト トランジションは、通常のビジュアル作り等の中で、暗黙的に意識し なくても頻繁に起こっている。 • 「なぜこの値に?」となったときに、コンテキスト トランジションを思い出し、確 認するとよい •
(内部的に、暗黙的に)CALCULATEが追加されるのは、暗黙のメジャーでも発生して いる
None
None
+1 DAXが簡単ではない7つの理由?
https://sqlbi.com
7 reasons DAX is not easy - YouTube https://www.youtube.com/watch?v=xCs6-w2A3Rs
7 reasons DAX is not easy - SQLBI https://www.sqlbi.com/blog/alberto/2020/06/20/7-reasons-dax-is-not-easy/
1. DAX is a functional language 関数型言語 2. Practice makes
perfect 練習すれば完璧に 「DAXを日常業務(Daily Job)に組み込む」 3. There are few important concepts 重要な概念ほとんどなし
• evaluation contexts 評価コンテキスト • Iterators イテレータ • context transition
コンテキストトランジション • expanded tables 展開されたテーブル
4. DAX is strongly logical かなり論理的 5. The devil is
in the details 悪魔が細部にいる 間違った問いには、間違った答えが 6. You need a good editor 良いエディターが必要 7. Trial and error simply does not work トライ&エラーは単純に機能しない
Practice. The. Fundamentals. Enjoy DAX!
ありがとうございました。 be agile