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
Rajalaxmi
New Member

Derivation of SCD type 2 history table from type 1 and Audit table.

Hello,

We are having a requirement to derive historical table from type 1 and Audit table as per below.

Please let us know whether such requirement is feasible with Power BI .

 

Employee Table        
IDFirstNameLastNameDesignationAccount NamePhone No.Year  
1ShreekaraTantryASOCTF99092017 For Example:- We have Employee table having employees records.
2RajalaxmiPradhanITACovance11042017  
         
         
         
         
         
         
Audit Table        
TableColumnIDOld ValueNew ValueDate  We have Audit table having all changes records with date.If we have changed three values tehn in Employee table ,then in Audit table it will appear with three different rows.
EmployeeDesignation1ITAAST2011   
EmployeeDesignation1ASTASOC2014   
EmployeePhone21234599092017   
EmployeeAccount3JNJTF2017   
         
         
         
Requirement        
IDFirstNameLastNameChange in column NameChange in column NameChange in column NameDate In our requirement we need one report having all the changed values of different columns of one ID in one row.
1ShreekaraTantryASOCTF99092017  
1SreekaraTantryASOCJNJ123452017  
1SreekaraTantryASTJNJ123452014  
1SreekaraTantryITAJNJ123452011  

 

 

 

Regards,

Rajalaxmi Pradhan

 

1 REPLY 1
v-qiuyu-msft
Community Support
Community Support

Hi @Rajalaxmi,

 

Does the ID column in Audit table match with ID column in Employee table? If it does match as the red section in those two tables, those two columns shouldn't be returned for the employee Shreekara as red section. Please double check the table data and clarify the requirement. 

 

q2.PNG

 

Best Regards,
Qiuyun Yu 

Community Support Team _ Qiuyun Yu
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.