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
I have a DimCustomer table (one key per row)… and I also use a Permit table that I created for RLS with also one customer key per row…
I have some doubts:
When I create the relationship (between Permit and DimCustomer, it defaults it as Many to One(*:1) , why is this? I thought the engine checked it had unique rows…
Anyway... I change it to One to One (1:1) and automatically the Filter Direction changes to << To Both Tables >> why is this?
I have this dax on the RLS:
=[PK_Customer] IN
SELECTCOLUMNS(
FILTER(
'Permit'
,' Permit'[UserName] = USERNAME()
)
,"Cust"
,' Permit' [DW_SK_Customer]
)
So I only intend the filter to be from Permit to DimCustomer, will having it as << To Both Tables >> create me any issues?
Solved! Go to Solution.
Hi @ovonel ,
Depends on the specific data model. When it is detected that a certain field in Permit has multiple rows corresponding to the unique field of DimCustomer. It is not possible to convert the relationship to one-to-one, as it will cause errors in the filter conditions. The many-to-one relationship does not affect the restrictions of RLS.
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ovonel ,
Depends on the specific data model. When it is detected that a certain field in Permit has multiple rows corresponding to the unique field of DimCustomer. It is not possible to convert the relationship to one-to-one, as it will cause errors in the filter conditions. The many-to-one relationship does not affect the restrictions of RLS.
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
128 | |
90 | |
75 | |
56 | |
53 |
User | Count |
---|---|
200 | |
104 | |
101 | |
67 | |
55 |