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
[Power BI] 静的ABC分類を構築する。
Search
Sponsored
·
SiteGround - Reliable hosting with speed, security, and support you can count on.
→
Akihiro Suto
March 26, 2022
Technology
450
0
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
[Power BI] 静的ABC分類を構築する。
https://powerbi.connpass.com/event/240937/
Akihiro Suto
March 26, 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
DAXクエリをDAX Studioでつくって、Power Automateで発射する💪
hanaseleb
1
3.2k
BIのPowerをAutomateする
hanaseleb
0
550
Power BI のうらがわ
hanaseleb
2
1.3k
ゼロからはじめたPower BI
hanaseleb
1
1.5k
Power Automateドリブンのチームマネジメント
hanaseleb
0
870
Other Decks in Technology
See All in Technology
AWS ネットワーク構築でハマった(ハマりかけた) 5選とそこから得た教訓
nagisa53
4
200
FPGAが実現する遠方宇宙の高空間分解能天体撮影 -大型地上望遠鏡の視力を補正する「補償光学」とは?-
komei_mt
0
190
トヨタ⽣産⽅式(TPS)⼊⾨
recruitengineers
PRO
2
650
モダンフロントエンド 開発研修
recruitengineers
PRO
3
560
[ChatGPT Work LT]事務作業が苦手な人のための バックオフィスの「半」自動化
chimaki_iot
0
250
【CEDEC2026】グラフィックスエンジニアのためのニューラルシェーディング入門
cygames
PRO
0
120
関東Kaggler会発表資料
takoi
1
200
ホームラボ紹介
y_sera15
0
130
SO-101×VLAによる3色キューブのピック&プレース
abeja
0
160
個人OSSが、机の上から世界に広がるまでの話
shinyasaita
1
370
Software Supply Chain Attackからクラウド環境を守るためにできること
lhazy
2
220
【CEDEC2026】『GRANBLUE FANTASY: Relink - Endless Ragnarok』のバトル制作事例 ~最高のキャラゲーを目指して~
cygames
PRO
0
230
Featured
See All Featured
Un-Boring Meetings
codingconduct
0
380
Product Roadmaps are Hard
iamctodd
55
12k
JAMstack: Web Apps at Ludicrous Speed - All Things Open 2022
reverentgeek
1
540
AI in Enterprises - Java and Open Source to the Rescue
ivargrimstad
0
1.4k
Side Projects
sachag
455
43k
Bridging the Design Gap: How Collaborative Modelling removes blockers to flow between stakeholders and teams @FastFlow conf
baasie
0
640
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
1
480
The Myth of the Modular Monolith - Day 2 Keynote - Rails World 2024
eileencodes
28
3.6k
Claude Code のすすめ
schroneko
67
230k
The Director’s Chair: Orchestrating AI for Truly Effective Learning
tmiket
1
260
Groundhog Day: Seeking Process in Gaming for Health
codingconduct
0
270
Facilitating Awesome Meetings
lara
57
7.1k
Transcript
1
ABC分析とは https://ja.wikipedia.org/wiki/ABC分析 ABC分析(エイビーシーぶんせき)とは「重点分析」とも呼ばれ在庫 管理などで原材料、製品(商品)等の資金的重要度を分析する手法であ る。在庫の資産としての価値などの評価(重要度)別に段階的な管理手 順を適用する。この手法は品質管理におけるパレート分析に類似して いる。 2
静的ABC分類 モデリング Salesテーブル 3
Produstsテーブル 4
リレーション 5
ビジュアライズ こんな感じのテーブルになり ます。 6
新しい列を追加 新しい列を追加していきます。 7
列追加 累計売上 累計売上 = VAR CurrentProductSales = 'Sales'[総売上] VAR BetterProduct
= FILTER ( 'Sales', 'Sales'[総売上] >= CurrentProductSales ) VAR Result = SUMX ( BetterProduct, 'Sales'[総売上] ) RETURN Result 8
累計売上% 累計売上% = DIVIDE ( 'Sales'[累計売上], SUM ( Sales[総売上] )
) ABC分類 ABC分類 = SWITCH ( TRUE, 'Sales'[累計売上%] <= 0.7, "A", 'Sales'[累計売上%] <= 0.9, "B", "C" ) 9
ビジュアライズ 列を追加することで静 的ABC分類が完成しま した。ビジュアライズ をして確認します。 10
11
12
うん、よさそう 13
静的ABC分類の最適化 列を追加 → モデルのサイズ大 更新に時間がかかってしまう可能性大 ABC分類の結果がほしいだけであれば、すべての列追加をひとつのコ ードにまとめ、モデルのサイズを小さくすることも検討。 14
ADDCOLUMNS 関数を使用。 最適化ABC分類 = VAR SalesByProduct = ADDCOLUMNS ( 'Sales',
"@ProdSales", [総売上] ) VAR CurrentSales = [総売上] VAR BetterProducts = FILTER ( SalesByProduct, [@ProdSales] >= CurrentSales ) VAR CumulatedSales = SUMX ( BetterProducts, [@ProdSales] ) VAR CumulatedPct = DIVIDE ( CumulatedSales, SUM ( Sales[総売上] ) ) VAR ABCClass = SWITCH ( TRUE, CumulatedPct <= 0.7, "A", CumulatedPct <= 0.9, "B", "C" ) RETURN 15
このバージョンのコード → モデルサイズ小 ただし、プロダクト数が多いデータベースでは、 カラムの計算に過剰なメモリを必要とする場合があります。 要は適材適所ってことですね 16
おしまい 17