SlideShare a Scribd company logo
1 of 37
PowerBIで
名古屋をビジュアライズ!
2018年2月10日
オモシロインク 榊原伸也
・・・が!?
#pbijp #pbijp758
自己紹介
榊原 伸也
(さかきばら しんや)
http://shinya.nagoya/
#pbijp #pbijp758
PowerBIで名古屋をビジュアライズ
• わかりやすい具体的な例で、PowerBIを使ってみよう
• 名古屋なんだから、名古屋のデータで見てみよう!
• 名古屋市から提供されているオープンデータをビジュアライズ
• データソースは名古屋市
「年齢別人口(全市・区別) 、人口ピラミッド」
(http://www.city.nagoya.jp/shisei/category/67-5-5-7-0-
0-0-0-0-0.html)
#pbijp #pbijp758
PowerBIで名古屋をビジュアライズ
#pbijp #pbijp758
美しいデモの結果はコレ
#pbijp #pbijp758
そうは問屋が卸さないw
#pbijp #pbijp758
今日は楽しいとこはなし
「つらいことだけ」
By かがた
#pbijp #pbijp758
そう簡単にはいかない!!!
• デモはデモ用に作られている!!!!!!!!
• 今回は、デモに至る・・・
“苦労する部分”
“つまづきポイント”
“失敗例と対処法”
• を共有します。
#pbijp #pbijp758
結論:やったこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
とりあえず見てみる
「年齢別人口(全市・区別) 、人口ピラミッド」
(http://www.city.nagoya.jp/shisei/category/67-5-5-7-0-0-0-0-0-0.html)
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
1.不要な見出し列の削除
• Excelデータ
#pbijp #pbijp758
1.不要な見出し列の削除
#pbijp #pbijp758
1.不要な見出し列の削除
• Excelデータ
削除
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
2.西暦のフォーマット変更
おかしい??
#pbijp #pbijp758
2.西暦のフォーマット変更
ダメだがゃ
“-” を “/”に置換して、フォーマットを直します
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
3.一部年度データの削除
• 高年齢層で著しい偏りがある??
1900年代の高齢者が少ない
#pbijp #pbijp758
3.一部年度データの削除
• 高年齢層で著しい偏りがある??
1984年
2009年
2017年
高齢化進んどるがゃ
#pbijp #pbijp758
3.一部年度データの削除
• 100歳以上でデータが管理される2005年~2017年の一部以外を削除
1984年 2005年 2017年
削除 削除
※“85歳以上”で丸めるのも一案
100歳以上
西暦のフォーマット変更意味なし orz
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
やるべきこと
1. 不要な見出し列(1~2行目)の削除
• →正しく列情報が取得できない
2. 西暦のフォーマット変更
• →シリアル値を正確に取得してくれない
3. 一部年度データの削除
• →取得範囲が異なり正規化できない
4. 軸ラベルの付与
• →軸を基準としたソートができない
#pbijp #pbijp758
4.軸ラベルの付与
これが作りたい
#pbijp #pbijp758
4.軸ラベルの付与
• 頭の数値でソートされるため・・・
0~
10~
15~
100~
105~
20~
・
・
5~
• というような、よくあるダメなソート状態に
なってしまう
#pbijp #pbijp758
4.軸ラベルの付与
• 正しくソートされるように番号を振る
•1: 0~
2: 5~
3: 10~
4: 15~
5: 20~
6: 25~
7: 30~
8: 35~
#pbijp #pbijp758
4.軸ラベルの付与
一桁じゃあっかんがゃ
#pbijp #pbijp758
4.軸ラベルの付与
• 正しくソートされるように適切に番号を振る
•01: 0~
02: 5~
03: 10~
04: 15~
05: 20~
06: 25~
07: 30~
08: 35~
#pbijp #pbijp758
4.軸ラベルの付与
きれいに並んだがゃ
#pbijp #pbijp758
その他、気を付けるところ
•日付のフォーマット(Feb 6, 10/2/2018)
•西暦、和暦の混在
•単位の混在(g,kg / m,km)
•不要なデータ(前後のスペース、タブ)
•漢字の住所や名前(ひらがなでソート)
データクレンジング (ドヤ
#pbijp #pbijp758
美しいデモの結果はコレ
#pbijp #pbijp758
伝えたいこと
おそらく、今あるデータからテストするはず(社内既存データとか)
• 最初から成功はない(断言)
• 失敗を一つ一つクリアする
• 七転び八起き 七転八倒
• 今日の登壇者も同じ(何度も失敗してます)
• 一緒に失敗して、ともに成長しましょう
デモは作りこまれている!!!
#pbijp #pbijp758
詳しくはWebで。
• こちらでも本セッションと同様の内容を公開しています。
あわせてご参照ください。
• 「 POWERBI 名古屋勉強会のご紹介と、名古屋のオープンデータを使っ
た名古屋の紹介」
http://shinya.nagoya/2017/12/25/powerbi2018nagoya/
#pbijp #pbijp758
謝辞
ご清聴ありがとうございました
PowerBI 勉強会名古屋支部は、
一緒に成長する仲間をいつも募集しています!

More Related Content

Featured

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 

20180210 PowerBI勉強会名古屋支部 #1 登壇資料