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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Lukeh1
Helper I
Helper I

Product dimension where some records are actually product categories

I have a product dimension that for most of its unique product keys, represents an individual product. But it also has some unique product keys that actually represent a group of products. 

this is because the model has two fact tables, one for sales at product and day granularity and another for budgets at product category and day level (It doesn't go down to individual product level just the category). The idea being that both facts can join on product key even though they are actually different granularities. 

I suspect this is a fundamental flaw in the model design and would be inclined to create a new dimension named budget product category that has the category key and then add this to both fact tables (based on associated product category ID from the budget fact and the product category that is associated with the product in the sales table)

 

I just wanted to ask, has anyone else encountered this and if so what approach did you take to resolve? Also, can a single dimension table have individual records at different hierarchical levels (product & product category) where they all appear at face value to be products?

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

it is possible to work with ragged hierarchies, but it is not pleasant.  You should try to find ways to avoid that (for example by filling down or up).

View solution in original post

1 REPLY 1
lbendlin
Super User
Super User

it is possible to work with ragged hierarchies, but it is not pleasant.  You should try to find ways to avoid that (for example by filling down or up).

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors