Forum Discussion
Regarding there is no defined relationship defined yet message while managing relationship
- 1 year ago
Hi Kiruthiga,
Thank you for reaching out to the Microsoft Fabric Forum Community.Thank you rohit1991 lbendlin, for your helpful insights.
To address the "no defined relationship" issue, creating bridge tables is an effective approach. Since Table1 contains duplicate keys (due to the granularity of Brand, PG, and Segment), it cannot be used directly in a one-to-many relationship with Table2 and Table3, which have unique keys.
While this approach is effective, there are some limitations you should be aware of:
- Adding bridge tables increases the complexity of your data model. You'll need to manage additional relationships, which could become harder to maintain as your model grows.
- The added relationships and more complex DAX queries could lead to slower performance, especially with large datasets.
- If relationships aren't correctly configured, it may lead to issues with filter propagation, causing inaccurate data. Ensure all relationships are set up properly and use DAX functions like USERELATIONSHIP if needed.
- Ensure your bridge tables contain only distinct values. If duplicates are present, it could impact the accuracy of your results.
- Be cautious of introducing many-to-many relationships, as they require careful management and may necessitate advanced DAX for correct behavior.
If this post helps, then please give us ‘Kudos’ and consider Accept it as a solution to help the other members find it more quickly.
Thank you
Sure I agree. Technically its a Scoresheet we are converting from Qlik to PowerBI. Table 1 has dimension and Metrics. Table2 and Table 3 only have metrics. Basically the Vendor's Brand,PG,Segment info in Table1, only PG info in Table2 and only Segment info in Table3. Since PG is level1,Segment is Level2 and Brand is level3, we have duplicates for PG and Segment in Table1 since it has more more granular level. however PG and Segment tables only have their entires once., The report should load the PG(table2) and Segment(table3) for the PG's and Segments exists in Table1 . The PG total(tbl2) and Segment total(tbl3) should reduce based on the filters (PG and Segment from table1)
Appreciate your thoughts!
Thank you!
Best,
Kiruthiga
- lbendlin1 year ago
Super User
Read about normalizing and pick a NF that will work for your scenario.