匯入和開啟 Power BI 的範例套件Import and open sample packs for Power BI

本教學課程說明如何:This tutorial shows you how to:

  • 匯入範例內容套件,將它新增至 Power BI 服務,然後開啟內容。Import a sample content pack, add it to the Power BI service, and open the contents. 「內容套件」 是一種範例類型,其中資料集會隨附在儀表板及報表中。A content pack is a type of sample where the dataset is bundled with a dashboard and report.
  • 在 Power BI Desktop 中開啟範例.pbix 檔案。Open a sample .pbix file in Power BI Desktop.

如果您想要多了解一點背景,請參閱 Power BI 的範例資料集If you'd like more background information, see Sample datasets for Power BI. 在該文章中,您會了解範例的所有資訊:範例要如何取得、儲存、使用,以及各範例可提供的一些案例。In that article you'll learn all about the samples: how to get them, where to save them, how to use them, and some of the stories each sample can tell.

必要條件Prerequisites

這些範例適用於 Power BI 服務和 Power BI Desktop。The samples are available for the Power BI service and Power BI Desktop. 如果要跟著做,我們將會使用「零售分析」範例。To follow along, we'll be using the Retail analysis sample.

本教學課程使用的「零售分析」 內容套件範例,包含儀表板、報表和資料集。The Retail Analysis sample content pack used in this tutorial consists of a dashboard, report, and dataset. 若要熟悉此特定內容套件及其案例,請參閱適用於 Power BI 的零售分析範例:觀看導覽,再開始進行。To familiarize yourself with this particular content pack and its scenario, see Retail Analysis sample for Power BI: Take a tour before you begin.

Power BI 服務中的範例Samples in the Power BI service

  1. 開啟 Power BI 服務 (app.powerbi.com) 並登入,然後開啟您要儲存範例的工作區。Open the Power BI service (app.powerbi.com), sign in, and open the workspace where you want to save the sample.

    如果您沒有 Power BI Pro 授權,則可以將範例儲存到 [我的工作區]。If you don't have a Power BI Pro license, you can save the sample to your My Workspace.

  2. 在導覽窗格的底部,選取 [取得資料] 。Select Get Data at the bottom of the nav pane.

    選取 [取得資料]

    如果您看不到 [取得資料] ,請選取窗格頂端的下列圖示來展開導覽窗格:漢堡圖示If you don't see Get Data, expand the nav pane by selecting the following icon at the top of the pane: hamburger icon.

  3. 在顯示的 [取得資料] 頁面上,選取 [範例] 。On the Get Data page that appears, select Samples.

  4. 選取 [零售分析範例] ,然後選擇 [連線] 。Select Retail Analysis Sample, and then choose Connect.

    連線按鈕

匯入什麼內容?What was imported?

透過簡單的內容套件,當您選取 [連線] 時,Power BI 會取得該內容套件的複本並將其儲存在雲端。With the sample content packs, when you select Connect, Power BI gets a copy of that content pack and stores it for you in the cloud. 因為內容套件的建立者納入了資料集、報表及儀表板,所以當您選取 [連線] 時,這就是您會得到的項目。Because the person who created the content pack included a dataset, a report, and a dashboard, that's what you get when you select Connect.

  1. 當您選取 [連線] 時,Power BI 會建立新的儀表板,並將其列在您的 [儀表板] 索引標籤中。When you select Connect, Power BI creates the new dashboard and lists it on your Dashboards tab.

    零售分析範例項目

  2. 開啟 [報表] 索引標籤。您會在這裡看到名為「零售分析範例」 的新報表。Open the Reports tab. Here, you'll see a new report named Retail Analysis Sample.

    零售分析範例報表項目

    查看 [資料集] 索引標籤,其中也會有新的資料集。Check out the Datasets tab; there's a new dataset there as well.

    零售分析範例資料集項目

探索您的新內容Explore your new content

現在請自行探索儀表板、資料集和報表。Now explore the dashboard, dataset, and report on your own. 有很多不同方法可以巡覽到您的儀表板、報表和資料集。There are many different ways to navigate to your dashboards, reports, and datasets. 下列程序描述其中一種方法。One of these ways is described in the following procedure.

  1. 巡覽回 [儀表板] 索引標籤,然後選取 [零售分析範例] 儀表板加以開啟。Navigate back to the Dashboards tab, and then select the Retail Analysis Sample dashboard to open it.

    儀表板隨即開啟,其中有多種視覺效果磚。The dashboard opens, which has a variety of visualization tiles.

  2. 選取儀表板中的其中一個磚以開啟基礎報表。Select one of the tiles in the dashboard to open the underlying report. 在此範例中,我們會選取區域圖 [依會計月份的今年銷售額、去年銷售額] 。In this example, we'll select the area chart, This Year's Sales, Last Year's Sales by Fiscal Month.

    已醒目提示視覺效果的 [零售分析範例] 儀表板

    報表會隨即開啟頁面,其中包含您選取的區域圖;在本例中為報表的 [區域每月銷售額] 頁面。The report opens to the page that contains the area chart you selected; in this case, the District Monthly Sales page of the report.

    區域每月銷售額報表頁面

    注意

    如果磚是使用 Power BI 問與答所建立,則會改為開啟問與答頁面。If the tile was created by using Power BI Q&A, the Q&A page will open instead. 如果該磚是釘選自 Excel,則 Excel Online 將會在 Power BI 中開啟。If the tile was pinned from Excel, Excel Online will open inside of Power BI.

  3. 當有人與同事共用內容套件時,他們通常只想要共用見解,而不想要提供資料的直接存取權。When someone shares a content pack with colleagues, they typically want to share only the insights, rather than provide direct access to the data. 在 [資料集] 索引標籤上,您有多種選項可以探索資料集。On the Datasets tab, you have several options for exploring your dataset. 不過,您無法像是在 Power BI Desktop 或 Excel 中一樣檢視多列和多欄資料。However, you can't view the rows and columns of your data, as you can in Power BI Desktop or Excel.

    零售分析範例資料集項目

  4. 其中一個探索資料集的方式,是從頭建立您自己的視覺效果及報表。One way of exploring the dataset is by creating your own visualizations and reports from scratch. 選取圖表圖示Select the chart icon 圖表圖示 以報表編輯模式開啟資料集。to open the dataset in report editing mode.

    全新的報表

  5. 另一個探索資料集的方法是執行快速見解Another way of exploring the dataset is to run quick insights. 選取 [更多選項] (...),然後選擇 [取得快速見解] 。Select More options (...), and then choose Get quick insights. 當深入資訊就緒時,請選取 [檢視深入資訊] 。When the insights are ready, select View insights.

    見解報表

Power BI Desktop 中的範例Samples in Power BI Desktop

當您第一次在 Power BI Desktop 中開啟範例 .pbix 檔案時,它會在 [報表檢視] 中顯示,以供您搭配視覺效果探索、建立及修改任何數量的報表頁面。When you first open the sample .pbix file in Power BI Desktop, it displays in Report view where you can explore, create, and modify any number of report pages with visualizations. [報表檢視] 所提供的設計體驗,幾乎與 Power BI 服務中報表的 [編輯檢視] 相同。Report view provides almost the same design experience as a report’s Editing view in the Power BI service. 您可以在四處移動、複製及貼上、合併其中的視覺效果等等。You can move visualizations around, copy and paste, merge, and so on.

不同於在 Power BI 服務中編輯報表,在 Power BI Desktop 中,您也可以使用查詢及建立資料模型,確保資料在報表中能夠提供最透徹的見解。Unlike editing a report in the Power BI service, in Power BI Desktop you can also work with your queries and model your data to ensure your data supports the best insights in your reports. 然後,您可以將 Power BI Desktop 檔案儲存在任何位置,無論是本機磁碟機或雲端。You can then save your Power BI Desktop file wherever you like, whether it's to your local drive or to the cloud.

  1. 下載零售分析範例 .pbix 檔案並在 Power BI Desktop 中加以開啟。Download the Retail Analysis sample .pbix file and open it in Power BI Desktop.

    Power BI 報表檢視中的範例

  2. 檔案會在 [報表檢視] 中開啟。The file opens in Report view. 注意報表編輯器底部的四個索引標籤;這些索引標籤代表此報表中的四個頁面。Notice the four tabs at the bottom of the report editor; these tabs represent the four pages in this report. 在此範例中,目前選取的是 [新門市] 頁面。For this example, the New Stores page is currently selected.

    醒目提示的 [新門市] 索引標籤..

  3. 若要深入了解報表編輯器,請參閱報表編輯器導覽For a deep dive into the report editor, see Take a tour of the report editor.

報表中有哪些內容?What's in your report?

當您下載範例 .pbix 檔案時,您不僅會下載報表,也會下載「基礎資料集」 。When you download a sample .pbix file, you've downloaded not just a report but also the underlying dataset. 當您開啟檔案時,Power BI Desktop 會載入資料及其關聯查詢和關聯性。When you open the file, Power BI Desktop loads the data with its associated queries and relationships. 您可以檢視基礎資料和關聯性,但無法在 [查詢編輯器] 中檢視基礎查詢。You can view the underlying data and relationships, but you can't view the underlying queries in the Query Editor.

  1. 選取資料表圖示 資料表圖示 以切換到 資料檢視Switch to Data view by selecting the table icon table icon.

    Desktop 資料檢視

    在 [資料檢視] 中,您可以檢查、探索及了解 Power BI Desktop 模型中的資料。In Data view, you can inspect, explore, and understand data in your Power BI Desktop model. 它與您在 [查詢編輯器] 中檢視資料表、資料行和資料的方式不同。It's different from how you view tables, columns, and data in the Query Editor. [資料檢視] 中的資料已載入至模型。The data in Data view is already loaded into the model.

    當您建立資料模型時,有時會想要在報表畫布上沒有建立視覺效果的情況下,查看資料表中資料列和資料行的實際內容。When you’re modeling your data, sometimes you want to see what's actually in the rows and columns of a table, without creating a visual on the report canvas. 特別是當您要建立量值和導出資料行,或需要識別資料類型或資料類別時。This is especially true when you’re creating measures and calculated columns, or you need to identify a data type or data category.

  2. 選取下列圖示以切換到關聯性檢視關聯性檢視圖示Switch to Relationships view by selecting the following icon: Relationship view icon.

    Power BI Desktop 中的關聯性檢視

    [關聯性檢視] 會顯示模型中的所有資料表、資料行及關聯性。Relationship view shows all of the tables, columns, and relationships in your model. 您可以從這裡檢視、變更及建立關聯性。From here you can view, change, and create relationships.

後續步驟Next steps

您可以在此環境盡情嘗試,因為您可以選擇不儲存您的變更。This environment is a safe one to play in, because you can choose not to save your changes. 但如果儲存了變更,您也可以隨時選取 [取得資料] 以取得此範例的新複本。But if you do save them, you can always select Get Data for a new copy of this sample.

我們希望此導覽已說明 Power BI 儀表板、資料集、關聯性和報表如何提供範例資料的見解。We hope this tour has shown how Power BI dashboards, datasets, relationships, and reports can provide insights into sample data. 現在輪到您了,請連接到您自己的資料。Now it's your turn; connect to your own data. 您可以透過 Power BI 連接到各式各樣的資料來源。With Power BI, you can connect to a wide variety of data sources. 若要深入了解,請參閱開始使用 Power BI 服務開始使用 Power BI DesktopTo learn more, see Get started with the Power BI service and Get started with Power BI Desktop.

如需詳細資訊,請參閱:For more information, see:

有其他問題嗎?More questions? 試試 Power BI 社群Try the Power BI Community