Skip to Content
エクセル・クックブック
book

エクセル・クックブック

by Dawn Griffiths
March 2025
Beginner to intermediate
592 pages
7h 52m
Japanese
O'Reilly Media, Inc.
Content preview from エクセル・クックブック

第16章 パワーピボットとデータモデル パワー・ピボットとデータ・モデル

この作品はAIを使って翻訳されている。ご意見、ご感想をお待ちしている:translation-feedback@oreilly.com

デフォルトでは、ピボットテーブルのベースとなるテーブルは1つだけだが、関連する複数のテーブルにデータがある場合は問題がある。さらに、Excelの行数制限によって大規模データセットの取り扱いが厄介になることもある。

Windows版エクセルを使用している場合、これらの制限を解決するには、データモデルを使用することである。データモデルを使うと、 以下の利点がある:

  • 複数の関連テーブルのデータを使用するピボットテーブルを作成できる。

  • 行数に制限はなく、複数のデータソースから何百万行でもインポートできる。

  • データモデルの使用は、その効率的な圧縮アルゴリズムにより、大規模データセットに対してより高速である。

この章のレシピでは、Power Pivot(データモデルとのインタフェースを持つアドイン)を使用して、Excel のデータモデルを操作する方法を紹介する。データ・モデルへのデータの追加、テーブル間の関係の定義、計算列、メジャー、主要業績評価指標 (KPI) の作成、およびピボット・テーブルとキューブ・フォーミュラを使用したデータ・モデルのデータの取得と分析が含まれる。

16.1 パワーピボットを取り付ける

問題

Windows版Excelを使っていて、Power PivotアドインをインストールしてExcelのデータモデルを操作できるようにしたい。

解決策

Windows版Excelを使用している場合、Power Pivotアドインを使用してワークブックのデータモデルと対話することができる。パワー・ピボットを有効にするには、以下のようにする:

  1. ファイル⇒オプションを選択する。

  2. アドインを選択する。

  3. 画面下部の「Manage」ボックスで「COM Add-ins」オプションを選択し、「Go」をクリックする。

  4. COMアドインダイアログボックスで、Microsoft Power Pivot for Excelチェックボックスにチェックを入れ、OKをクリックする。

ディスカッション

Power Pivotは、Excelにワークブックのデータモデルと対話し、より高度なデータ分析を実行するための追加機能をもたらす。この強力なツールの使い方の詳細については、この章の残りのレシピを参照のこと。

16.2 データモデルにデータを追加する

問題

分析したいデータがあり、それをワークブックのデータモデルに追加したい。

解決策

ほとんどの場合、データをデータモデルに追加するには、、Powerクエリを使用するのが最も良い方法である。Powerクエリを使用すると、データをインポートする前にデータのクリーニングと変換を行うことができる。 一般化では、レシピ15.1を使用してデータを取得し、Load Toオプションを選択してImport Dataダイアログボックス(レシピ15.3を参照)を開き、"Add this data to the Data Model "チェックボックスにチェックを入れてOKをクリックする。

現在のワークブックのテーブルを、データを変換せずにデータモデルにロードしたい場合は、Power Pivot ⇒ Tables ⇒ Add to Data Model を選択する。これにより、図 16-1 に示すように、テーブルがデータ・モデルに追加され、Power ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

はじめての知識グラフ構築ガイド

はじめての知識グラフ構築ガイド

Jesus Barrasa, Jim Webber
MySQL管理ハンズオン

MySQL管理ハンズオン

Arunjith Aravindan, Jeyaram Ayyalusamy

Publisher Resources

ISBN: 9798341626973