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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.