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
Akihiro Suto
October 12, 2022
Technology
3.2k
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
770
レポートをつくる、その先の運用を考える🤔 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
870
Power BI Report Ops
hanaseleb
0
810
Other Decks in Technology
See All in Technology
Service Connect 上のサービスに ECS Service の外側から到達できなかった話
ota1022
1
150
もう一度考える SRE チームの作り方・育て方 / Rethinking SRE #1: Building and Growing SRE Teams
rrreeeyyy
6
1k
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
190
toio・myCobotでフィジカルAIっぽいことを行うための検討(とりあえず調査) / フィジカルAI LT(IoTLTによる開催)
you
PRO
0
300
TypeScript入門 2026
recruitengineers
PRO
2
490
ラジオの科学
frievea
0
280
【CEDEC2026】次世代デジタルカードゲームのサーバー設計と運用 〜『Shadowverse: Worlds Beyond』の舞台裏~
cygames
PRO
1
960
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
19k
メルカリのグローバルアプリで挑んだ AlloyDB 運用と課題解決の実践記
hatappi
0
240
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.5k
AI時代の強いチームの作り方
yuukiyo
25
16k
クラウドセキュリティ入門 ~安全なクラウド利用のための基礎知識~
lhazy
11
8.3k
Featured
See All Featured
Evolving SEO for Evolving Search Engines
ryanjones
0
250
Data-driven link building: lessons from a $708K investment (BrightonSEO talk)
szymonslowik
1
1.2k
Side Projects
sachag
455
43k
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
270
The Spectacular Lies of Maps
axbom
PRO
1
890
GraphQLの誤解/rethinking-graphql
sonatard
75
12k
DevOps and Value Stream Thinking: Enabling flow, efficiency and business value
helenjbeal
1
310
Joys of Absence: A Defence of Solitary Play
codingconduct
1
430
Believing is Seeing
oripsolob
1
180
Skip the Path - Find Your Career Trail
mkilby
1
180
Everyday Curiosity
cassininazir
0
270
The Illustrated Guide to Node.js - THAT Conference 2024
reverentgeek
1
420
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 !!