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
Pavlokで始める電撃駆動開発
sgrsn
0
180
Bill One 開発エンジニア 紹介資料
sansan33
PRO
7
19k
FORENSIA: ローカルLLMフォレンジックハーネス
sumeshi
2
350
侵入は突然に 〜 IoTマルウェアと悪用される家庭の機器 ~ / When Intrusion Strikes: IoT Malware and the Abuse of Home Devices
nttcom
0
1.6k
第3回しろおびセキュリティスポンサーセッション
log0417
0
160
DatadogのBits Chatが開発組織にもたらしたもの / What Bits Chat Has Brought Us
sms_tech
0
120
【5分でわかる】セーフィー エンジニア向け会社紹介
safie_recruit
0
53k
AIは実装を速くする。では、私たちは何を今作るべきか?-立場を越えてリリースに向き合ったチーム開発の実践 / 20260801 Hiromi Nakaya and Naoki Takahashi
shift_evolve
PRO
3
450
ブラウザ研修 2026
recruitengineers
PRO
5
800
【CEDEC2026】『ウマ娘 プリティーダービー』 英語版のキャラクターの方言や口調をローカライズするための創造的アプローチ
cygames
PRO
1
200
Forza Horizon 6 のテレメトリ機能で 自動運転に使えそうな学習データを集める話
henjin0
0
150
Service Connect 上のサービスに ECS Service の外側から到達できなかった話
ota1022
1
180
Featured
See All Featured
Chasing Engaging Ingredients in Design
codingconduct
0
260
The Cult of Friendly URLs
andyhume
79
7k
Designing for humans not robots
tammielis
254
26k
Building Flexible Design Systems
yeseniaperezcruz
330
40k
End of SEO as We Know It (SMX Advanced Version)
ipullrank
3
4.3k
Google's AI Overviews - The New Search
badams
0
1.1k
The Straight Up "How To Draw Better" Workshop
denniskardys
239
140k
How to Build an AI Search Optimization Roadmap - Criteria and Steps to Take #SEOIRL
aleyda
1
2.1k
Dominate Local Search Results - an insider guide to GBP, reviews, and Local SEO
greggifford
PRO
0
260
Understanding Cognitive Biases in Performance Measurement
bluesmoon
32
3k
SEO for Brand Visibility & Recognition
aleyda
0
4.7k
[RailsConf 2023 Opening Keynote] The Magic of Rails
eileencodes
31
10k
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 !!