Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
mark_carlisle
Advocate IV
Advocate IV

Slowly Changing Dimension and linking to Fact table advice

I'm trying to wrap my head around creating a slowly changing dimension and joining said dimension to a fact table. I've been reading the Analyzing Data with Microsoft Power BI and Power Pivot for Excel book for the past few hours and its not clicking for me.

 

So the current situation is that we have a file that contains a list of everyone who works in the department and this is updated as an when it needs to. This is currently used as a dimension in reports and the main (and valid in my opinion) complaint from managers is that should one of their team switch to another team or area then all their historic figures go with them. This is obviously not ideal and I want to improve it.

 

I have a copy of the Excel file used and modified it to suit. This is an example of what it looks like;

 

VPManagerVPNameAreaManagerAreaNameTeamManagerTeamNameEmployeeEmployeeNumberAppIDEmployeeEmailAddressTeamManagerEmailAddressAreaManagerEmailAddressTeamMangerFromTeamManagerTo
Skye MossCustomer ServiceWill LloydWill Lloyd's CommunityRay BradleyAccounts 1 - Ray BradleyLeigh Matthews1234567123Leigh.Matthews@example.comRay.Bradley@example.comWill.Lloyd@example.com01/10/201730/09/2018
Skye MossCustomer ServiceJess WatsonJess Watson's CommunityEmerson BarrettAccounts 2 - Emerson BarrettLeigh Matthews1234567123Leigh.Matthews@example.comEmerson.Barrett@example.comJess.Watson@example.com01/10/2017 


So if the employee were to change team or area then we'd create a new row.

 

The book explains how to get the correct granularity of both the dimension and the fact and it this that I'm having the trouble with. I know I can just list all the months that each employee was in a team/area and then create a key of EmployeeNumber-Month (e.g. 1234567-10/2018, 1234567-11/2018...) but this would generate lots of rows that essentially are the same bar the month.

 

Essentially I'm looking for advice on how you all to this efficiently, any suggestions?

1 REPLY 1
v-cherch-msft
Employee
Employee

Hi @mark_carlisle

 

It seems you may check the relationships and cross-filter direction for your data. Here is the article for your reference.

 

http://radacad.com/temporal-tables-a-new-method-for-slowly-changing-dimension

 

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.