March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Here there are 4 tables Company, Fact Table, Dimension 01 & Dimension 02. The relationship are as follows:
1. Company[Company ID] -> Fact Table[Company ID]
2. Dimension 01[Field 1] -> Fact Table[Field 1]
3. Dimension 02[Field 2] -> Fact Table[Field 2]
Now my requirement is I want to filter Dimension 01 & Dimension 02 tables based on Companies. If I will delete
Company[Company ID] -> Fact Table[Company ID] relationship and then create relationship between
Company[Company ID] -> Dimension 01[Company ID] & Company[Company ID] -> Dimension 02[Company ID] then it will create circular dependency. So what will be the best approach to achieve this requirement?
Thank you in advance.
hey,
wiithout seeing the actual table wont be a much specifuc answer, for what you show on the diagram you can merge dimension table 01 and 02 into one containg those company id field 1 in one column and field 2 in another via power query merge function, delete the relantionships and create a relantionship between comapany and the new dimension table merged and them those to the fact table (making sure that dimension contains all Company ID even if others column keep blank data).
another approch would be making both dimension 01 and 02 bidirectional relantionship, not optimal for relantionship between fact and dim table but will do the trick.
if this helped please give some kudos and mark as solution for others to find,
for a better answer I would recommend posting a PBIX file with this case with dummy data on it to check and get better solution.
Proud to be a Super User!
@Angith_Nair there is one point which I would like to highlight for the option 1 suggest by @StefanoGrimaldi - if you merge the dimension tables into a single table, you will not be able to have an active relationship between the dimension & fact tables for each dimension and this might be a probllem for you when you use the dimensions as filters.
@StefanoGrimaldi please guide in case I have understood this incorrectly.
Thanks,
Vinay
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
126 | |
85 | |
69 | |
53 | |
44 |
User | Count |
---|---|
202 | |
106 | |
100 | |
64 | |
56 |