Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
DAXクエリをDAX Studioでつくって、Power Automateで発射する💪
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Akihiro Suto
October 12, 2022
Technology
3.1k
1
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
DAXクエリをDAX Studioでつくって、Power Automateで発射する💪
https://rpacommunity.connpass.com/event/261717/
こちらのイベントで発表した内容です。
Akihiro Suto
October 12, 2022
More Decks by Akihiro Suto
See All by Akihiro Suto
JPPC2023_BI08_セマンティックモデルを覗き見る(公開用)
hanaseleb
0
5.4k
プッシュデータセットを試してみよう
hanaseleb
0
760
レポートをつくる、その先の運用を考える🤔 Power BI Report Ops
hanaseleb
0
5.6k
Power BI データフローを考える
hanaseleb
1
1.9k
BIのPowerをAutomateする
hanaseleb
0
550
Power BI のうらがわ
hanaseleb
2
1.3k
ゼロからはじめたPower BI
hanaseleb
1
1.5k
Power Automateドリブンのチームマネジメント
hanaseleb
0
860
Power BI Report Ops
hanaseleb
0
800
Other Decks in Technology
See All in Technology
AIはどのように 組織のアジリティを変えるのか?
junki
4
1.1k
SONiCのLinuxベースを活かしたZabbix監視
sonic
0
270
入門!AWS Blocks
ysuzuki
1
170
AIチャット検索改善の3週間
kworkdev
PRO
2
160
PostgreSQL 19 新機能概要 OSC Hokkaido 2026
nori_shinoda
0
210
GitHub Copilot app最速の発信の裏側
tomokusaba
1
240
インシデントレスポンス演習 I / Incident Response Exercise I
ks91
PRO
0
110
iOS アプリの「これって不具合ですか?」を AI に調べてもらう
miichan
0
130
Lightning近況報告
kozy4324
0
220
5分でわかるDuckDB Quack
chanyou0311
2
190
GitHub Copilot 最新アップデート – 「一歩先」の実践活用術
moulongzhang
5
1.6k
SteampipeとExcel Power QueryでAWS構成定義書の作成を自動化する
jhashimoto
0
170
Featured
See All Featured
Distributed Sagas: A Protocol for Coordinating Microservices
caitiem20
333
22k
Practical Tips for Bootstrapping Information Extraction Pipelines
honnibal
25
2k
What's in a price? How to price your products and services
michaelherold
247
13k
VelocityConf: Rendering Performance Case Studies
addyosmani
333
25k
Stewardship and Sustainability of Urban and Community Forests
pwiseman
0
230
A better future with KSS
kneath
240
18k
The Psychology of Web Performance [Beyond Tellerrand 2023]
tammyeverts
49
3.5k
What the history of the web can teach us about the future of AI
inesmontani
PRO
1
620
HDC tutorial
michielstock
2
720
Joys of Absence: A Defence of Solitary Play
codingconduct
1
400
Fashionably flexible responsive web design (full day workshop)
malarkey
408
66k
10 Git Anti Patterns You Should be Aware of
lemiorhan
PRO
659
62k
Transcript
Power BIと Power Automateを 組み合わせたらPower💪だった件
Power BIとPower Automateを 組み合わせたらPowerだった件 © Akihiro Sutoh 2 ⚫ Power
BIのデータセットに ⚫ Power Automateから問い合わせ ⚫ データを自由自在に加工して ⚫ どこでも表示💪
今日の登場人物 © Akihiro Sutoh 3
今日の登場人物 © Akihiro Sutoh 4 D A X ク エ
リ Power BI データセットに 問い合わせるときの言語 D A X S t u d i o DAXクエリ開発の 必須ツール P o w e r A u t o m a t e DAXクエリを Power BI データセットに投げる係
What’s DAXクエリ © Akihiro Sutoh 5
What’s DAXクエリ © Akihiro Sutoh 6 D A X ≠
D A X ク エ リ 仲間だけど少し違う。 ビジュアル全体を問い合わせる ために使われている。 P o w e r B I D e s k t o p で 確 認 パフォーマンスアナライザーで DAXクエリがみられる DAX クエリ - DAX | Microsoft Learn
What’s DAXクエリ © Akihiro Sutoh 7 D A X ≠
D A X ク エ リ 仲間だけど少し違う P o w e r B I D e s k t o p で 確 認 パフォーマンスアナライザーで DAXクエリがみられる DAX クエリ - DAX | Microsoft Learn
What’s DAXクエリ © Akihiro Sutoh 8 DAX クエリ - DAX
| Microsoft Learn
What’s DAXクエリ © Akihiro Sutoh 9 // DAX Query DEFINE
MEASURE 'cso FactOnlineSales'[Sales_Amount] = (/* USER DAX BEGIN */ SUMX('cso FactOnlineSales','cso FactOnlineSales'[SalesAmount]) /* USER DAX END */) VAR __DS0Core = SUMMARIZECOLUMNS( ROLLUPADDISSUBTOTAL('cso DimProduct'[BrandName], "IsGrandTotalRowTotal"), "Sales_Amount", 'cso FactOnlineSales'[Sales_Amount] ) VAR __DS0PrimaryWindowed = TOPN(502, __DS0Core, [IsGrandTotalRowTotal], 0, 'cso DimProduct'[BrandName], 1) EVALUATE __DS0PrimaryWindowed ORDER BY [IsGrandTotalRowTotal] DESC, 'cso DimProduct'[BrandName] DAX クエリ - DAX | Microsoft Learn
DAXクエリの構文 © Akihiro Sutoh 10 ローカルのデータセットに接続 Power BI Service上のワークスペースに接続 ⚫
必須キーワード ⚫ EVALUATE ⚫ 省略可能なキーワード ⚫ ORDER BY ⚫ START AT ⚫ DEFINE MEASURE VAR TABLE COLUMN [DEFINE ( (MEASURE <table name>[<measure name>] = <scalar expression>) | (VAR <var name> = <table or scalar expression>) | (TABLE <table name> = <table expression>) | (COLUMN <table name>[<column name>] = <scalar expression>) | ) + ] EVALUATE <table> [ORDER BY {<expression> [{ASC | DESC}]}[, …]] [START AT {<value>|<parameter>} [, …]]] DAX クエリ - DAX | Microsoft Learn
DAX Studio © Akihiro Sutoh 11 DAX Studio | DAX
Studio
DAX Studio © Akihiro Sutoh 12 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続
DAX Studio © Akihiro Sutoh 13 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続 列にしたい項目を入れる フィルター 並び順 クエリビルダー
DAX Studio © Akihiro Sutoh 14 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続
DAX Studio © Akihiro Sutoh 15 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続
DAXクエリの構文 © Akihiro Sutoh 16 ローカルのデータセットに接続 Power BI Service上のワークスペースに接続 ⚫
必須キーワード ⚫ EVALUATE ⚫ 省略可能なキーワード ⚫ ORDER BY ⚫ START AT ⚫ DEFINE MEASURE VAR TABLE COLUMN DAX クエリ - DAX | Microsoft Learn [DEFINE ( (MEASURE <table name>[<measure name>] = <scalar expression>) | (VAR <var name> = <table or scalar expression>) | (TABLE <table name> = <table expression>) | (COLUMN <table name>[<column name>] = <scalar expression>) | ) + ] EVALUATE <table> [ORDER BY {<expression> [{ASC | DESC}]}[, …]] [START AT {<value>|<parameter>} [, …]]] 復習
DAX Studio © Akihiro Sutoh 17 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続 DAXクエリ 結果
DAX Studio © Akihiro Sutoh 18 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続 DAXクエリ 結果 売上上位順に変更
DAX Studio © Akihiro Sutoh 19 DAX Studio | DAX
Studio ローカルのデータセットに接続 Power BI Service上のワークスペースに接続 DAXクエリ 結果 TOPN関数を利用 TOPN 関数 (DAX) - DAX | Microsoft Learn
Power Automateで活用 © Akihiro Sutoh 20
Power Automateで活用 © Akihiro Sutoh 21 Power BI - Connectors
| Microsoft Learn DAX Studioからコピペ
Power Automateで活用 © Akihiro Sutoh 22 Power BI - Connectors
| Microsoft Learn DAX Studioからコピペ
Power Automateで活用 © Akihiro Sutoh 23 Power BI - Connectors
| Microsoft Learn DAX Studioからコピペ
結果 © Akihiro Sutoh 24
アイデア💡 © Akihiro Sutoh 25
🤔
RPAコミュなのに
結構、手を動かした
でも
💪😁 Power !!