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
richard-powerbi
Post Patron
Post Patron

How to add extra data to star schema when fact tables have numeric keys?

Let's say I have a star schema and I have created numeric keys from dimensions. I merge the dimensions with the fact table, I expand the numeric keys, and I remove the dimension - on which I merged - from the fact table.

 

These keys keep changing, depending on sorting, etc.

 

I let these tables be created with a dataflow (long refresh).

 

After that there will be many small Excel files created that have equal dimensions to the dimensions in the datamodel above. People will add facts in these Excel files.

 

Now I want to include this data in the data model, by allowing a refresh that doesn't refresh the underlying datamodel, but only adds the new facts from the Excel files to the datamodel. 

 

I do this by using the dataflow tables in power bi desktop and set them to not refresh when clicking refresh in the report. 

 

But how do I merge the data from the Excel files with the fact table from the data model? I only have numeric keys in the fact table, but I don't have these keys in the Excel files.

 

Or must I keep the dimensions in my fact table to be able to merge against in a later stage? I could hide them so it would still look like a clean fact table, but these extra columns feel like bloat... I don't want them.

 

Or do I create a different fact table for the Excel files and simply link it to the dimensions? This feels stupid as well, because they actually belong in the existing fact table.

 

Does anyone have an idea how to deal with this?

3 REPLIES 3
v-deddai1-msft
Community Support
Community Support

Hi @richard-powerbi ,

 

I agree with your first solution, this will not increase the complexity of the data model.

 

Best Regards,

Dedmon Dai

@v-deddai1-msft just to verify... so this one?

Or must I keep the dimensions in my fact table to be able to merge against in a later stage? I could hide them so it would still look like a clean fact table, but these extra columns feel like bloat... I don't want them.

Hi @richard-powerbi ,

 

Yes. Or someone else can have a better solution.

 

Best Regards,

Dedmon Dai

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.