Data Models in Excel Power View
Last Updated :
31 Mar, 2023
The Data Model gives us the ability to work with multiple tables and integrate them with each other using a specified relationship to build a relational database inside Microsoft Excel. It helps to work with larger datasets and provides us with a huge set of interactive features for creating, modifying, and managing datasets simply and easily. All these operations are performed with the help of Power Views in Excel, which enables the user to visualize the different operations that need to be performed on the data model.
In this example, we are going to use Power View with Data Model to create a relational database between different factories and the product. In order to learn, how to enable and use power view please, refer How to Enable and Use Power View in Excel?
Creating Data Model using Power View
Here is how you can create the Data Model from Power View Sheet:
Step 1: You should have a new workbook containing Factory details and Product details in two different worksheets.
Step 2: From the data present in the Factory worksheet, create a table. Select all the data in the table, click on Insert -> Table. A pop-up appears, on that click OK.
Step 3: Similarly, from the data in the Product worksheet, create another table.
Step 4: Browse to the Product worksheet. In the ribbon, click on Insert -> Power View.
A new Power View sheet named Power View1 is created. It contains all the fields present in the Product worksheet. The visualization is in the form of a table. This Power View currently contains no Data Models.
In the Power View Fields, both the tables Factory and Product in our workbook are shown. And the Power View shows only the Product table present in the Active tab.
Step 5: The Power View table shows Factory ID, but what if we want to display the Factory Name instead. For this, we need to make the following changes in the Power View Fields:
- Deselect the Factory ID field in Product table.
- Select the Factory Name field in Factory table.
We get this message as we do not have any Data Model in the workbook, thus no relationship exists between the tables.Â
Step 6: Click on the CREATE button in the Power View Fields pane, and a Create Relationship dialogue box appears.
Create a Relationship between the tables by picking the following tables and columns:
- Table: Product
- Column (Foreign): Factory ID
- Related Table: Factory
- Related Column (Primary): Factory ID
Thus, we have created a Data Model with the two tables, which contain one Relationship between them. The field Factory Name is now displayed in the Power View table, in place of Factory ID.
Step 7: To change the Visualization of the Power View:
- Select only the Region, Factory Name, and Profit fields and deselect all others.
- Arrange them in the FIELDS section in the above order.
- Drag the Month field to TILE BY section.
- Switch the visualization to Matrix in the Power View ribbon.
In the Matrix visualization, for each of the Regions, the Factory Names and their Profits are displayed, along with the subtotal for each region. The tiles above represent the respective Months for which the following data is displayed. Changing between the Months will show the data for that month.
Step 8: The Data Model of the Power View can be viewed from the Power Pivot window:
- Go to the Power Pivot tab in the ribbon.
- Click on Manage in the Data Model group. The Power Pivot window opens.
- Make sure Diagram View is selected in the View group.
The Data Model along with the Relationship between the tables Product and Factory is shown.
Modifying Data Model from Power View
The Data Model in a Power View worksheet can be modified and improved upon by creating new tables in the workbook and defining new relationships among the tables.Â
Step 1: Create a new table named Profit in the workbook.
Step 2: In the Power View1 worksheet, change the visualization from Matrix to Table.
Step 3: In the ALL tab of the Power View Fields, the new table Profit is now present. Click on the Power Pivot tab on the ribbon to open the Power Pivot window. Click Manage -> Diagram View. The Data Model is displayed.
Step 4: As we can see, the Profit table has no relationships. Now we have to add the Profit table to the Data Model:
- Go to the Power View1 sheet.
- In the Power View Fields pane, deselect the Month field from the Product table.
- Select the Annual Profit field from the Profit table.
Step 5: The Annual Profit field is showing incorrect values, as we currently do not have any relationship between the Profit table and other tables. Click on the CREATE button in the Power View Fields pane and a Create Relationship dialogue box appears.
Create a Relationship between the tables by picking the following tables and columns:
Table: Factory
Column (Foreign): Factory ID
Related Table: Profit
Related Column (Primary): Factory ID
Step 6: Open the Diagram View from the Power Pivot window.
We see that the new relationship is now displayed. The Data Model now consists of two relationships between the three tables in our workbook.
Step 7: Click on the arrow to the right of the field Annual Profit in the FIELDS section. Select the option Do Not Summarize from the dropdown menu.
Step 8: Arrange the fields in the FIELDS section, in the order of Region, Factory Name, Annual Profit, profit.

Conclusion
Thus, we can conclude that the Data Model in Power View of Microsoft Excel is a very powerful feature to work on large data sets, define relationships among them, calculate and display data in different forms and even modify existing relationships. A proper knowledge of Data Models helps us to manage data efficiently in Excel.
Similar Reads
Power View in Excel
In today's data-driven world, the ability to turn raw data into meaningful insights is a skill that can unlock countless opportunities. Enter Power View, a remarkable data visualization technology that empowers users to transform their data into interactive and engaging charts, graphs, maps, and mor
8 min read
Excel Power Pivot - Managing Data Model
Power Pivot is something that helps us in relating between two different data sets which are in two different worksheets. We can manage and relate any type of data using Power Pivot. It is used for data analysis and creates many different data models. we can collect large data from different sheets
6 min read
Exploring Data with Power View Maps in Excel
Maps in Power View present your data from a geographical perspective. Power View maps employ Bing map tiles, so you can zoom and pan just like any other Bing map. To make maps function, Power View must transfer data to Bing through a secure online connection for geocoding, which is why it prompts yo
3 min read
Exploring Data with Power View in Excel
Microsoft Excel's Power View is a complex visualization function that allows users to create graphs, charts, and reports. It makes it simple for organizations to create reports and dashboards that can be shared with stakeholders, managers, and other team members on a daily, weekly, and monthly basis
4 min read
Loading Data with Power Pivot in Excel
There are two ways to input data into Power Pivot: Data may be immediately loaded into PowerPivot, populating the database, or it can be loaded into Excel and added to the Data Model. You may either create connections and/or use the existing connections to import data into the Power Pivot Data Model
5 min read
Date Modifications with Power Query in Excel
A data preparation and transformation engine is Power Query. Power Query includes a Power Query Editor for implementing transformations as well as a graphical interface for obtaining data from sources. With Power Query (also referred to as Get & Transform in Excel), you may import or connect to
7 min read
Data Modeling in Power BI
In todayâs world, âdata is the new oilâ. Data modeling is the process of creating visual representations of multiple tables or dataset connections. These datasets have attributes and fields with relevant information. A data model is an organized visual representation of different data elements, thei
9 min read
Aesthetic Power View Reports in Excel
Power View is used to create interactive reports to analyze the data. We can also make these reports more attractive by changing the themes, fonts, background colors, and chart palettes. In order to make the reports more attractive by adding background images and we can also change the size of the t
4 min read
Exploring Data with Excel Power Pivot
Power Pivot is an Excel one can use to perform intense information investigation and make modern information models. With Power Pivot, we can squash up enormous volumes of information from different sources, perform data examination quickly, and share experiences without any problem. In both Excel a
7 min read
Line Chart Visualization in Excel Power View
Power View is the visualization technology that brings our data to life. It is available in Microsoft Excel, on Power BI desktop or we can use it using an SQL server. With the help of power view, we can create on-the-go reporting using its interactive feature. It has versatile visualizations that en
4 min read