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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
SC_Mohan128256
Regular Visitor

Incremental refresh on SCD type 2 tables in Power BI

Greetings community.


Currently I’m working on a project where I have a SCD type 2 table which has more than 100+ millions of records of data.
The table structure looks as below. Because of data security issue I have shown only few records.

SC_Mohan128256_0-1723123249724.png

 

In the model, pbi_eligmember is the main table which used for every calculations and to be precise, BIEFFECTIVEDATE and BIENDDATE are the two columns which been used.

You can see the image below for reference.

SC_Mohan128256_1-1723123249731.png

 

Now the problem is,

  1. the table size is huge (100+Millions of records)
  2. It is a SCD type 2 table - new data getting added and the older date records may have an update at any time.
  3. As the number of calculations are increasing the performance of the report is low being the centered table all the filters and calculations flows through this.
  4. I cannot convert this table generating DATE column with the list of dates between for each GUID's BIEFFECTIVEDATE and BIENDDATE. because the table is already huge and if i do this then it is reaching to 500+Millions of records as the date ranges are long.

How to configure incremental refresh policies on SCD Type 2 tables ensuring the data refresh process correctly identifies and processes new and updated records which helps to managing historical data with effective date ranges.

 

Please help.

 

Thanks,

Mohan V.

 

1 REPLY 1
lbendlin
Super User
Super User

Incremental Refresh and SCD type 2 are largely incompatible as you are creating row duplicates (albeit with the changes).  You would have to create a process that filters out obsoleted rows and refreshes historical partitions accordingly.  Be clear that that WILL remove the history (which was the main reason for SCD 2 in the first place).

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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