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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
emsrc
Frequent Visitor

Incremental refresh and dimension table surrogate keys

Hello,  I need to know if the Power BI dataflow incremental refresh feature is able to help with this scenario.  I am building a star schema with a dimension table called Client.  The Client table grows as new clients sign up for our service.  Since it's a dimension table, I want to create a surrogate key for each Client row.  I would like to use the PBI dataflow Incremental Refresh feature to only add the new Client rows to the Client dimension table.  What I don't understand is if/how the surrogate key column will be managed with Incremental Refresh.  I can mark the surrogate key column to be the primary key in PBI.  Does that mean it will auto-increment the surrogate key for the new rows?  I don't want the surrogate keys for the existing rows to change since I'd then have to reprocess all of the fact tables.  Using previous ETL tools, I've handled this by creating an auto-incrementing, primary key column in a data warehouse  and simply inserted the new rows into the dimension table.  Is this what Incremental Refresh does behind the scenes?  Or is it not meant to handle this case.

 

Any insight you can provide would be very helpful.

Thanks,

Ed

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @emsrc 

 

The Power BI Incremental refresh can only be used on a column with Date/Time format. What you could do is to have an insert date on your dimension table.

 

Then use this Insert date to incrementally process the latest N days. And still use the surrogate key on your dimension to fact table relationships?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
GilbertQ
Super User
Super User

Yeah that is what I thought hopefully that will help you.





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

emsrc
Frequent Visitor

@GilbertQ, thanks.  I can definitely add a date/time column to the dimension table.  I suppose I'll have to manage the starting index value using a parameter myself, but that shouldn't be a big deal.

GilbertQ
Super User
Super User

Hi @emsrc 

 

The Power BI Incremental refresh can only be used on a column with Date/Time format. What you could do is to have an insert date on your dimension table.

 

Then use this Insert date to incrementally process the latest N days. And still use the surrogate key on your dimension to fact table relationships?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

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.