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
Anonymous
Not applicable

Hide Fact table dimension Keys??

Hi All

 

I was just wonderring what is best practice for fact table dimension keys?

Is it best practice to hide these?

I'm concerned that users will use the IDs in the fact tables rather than the actual dimension tables.

 

Any advice would be great.

 

Thanks

Mattie

1 REPLY 1
DataInsights
Super User
Super User

In my experience, there are two types of dimension keys.

 

1. System-generated keys are integers that typically have no intrinsic value. It's best to hide these in fact and dimension tables. These are assigned by source systems or an ETL process.

 

2. Dimension codes are used when system-generated keys aren't available. For example, if a Finance team prepares a budget, team members won't know the system-generated keys for dimensions such as Account and Department. Instead, they will assign budget amounts to dimension codes. In the model, the Budget table will be joined to the dimension tables based on codes rather than keys. In effect, the codes become keys. You can hide these codes in fact tables, but they should be visible in dimension tables.

 

If possible, hide the entire fact table. This will force users to use dimension tables and measures in their visuals. In some cases, fact tables contain attributes like Voucher Text that don't have a corresponding dimension table. Fields such as this may prevent hiding the fact table.

 

Further discussion on the topic can be found in the book The Data Warehouse Toolkit by Ralph Kimball.





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

Proud to be a Super User!




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.