Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Expert Data Modeling with Power BI - Second Edition

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

Product type Book
Published in Apr 2023
Publisher Packt
ISBN-13 9781803246246
Pages 698 pages
Edition 2nd Edition
Languages
Author (1):
Soheil Bakhshi Soheil Bakhshi
Profile icon Soheil Bakhshi

Table of Contents (22) Chapters

Preface Section I: Data Modeling in Power BI
Introduction to Data Modeling in Power BI Data Analysis eXpressions and Data Modeling Section II: Data Preparation in Query Editor
Data Preparation in Power Query Editor Getting Data from Various Sources Common Data Preparation Steps Star Schema Preparation in Power Query Editor Data Preparation Common Best Practices Section III: Data Modeling
Data Modeling Components Star Schema and Data Modeling Common Best Practices Section IV: Advanced Data Modeling
Advanced Data Modeling Techniques Row-Level and Object-Level Security Dealing with More Advanced Data Warehousing Concepts in Power BI Introduction to Dataflows DirectQuery Connections to Power BI Datasets and Analysis Services in Composite Models New Options, Features, and DAX Functions Other Books You May Enjoy
Index

Data Analysis eXpressions and Data Modeling

The previous chapter discussed that Power BI has different layers: data preparation, data modeling, and data visualization. This chapter discusses Data Analysis eXpressions (DAX), and their relationship to data modeling. Although data modeling and DAX are connected such that you cannot imagine one without the other, our goal in this book is not to focus only on DAX. Data modeling encompasses much broader concepts, while DAX is the expression language developers must use to implement business logic in the data model. We assume that you have an intermediate level of knowledge of DAX; therefore, we do not cover basic DAX concepts in this book such as DAX syntax. Instead, we focus on more advanced ones with hands-on scenarios.

This chapter covers the following topics:

  • Understanding virtual tables
  • Understanding relationships in virtual tables
  • Time intelligence

Understanding virtual tables

The concept of virtual tables in DAX is somewhat confusing and misunderstood, yet it is one of the most powerful and important concepts in DAX. When we talk about virtual tables, we refer to in-memory tables that we build using certain DAX functions or constructors. The data in a virtual table is either derived from the data within the data model or the data we construct for specific purposes.

Remember, whenever we use a DAX function that results in a table of values, we are creating a virtual table.

At this point, you may ask, so when I use a DAX function to create a calculated table, am I creating a virtual table? The answer is it depends. If you simply use a set of DAX functions that generate data or selectively load data from other tables into a calculated table, the answer is no: you have not created any virtual tables.

Nevertheless, when generating or loading the data from other tables, taking some table operations, and loading the results...

Feedback

We are constantly looking at improving our content, so what could be better than listening to what you as a reader have to say? Your feedback is important to us and we will do our best to incorporate it. Could you take two mins to fill out the feedback form for this book and let us know what your thoughts are about it? Here's the link: https://packt.link/v12v5.

Thank you in advance.

The previous chapter discussed that Power BI has different layers: data preparation, data modeling, and data visualization. This chapter discusses Data Analysis eXpressions (DAX), and their relation to data modeling. Although data modeling and DAX are connected such that you cannot imagine one without the other, our goal in this book is not to focus only on DAX. Data modeling encompasses much broader concepts, while DAX is the expression language developers must use to implement business logic in the data model. We assume that you have an intermediate level of knowledge of DAX; therefore, we...

Understanding virtual tables

The concept of virtual tables in DAX is somewhat confusing and misunderstood, yet it is one of the most powerful and important concepts of DAX. When we talk about virtual tables, we refer to in-memory tables that we build using certain DAX functions or constructors. The data in a virtual table is either derived from the data within the data model or the data we construct for specific purposes.

Remember, whenever we use a DAX function that results in a table of values, we are creating a virtual table.

At this point, you may ask, so when I use a DAX function to create a calculated table, am I creating a virtual table? The answer is it depends. If you simply use a set of DAX functions that generate data or selectively load data from other tables into a calculated table, the answer is no: you have not created any virtual tables. Nevertheless, when generating or loading the data from other tables, taking some table operations and loading the results into a calculated...

lock icon The rest of the chapter is locked
You have been reading a chapter from
Expert Data Modeling with Power BI - Second Edition
Published in: Apr 2023 Publisher: Packt ISBN-13: 9781803246246
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}