Reader small image

You're reading from  Expert Data Modeling with Power BI - Second Edition

Product typeBook
Published inApr 2023
PublisherPackt
ISBN-139781803246246
Edition2nd Edition
Right arrow
Author (1)
Soheil Bakhshi
Soheil Bakhshi
author image
Soheil Bakhshi

Soheil Bakhshi is the founder of Data Vizioner and is a sought after BI consultant. Working in data and analytics for more than 20 years, Soheil's experience lies in Microsoft BI, Data Warehousing, and Power BI platform. He possesses MSCE, MCSA certifications and is a Microsoft MVP (Most Valuable Professional). He has a passion for sharing knowledge via his website and speaking at conferences and Power BI community events locally and globally. In following his desire for simplicity and efficiency, he is behind Power BI community tools and commercial products such as Power BI Exporter and Power BI Documenter.
Read more about Soheil Bakhshi

Right arrow

Define key columns in queries

One of the most important aspects of a relational database is defining key columns. The key columns are the columns used to define a relationship between two tables. The key column(s) in a table guarantees the uniqueness of each row of data. The key column guaranteeing the uniqueness of each row within a table is the primary key. The primary key of a table appearing in another table is called a foreign key. In many cases, a single column does not guarantee the uniqueness of rows, but the so-called Composite Key does by considering multiple columns as key columns. The xVelocity engine in the data model layer, as we discuss in more detail in Chapter 8, Data Modeling Components, does not support composite keys, but the Power Query engine does. By defining the key columns in the Power Query Editor, we get some performance gains in refreshing the data, especially when merging two tables. We discussed merging tables in Chapter 5, Common Data Preparation Steps...

lock icon
The rest of the page is locked
Previous PageNext Page
You have been reading a chapter from
Expert Data Modeling with Power BI - Second Edition
Published in: Apr 2023Publisher: PacktISBN-13: 9781803246246

Author (1)

author image
Soheil Bakhshi

Soheil Bakhshi is the founder of Data Vizioner and is a sought after BI consultant. Working in data and analytics for more than 20 years, Soheil's experience lies in Microsoft BI, Data Warehousing, and Power BI platform. He possesses MSCE, MCSA certifications and is a Microsoft MVP (Most Valuable Professional). He has a passion for sharing knowledge via his website and speaking at conferences and Power BI community events locally and globally. In following his desire for simplicity and efficiency, he is behind Power BI community tools and commercial products such as Power BI Exporter and Power BI Documenter.
Read more about Soheil Bakhshi