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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
RicoP
New Member

Problem with Dimension and Datamodel

Hello,

I've been trying to get a sensible data model and calculations for weeks. I've been working with PQ for 2 years, but I can't get it right. The following scenario: I have several dimensions that build on one another hierarchically. This creates so many combinations that these test lines alone with 11 lines become 71 lines.

Screenshot 2023-06-10 140223.jpg

Screenshot 2023-06-10 140552.jpg

In the real data, however, there are an incredible number of combinations in Cat C/D/E, so that this ultimately results in a few GB in the data model.
So I have to manage to keep the data as small as possible and still be able to link the categories with each other, since pivot tables with slicers are ultimately required. Ultimately, I want to measure what percentage of the categories fall into which other categories.

Screenshot 2023-06-10 141935.jpg

I've tried synthetic keys and many others - I can't do anything because of the 1:N relationship in Excel Power Query. I really need help here.

Thanks for the help.
Rico

2 REPLIES 2
lbendlin
Super User
Super User

CatB (Sex) is independent, you can normalize that out.  For the other categories can you guarantee that each element only appears once in the hierarchy tree? Or are there duplicates?

Hello,

Thanks for the answer 🙂 Well, category A can have different items from category C (see line 3 and 4 in the screenshot). These, in turn, are different items from category D and E. Basically, the individual items result from E + D + C = A. However, there should be no duplicates per line (line 8). These will then be deleted. And yes, actually it's like a family tree where category a is the root and then it branches further down. It is then counted how many items from the lower nodes lead to which node above it.

So I despair because the amount of combinations then becomes 1000 (A) x 1-2 lines (C) x 1-10 lines (D) x 1-10 lines (E) with about 1000 lines. Quite apart from the fact that I can't connect the dimensions because there is no 1:n connection. So: Questions over questions.....

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

Find out what's new and trending in the Fabric Community.

Top Solution Authors