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
amylewisAZ
Frequent Visitor

Multiple Many to Manys in model (multiple many to manys with a dimension) and related facts

Hello!

 

I am working on an analytic model for a non-profit dealing with Grants.  This has some multiple many-to-many scenarios that seem to be frustrating Power BI in the way I set it up. (saying there are no relationships) I tried to use a Kimbal-like approach with a bridge(factless fact)

 

Business Scenario:

A Grant has a ID, name, and other attributes (type, etc)

A Grant is associated to 1:M Countries  (Area is another Dimension)

A Grant can have 1:M Donors (Donors is another dimension)

2 bridge tables exist:  BridgeGrantArea and BridgeGrantDonor

 

Fact exists when a grant is awarded.  It is awarded for that GrantDonor Bridge.  Another Fact adds Yearly snapshots for GrantImplementationBudgeting Details (still at GrantDonor level).

 

DImDonor -> BridgeGrantDonor -> DimGrant -> BridgeGrantArea -> Area

FactGrantAward (GrantKey,DonorKey( (or use the BridgeGrantDonorKey),ApprovedBudgetAmt, etc...)

FactGrantImplementation   (Year,GrantKey,DonorKey( (or use the BridgeGrantDonorKey),ActualImplementationBudgetAmt, etc...)

 

They are wanting to see things like

Country, # of Donors

Donors # Grants per county

Drill down table with Grant, country, donor......

 

Any ideas how to make this happen?  I tried messing with the bi-directional filtering and also building another separate fact of Grant Area Donors, ut the additional facts with GrantDonor is frustrating the model more. (and me! :-))

 

Any advice is greatly appreciated!

-Amy

 

3 REPLIES 3
AllisonKennedy
Super User
Super User

@amylewisAZ  I would try to get 1:many on all relationships where possible. I'm not clear on how area fits in based on your description, but am mapping out something. Does this make any sense with the tables you have? All relationships are 1 to many with 1 on the top, many on the bottom of the two tables.

 

AllisonKennedy_0-1608541191606.png

 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

 

Here is an example of themodel I am looking at.  It has the 1:M's using Bridge/Factless facts between the dimensions.  

 

When I try to build a simple table visual of CountryName, DonorName, GrantName, Power BI errors saying it can't determine the relationship.  I have tried changing the filtering to no avail. 

 

 

2020-12-21_10h55_08.png

@amylewisAZ  Fact GrantArea does not filter Dimension Grant, and therefore DimArea does not filter Fact GrantDonor. You could try setting both direction for FactGrantArea to Dimension Grant, but that will make it a truly many to many relationship, at least in one direction. https://excelwithallison.blogspot.com/2020/08/its-complicated-relationships-in-power_92.html 


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

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!

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.