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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

Data model issue

https://drive.google.com/drive/folders/1wekC76qUasF5u9YofANlMNXYu09-nmuK 

This link contains folder with excel data source and mockup and requirements so you can understand better.

Sales is fact tables and others are dimension tables. I am unable to connect customer table, reseller table and sales table. Which relationship and cardinality to use? There are no related keys in sales fact table for customer table. Please provide solution. If you have any question ask me.

3 ACCEPTED SOLUTIONS
Irwan
Super User
Super User

hello @Anonymous 

 

i would do something like below

Irwan_0-1744083168249.png

all relationship are one-to-many with single filter

Sales - Customer using CustomerKey

Sales - Reseller using ResellerKey

Irwan_1-1744083286074.png

the relationship between date and sales is quite tricky since you have three datekey in sales table.

i use OrderDateKey in sales table to connect DateKey in date table (however, this depends on your outcome result).

 

Hope this will help.

Thank you.

View solution in original post

hello @Anonymous 

 

i might be misunderstood your question but i believe it should be fine.

as far as my knowledge, relationship takes same value to connect two tables.

so -1 will be connected to -1 as well.

Also since your reseller is a dim table, the relationship will be one-to-many then it will connect -1 in reseller to all -1 in sales.

 

Hope this will help.

Thank you.

View solution in original post

hello @Anonymous 

 

that is depend on your need.

have those -1 data reviewed, if you dont need those data, then you can remove it (either remove it in PQ or visual filter in PBI). Removing in PQ will make the data disappear in PBI while visual filter only filter out those data from visualization.

Hope this will help.

Thank you.

View solution in original post

6 REPLIES 6
Irwan
Super User
Super User

hello @Anonymous 

 

i would do something like below

Irwan_0-1744083168249.png

all relationship are one-to-many with single filter

Sales - Customer using CustomerKey

Sales - Reseller using ResellerKey

Irwan_1-1744083286074.png

the relationship between date and sales is quite tricky since you have three datekey in sales table.

i use OrderDateKey in sales table to connect DateKey in date table (however, this depends on your outcome result).

 

Hope this will help.

Thank you.

Anonymous
Not applicable

hello @Anonymous 

 

i might be misunderstood your question but i believe it should be fine.

as far as my knowledge, relationship takes same value to connect two tables.

so -1 will be connected to -1 as well.

Also since your reseller is a dim table, the relationship will be one-to-many then it will connect -1 in reseller to all -1 in sales.

 

Hope this will help.

Thank you.

Anonymous
Not applicable

Is it ok if we delete -1 row from both dimension tables and use? Because -1 row in dimension tables looks bad with no data,but at the same time there are many rows related to -1 in fact table. Which will be big data loss

What should we do at this situation?

1. Delete -1 row in both dimension tables?

2. keep everything as it is?

hello @Anonymous 

 

that is depend on your need.

have those -1 data reviewed, if you dont need those data, then you can remove it (either remove it in PQ or visual filter in PBI). Removing in PQ will make the data disappear in PBI while visual filter only filter out those data from visualization.

Hope this will help.

Thank you.

Anonymous
Not applicable

prathmeshb27_0-1744084748907.png

Reseller

prathmeshb27_1-1744084787094.png

Customer

prathmeshb27_2-1744085361403.png

prathmeshb27_3-1744085403646.png

Sales Table

1. Your logic is correct but what can we do about -1 in all tables? Customerkey & resellerkey

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors