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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
saijesh123
Regular Visitor

SCD Type 2

Hi All,

given source table

customer idnamecity
1AXYZ
2BABC
3CKLM
4DADJ
5EJKL

 

Updates table

customer idnamecity
1AKKL
2BJJK

I have first table with data changes to city that are made to the data. by updates table
I want to implement scd type 2 in power bi and want to have the history of any changes made to the table .

help me with dax functions to use and track historical changes

5 REPLIES 5
Anonymous
Not applicable

Hi @saijesh123 ,

Is this issue solved now? If you have any questions, please feel free to share with us.

And don't forget to accept the answers if they helped. Your action would be helpful to other users who encounter the same issue and read this thread. 🙂

Thanks for your understanding!

Best regards,

Lucy Chen

uzuntasgokberk
Super User
Super User

Hello @saijesh123 ,

RADACAD shows you how to implement SCD Type 2 (one of the most common types) using Microsoft Fabric and Power BI. That explains well SCD Type2.
https://radacad.com/scd-type-2-in-microsoft-fabric-and-power-bi

Kind Regards,
Gökberk Uzuntaş

📌 If this post helps, then please consider Accepting it as a solution and giving Kudos — it helps other members find answers faster!

🔗 Stay Connected:
📘 Medium |
📺 YouTube |
💼 LinkedIn |
📷 Instagram |
🐦 X |
👽 Reddit |
🌐 Website |
🎵 TikTok |

saijesh123
Regular Visitor

EXPECTED OUTPUT

customer idnamecityFROMTO
1AXYZ01-01-200001-01-2001
2BABC01-01-200005-01-2001
3CKLM01-01-2000NULL
4DADJ01-01-2000NULL
5EJKL01-01-2000NULL
6AKKL02-01-2001NULL
7BJJK06-01-2001NULL
mark_endicott
Super User
Super User

@saijesh123 - You cannot do this with DAX, but this blog might help you do this using incremental refresh:

 

https://blog.crossjoin.co.uk/2020/04/13/keep-the-existing-data-in-your-power-bi-dataset-and-add-new-...

 

If this works, please accept as the solution, for others with the same challenge!

BeaBF
Super User
Super User

@saijesh123 Hi! wich is the expected output? 

 

BBF

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.