- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Unable to link a bridge table to multiple tables which each share the same column info
Hello All,
I'm having quite a bit of problems while trying to create a table with many-to-many relationships between various tables. These tables are only related to each other by 2 columns (Currency and Comp. Code). Ultimately, I would like to have a table filtered by Comp. code (seen on left) and aligned as seen below by currency (1st col.), with additional columns for amounts coming from each different table. In the photo below I filtered by a Comp. code, the 1st column of values (fbl5n..) is correct, but 2nd value column is incorrect and is summing the entire amount for the "AED" currency, as well as the remaining columns.
In this case I thought that creating a bridge table and making unique values for "Currency" would allow me to create a relationship and see the amounts for each given column, but there is something that I might be overlooking. (Pic Below)
Does anyone have any suggestions on what would be best to do in these circumstances? Also, consider that I will still need to add an additional 2-3 columns (will be new tables) with again the only relatable fields being Comp. Code and Currency.
Thank you in advance for your help!
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you add a CoCd table to your model and join all the tables into that as well as the Doc Curr table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @Anonymous,
From a high level you said that you have only two columns that relate to all other tables that contain numerical attributes which are (1) Currency & (2) Comp. Code.
Why have a Bridge Table, especially when you would want these Dimesnion attributes (Currency & Comnp. Code) to be used as filters. Instead create two new dimensions which will be called: (1) Dim Currency & (2) Dim CompCode. This will make your model more undertanding and clear, as now you have two Dimesnion Tables that can be used as filters and are not called 'Bridge'. Also, this will resolve the M:M issue.
Can you please try the above, therefore create those two dimesnions, then add the attributes of those two dimesnions in the Filter Pane and use them as so. If i understoof correctly this will resolve your issue.
I can look into this in more detail tomorrow.
Laz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Could you add a CoCd table to your model and join all the tables into that as well as the Doc Curr table?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello @jdbuchanan71
Looks like that cleared it up for me! The values per column and within the filter match correctly.
@Anonymous In this case I only needed to filter by company code, but the values on the table should be based on the currency.
Would this be considered best practice when you only have tables available to use with this many-to-many relationships? I know if possible it is better to avoid having a large amount of data in this way if you can.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is, yes. Your model should be made up of long and narrow fact tables and wider but much shorter lookup (bridge) tables. Tables like Dates / Employees / Locations / Currency / Company Code / Customers. Then you add attributes of say company code into that lookup table. Maybe things like Company Currency / COA / Language
Helpful resources
Join us at the Microsoft Fabric Community Conference
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Power BI Monthly Update - January 2025
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
Subject | Author | Posted | |
---|---|---|---|
08-12-2024 07:40 AM | |||
07-07-2023 12:20 PM | |||
07-16-2024 11:27 AM | |||
12-14-2023 11:09 PM | |||
Anonymous
| 03-13-2024 01:26 PM |
User | Count |
---|---|
122 | |
80 | |
47 | |
44 | |
35 |
User | Count |
---|---|
182 | |
83 | |
70 | |
47 | |
45 |