[go: up one dir, main page]

Open In App

Creating a Data Model in Excel

Last Updated: 23 Jan, 2023

C

Summarize
Comments
Improve
Suggest changes
Like Article
Like
Share
Report
News Follow

In Excel, a data model is a form of the data table in which two or more tables are linked by a common or many data series. Tables and data from many other sheets or sources are combined in the data model to generate a single table that can access data from all tables. A Data Model enables you to combine data from different tables, thereby creating a relational data source within an Excel spreadsheet. Data Models are utilized openly in Excel, supplying tabular data for PivotTables and PivotCharts.

Data Model in Excel

We have three datasets: one with customer information, another with product information, and the third with sales information.

Dataset 1: It contains customer information with the customer ID, customer, Gender, and region field.

dataset1

 

Dataset 2: It contains product information with the product ID, category, size, and price field.

dataset2

 

Dataset 3: It contains sales information with the Sales ID, Date, Customer ID, Product ID, and Quantity fields.

dataset3

 

Step By Step implementation of Data Model

Step 1: In Excel, create a new blank Workbook. Then go to Power Pivot on the top of the ribbon. Then select manage from the Data Model group.

selecting-manage-from-data-model

 

Step 2: Power Pivot for excel sheet is open. Now go to the home tab on the top of the ribbon and then select From other sources from the Get External Data group.

get-external-data-group

 

Step 3: After selecting Table Import Wizard dialog box appears. Here select the Excel file option from the Text files group and then click Next.

clicking-next-from-text-file-groups

 

Step 4: Here Browse the file path, where your file is stored. Make sure to check the Use first row as column header option and then again click Next.

browsing-file-path

 

Step 5: Now it shows the customer sheet just check it if it is not checked and then again click on FINISH.

clicking-finish

 

Step 6: Now sheet 1 is successfully imported with all the rows in the Power Pivot table. Now just click on Close.

sheet1-successfully-imported

 

Step 7: Now as you can see Customer table is successfully imported with all the fields.

customer-table-imported

 

Step 8: Now you need to select the From Other Sources option and follow the same steps again for the Product dataset. In this, you can see after doing all the steps it automatically creates a Product sheet with all the fields.

creating-product-sheet

 

Step 9: Now again you need to select the From Other Sources option and follow the same steps again that are used in the customer dataset for the Sales dataset. Now, you can see after doing all the steps it automatically creates a Sales sheet with all the fields.

automatically-creating-sales-sheet

 

Step 10: Now go to the home tab on the top of the ribbon and then select Diagram view from the view group.

selecting-diagram-view

 

Step 11: Now you can see it creates a dataset of all three tables i.e., Customer, Sales, and Product. 

tables-created

 

Step 12: Now you need to connect all three datasets with each other. First, we are connecting the customer Id field from the sales Table to the customer table because it is common in the sales Table and the customer table. Second, we are connecting the product Id field from the sales Table to the product table because it is common in the sales Table and the product table.

ERD-created

 

Step 13: Go to the home tab and then select the Pivot table option from the top of the ribbon.

selecting-pivot-table

 

Step 14: Create PivotTable dialog box appears. Here just select the new worksheet and then click on OK.

creating-pivot-table

 

Step 15: Now in the Excel sheet pivot table is open with the PivotTable fields pane that shows all three tables.

pivot-table-fields

 

Step 16: Just drag the region field of the customer table to the Rows pane and the category field of the product table to the Columns pane.

dragging-fields

 

Now it will show the Pivot table with the region and the product fields.

Step 17: Drag the Quantity field from the sales table to the Values pane. Then it shows all the quantities according to the product and region and also it sums all the quantities.

dragging-fields

 

In only a few minutes, you might evaluate your data from several tables and get the desired report. Because of the pre-existing linkages between the tables in the source database, this was achievable. Excel rebuilt the associations in its Data Model when you imported all of the tables from the database at once. If you do not import the tables at the same time, the data comes from separate sources, or you add additional tables to your Workbook, you must manually build the Relationships between the Tables.



C

News
Improve
Discuss
Do you want to advertise with us?Click here to know more

Excel Power Pivot - Managing Data Model

article_img
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 and can apply or perform any relation between them. Power Pivot is usable for tables only. If we have any dataset then we need to convert that dataset into tables before using Power Pivot. Managing Data ModelWhen data is formed by combining various sources, then those types of data are formed by  Data Modals. It is created by an existing relationship between two or more tables. It is created automatically when we import two or more tables from a database. Let's understand how to Manage Data Models using Excel Power Pivot with the help of an example. Step 1: Open Ms-Excel and save it as any name let's save it as "Managing Data Model".  Then we need to take any dataset, Let's say we take, three different datasets whose names are Orders, Products, and Return respectively. and our task is to manage the whole data in Power Pivot and find the Sum of Sales in each Region.   Dataset of Order Dat
Read More

Creating Box Plots in Excel

article_img
Box plot is a statistical plot that helps in data visualization. It is used to show the distribution of numerical data using various quartiles. They are as follows : Lower Extreme: It is the minimum value in the data set which is at the end of the whisker.First Quartile: It is also known as lower quartile where 25% of the scores fall below it.Median: It is basically the mid-point which divides the box into two equal halves. It is also known as Second Quartile.Third Quartile: It is also known as the Upper quartile in which 25% of the data is above it and the rest 75% falls below it.Interquartile Range: It is showing the middle part of the box plot which is 50% of the scores. It is abbreviated as IQR.Upper Extreme: It is the maximum value in the dataset which is at the end of the whisker.Whisker: The two whiskers at upper and lower basically denote the value outside the IQR range or 50% of the scores.Outliers: The points in the box plot which lie outside the whiskers. Some important links to get more insights about box plots : Box PlotBox Plot using PythonBox Plot in R What is Box plot and the condition of outliers?Understanding different Box Plot with visualization In this article,
Read More

Creating Infographics with Excel

article_img
Infographics are the best option to capture user attention and effectively convey the information. We explain step by step how to create a simple infographic for displaying sales of Apples and Oranges with a background Grey image. Implementation: Follow the below steps to implement the infographics of the sales data: Step 1: Open Excel. Step 2: Go to Insert >> Icons. Step 3: Select Apple and Orange then press Insert Step 4: Select both icons, Fill White color and Black outline. Step 5: Duplicate both icons and change fill color. Select Apple Icon, Fill “Dark red” color Select Orange Icon, Fill Orange color Step 6: Prepare sample data table as below with background series (Actual data are in row 2). Step 7: Select the data table and insert Clustered Column. Step 8: Now we have four bars in the Graph and respective four icons. Step 9: To Copy the icon image to the bar. Copy red apple icon: Select respective (first) bar in graph and right click, Press “Format Data Point” Step 10: In the “Format data point”. Select “Fill & Line” (1); Select “Picture and texture fill” (2); Click Clipboard (3); Select “Stack and Scale with” (4); set 100 to Units/Picture (5) Step 11: Follow step
Read More

Creating a Power Pivot Chart in Excel

article_img
Power Pivot is an Excel add-in that is available for Excel 2021, Excel 2019, Excel 2016, and Excel 2013. Power Pivot is used to create data models and performs high-level data analysis to establish relationships and give results easily. Power pivot can analyze large data rapidly and creates data models by building extensive relationships and calculations based on the given data. Creation of Power Pivot Chart Let's create a chart using Power Pivot on the following data model. Step 1: Click the Home tab, which is visible above, and click on the pivot table Step 2: Then click on the pivot chart. Then a dialog box appears. Select a new worksheet and click ok. Then it will appear like the image below, which contains all the table names in pivot chart fields. Step 3: Then click on the pivot chart fields (which contain table values) that represent the chart. So by clicking these fields, the chart will appear according to their relation. These are called value field buttons. Based on the data in these field buttons, the chart is prepared. This is called a Legend. In this area sum of values is given. We can remove the legend and value field buttons. The icon at the left side bottom(which is
Read More

Creating Actual Vs Target Chart In Excel With Floating Markers

article_img
Excel is known to be a powerful tool for data visualization, comparison, storage, and management which can handle large amounts of data. We know that data can be visualized and compared using different kinds of plots and charts in Excel such as line charts, bar charts, etc. The tool is used to get insights from data using formulas and functions. It is primarily used by Accounting professionals to get insights into financial data, but it can be used by anyone for different purposes. Let's see how to create an Actual vs Target chart using floating markers: For demonstration, let's use the below table values, which have actual sales and target sales for different years, Actual vs Target Chart in Excel – Target Values as BarsAn Actual vs. Target chart is a tool that is used to compare two sets of data: the actual values achieved and the target values to be reached. This type of chart is widely used in situations, such as assessing sales performance, tracking revenue targets, and many more. There are various kinds of chats in Excel for data visualization, It makes it easy to identify areas where goals are exceeded or met, providing valuable insights for strategic planning and tracking f
Read More

R

Creating a Gantt Chart With Milestones Using a Stacked Bar Chart In Excel

article_img
One of the most common and effective methods of displaying activities (tasks or events) plotted against time is a Gantt chart, which is frequently used in project management. On the left side of the chart is a list of the activities, and at the top is a suitable time scale. A bar is used to symbolize each activity, and the location and length of the bar correspond to the activity's beginning, middle, and finish dates. The following elements are crucial to any effective Gantt chart: The task list, which can be divided into groups and subgroups, runs vertically along the left side of the Gantt chart to define project activity.Timeline: Displays months, weeks, days, and years horizontally across the top of the Gantt chart.Dateline: On a Gantt chart, a vertical line displays the current date.Bars: On the right side of the Gantt chart, horizontal markers indicate tasks and display status, length, and start and finish dates.Milestones: Yellow diamonds that identify significant occasions, dates, choices, and outputsDependencies are thin grey lines connecting activities that must occur in a specific order.The percentage of work that has been completed or the color of the bars can be used t
Read More

Editing Excel Macros in Excel

article_img
Excel Macro is a set of actions that can be recorded, saved, used multiple times. This feature saves us a lot of time when dealing with repetitive tasks and huge data sets. We can always make changes to an existing Macro in Excel. There are two ways to record and run macros: Excel Commands Excel Visual Basic for Applications(VBA).1. Copying a Macro Code We can reuse the existing macro code while creating new Macros. For example, if you have existing macros created using the record function, we can reuse the code to write new macros. To open the code follow the below steps: Select Tools --> Macros --> Visual Basic Editor. Copy code from the existing macros(use Command + C) and paste(use Command + V) in the new macro2. Renaming a Macro Follow the below steps to rename a Macro in Excel: Select Tools --> Macros --> Visual Basic Editor. Select name on the left plane.Edit the name.3. Deleting a Macro Follow the below steps to delete a macro in Excel: Select Tools --> Macros --> Macros... Select the macro to be deleted. Click on the minus(-) symbol at the bottom.Select yes to delete the macro.
Read More

Best Microsoft Excel High-Paying Jobs with Excel Skills in 2024

article_img
Are you ready to unlock a world of opportunities with Microsoft Excel? In today’s data-driven job market, mastering Excel is essential for launching a successful career, whether you're a fresher or an experienced professional. In this article, we will cover the high-paying Excel jobs available in 2024, including crucial roles like data analyst, business analyst, and many more. We'll explore the qualifications needed for these positions, along with salary estimations to help you understand your earning potential. Whether you’re looking for Excel jobs for freshers or seasoned professionals, we’ll also dive into options for Excel freelancing jobs and work-from-home jobs in Excel. Equip yourself with the knowledge to excel in your career and take the first step toward a lucrative future! Table of Content Why choose a career in ExcelWhy Excel Skills Are Essential for Your CareerEssential Excel Skills Required to Boost Your Resume Best Microsoft Excel High-Paying JobsFinancial AnalystsData AnalystAdministrative Assistant Accountants Project ManagersManagement ConsultantRetail Store ManagersBusiness Analyst Market Research Analyst Supply Chain AnalystData JournalistsHuman Resources Analys
Read More

AI in Excel: Top 20 Excel AI Tools in 2025 (Free/Paid)

article_img
The integration of AI in Excel is transforming the way professionals manage, analyze, and visualize data. Whether you're handling large datasets, performing financial analysis, or automating repetitive tasks, AI-powered tools can significantly improve efficiency and accuracy. In 2025, advanced Excel AI tools are making complex tasks easier by offering features like data cleaning, predictive analytics, smart automation, and AI-driven insights. In this guide, we’ve gathered a list of the top 20 Excel AI tools for 2025 that are reshaping how users interact with Excel. Table of Content Best AI Tool in Excel: Top Picks for 2025Top 10 Free Excel AI Tools in 2025 AI in Excel: OverviewIn Excel, an AI tool (Artificial Intelligence tool) refers to an add-in or extension that leverages artificial intelligence to enhance your spreadsheet experience. These tools can automate tasks, improve data analysis, and generally make you more productive. Excel has always been a powerful tool for data analysis, but with the integration of AI tools, it has transformed into a smarter, more intuitive platform. Best AI Tool in Excel: Top Picks for 2025Explore the below AI tools designed for automated reporting
Read More

Excel VLOOKUP Function - Excel Guide for Beginners

article_img
How to do Vlookup in Excel - Quick StepsPrepare Your DataEnter the VLOOKUP Formula >>Press EnterUse a Cell Reference for Flexibility Copy the Formula for Multiple RowsThe VLOOKUP function is one of the most widely used tools in Excel for looking up and retrieving data from a table. Whether you’re working with a single sheet or multiple workbooks, VLOOKUP allows you to search for a value in one column and return a related value from another. If you're new to Excel or still getting the hang of formulas, this guide is for you. We will cover everything from the basics of how VLOOKUP works to practical examples that show how to search data across sheets, troubleshoot common issues, and master the VLOOKUP formula for any task. What is the VLOOKUP Function in ExcelThe term VLOOKUP stands for Vertical Lookup. It is designed to search for a specific value in the first column of a table (lookup column) and retrieve corresponding data from a different column in the same row. Syntax of VLOOKUP FormulaVLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])Arguments:1. lookup_value: The value you want to search for (e.g., a specific ID, name, or product code). 2. table_array: The
Read More
three90RightbarBannerImg