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

Dealing with More Advanced Data Warehousing Concepts in Power BI

In the previous 11 chapters, we learned about various aspects of data modeling to model many different scenarios. This chapter focuses on implementing more advanced data warehousing concepts in Power BI, which become handy in more complex real-world scenarios. This chapter covers the following areas:

  • Dealing with slowly changing dimensions (SCDs)
  • Dealing with degenerate dimensions

Dealing with SCDs

The term slowly changing dimensions, or in short, SCD, is a data warehousing concept introduced by the amazing Ralph Kimball. You can learn more about Ralph Kimball here: https://www.kimballgroup.com/about-kimball-group/.

The SCD concept deals with moving a specific dataset from one state to another. Let us look at SCD in more detail with a scenario.

The Adventure Works organization has a human resources (HR) system in which its data is captured in the organization’s data warehouse. Stephen Jiang is a Sales Manager with 10 sales representatives on his team. The source for this scenario is the AdventureWorksDW2019 database, which you can download from here: https://learn.microsoft.com/en-us/sql/samples/adventureworks-install-configure?view=sql-server-ver16&WT.mc_id=DP-MVP-5003466.

The following image shows the sample data for our scenario:

Table  Description automatically generated

Figure 12.1: Stephen Jiang is the sales manager of a team of 10 sales representatives

Brian...

Dealing with degenerate dimensions

The term “degenerate dimension” was coined by the amazing Ralph Kimball. Learn more about the Kimbal Group here: https://www.kimballgroup.com/.

The Kimball Group refers to Webster to define the meaning of the term “degenerate” as follows:

According to Webster, “degenerate” refers to something that’s 1) declined from the standard norm, or 2) is mathematically simpler.

Read the full article here: https://www.kimballgroup.com/2003/06/design-tip-46-another-look-at-degenerate-dimensions/.

From a Star Schema standpoint, degenerate dimensions are the dimension key attributes appearing in the fact tables without having their own dimension. In other words, we do not create a separate dimension table for them. But as we know, from a Star Schema perspective, it is not a good practice to put dimension attributes in the fact tables. So a degenerate dimension, according to Webster’...

Summary

In this chapter, we learned about the concept of SCD and how to implement some related scenarios. We also learned more about degenerate dimensions and how to deal with them in our data models in Power BI. The next chapter explains the purely cloud-based data transformation capability in Power BI called Dataflows.

Join us on Discord!

Join The Big Data and Analytics Community on the Packt Discord Server!

Hang out with 558 other members and enjoy free voice and text chat.

https://packt.link/ips2H

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 2023Publisher: PacktISBN-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.
undefined
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

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