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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Relationship between these two fact tables?

Hi,

 

ich have on one side a wager. That is my first fact_wagers. It has attributes like:

  • wager_id
  • first_product_id
  • second_product_id

 

One the other hand I have a fact for the winnings: fact_wins. This occurs later than the wager got created. 

It has attributes like:

  • wager_id
  • win_amount
  • product_id

 

The relationship between them is 1:n , because one wager could have multiple winnings, because of his first and second product. One win in the first_product is related to one row in the winnings. A win in the second_product creates another row. 

 

How would you join those facts?

Make a dim_wager_id as a degenerated dimension, because I would need that for filtering?

 

Cheers

 

 

1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check if the attachment could meet your requirements:

wager.PNG

 

There are some transformations in Power Query Editor.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Icey
Community Support
Community Support

Hi @Anonymous ,

 

Please check if the attachment could meet your requirements:

wager.PNG

 

There are some transformations in Power Query Editor.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

HashamNiaz
Solution Sage
Solution Sage

Hi @Anonymous !

 

I would model this slightly different;

 

Dimesnion:
DimWager (Unique WagerID)

DimProduct (Unique ProductID)

 

Fact: (Bridging Table)

FactWagerProductWins (WagerID, ProductID, WinAmount) - Wager can have multiple ProductID, you don't need to create separate column for each ProductID

 

Relatiionships:

1 - Many between DimWager - FactWagerProductWins (based on WagerID)
1 - Many between DimProduct - FactWagerProductWins (based on ProductID)

 

This will remove the of separate FactWager (which has only WagerID & ProductID mappings)

 

Regards,

Hasham

Anonymous
Not applicable

That is interessting. In which cases you are able to design a fact_table as a dimension_table? 

 

I mean a wager is in this context a business event, which a customer produces. I never thought about to design this a dimension. Is it allowed to insert a lot of entries to a dim_table? 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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.