Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Scenario: Our app/database holds bank loans, and many lenders can be assigned to one loan, and many loans can be assigned to one lender. A pretty classic many-to-many set-up I think. What we need our model to do is:
Track how much each lender is allocated to each loan. We have the loan data, and the allocation for each loan by lender. We are pulling the data from our transactional DB, passing it through ETL and staging in Snowflake, so we have some flexibility in how we model it.
In the attached .pbix I have modeled two scenarios:
Scenario 1: store the notional for each loan at the allocation grain. This seems to work ok, but not sure I love have multiple records for each loan, when its really just one loan allocated out.
Scenario 2: using a bridge table, and creating a lender group, which is an ID assigned to every unique group of lenders. I stole this design from here (https://www.nuwavesolutions.com/bridge-tables-deep-dive/), but then not sure how to write measures to show loans allocated, it seems like the joins might have to be bi-directional, or use crossfilter in the measure?
The last wrinkle: the lender allocation mix can change over time, where some lenders might drop or others be added, or the lenders say the same and the percentage changes, so also trying to figure out where to best to incorporate the slowly changing dimension as well.
Any guidance would be appreciated!
https://drive.google.com/file/d/1DWsBDk_U2nHQOUB8pbxZ9KF6JHvc86lf/view?usp=sharing
Hi @ecoast16 ,
Sorry for that the information you have provided is not making the problem clear to me.
There are too many tables in your pbix file and professional vocabulary which make me a little confused.🤔
It is suggested provide more concise sample data and show me the final expected output you want.
Please firstly refer to this blog on How to Get Your Question Answered Quickly
Refer to:
https://exceleratorbi.com.au/many-many-relationships-dax-explained/
https://docs.microsoft.com/en-us/power-bi/guidance/relationships-many-to-many
https://community.powerbi.com/t5/Desktop/DAX-RELATED-with-MANY-TO-MANY-RELATIONSHIP/m-p/606638
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
81 | |
76 | |
61 | |
37 | |
33 |
User | Count |
---|---|
99 | |
56 | |
50 | |
42 | |
40 |