Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Be 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

Reply
ovonel
Post Prodigy
Post Prodigy

Why defaults to << To Both Tables >> in 1:1 relationships?

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?

1 ACCEPTED SOLUTION
v-henryk-mstf
Community Support
Community Support

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.

v-henryk-mstf_0-1622788468670.png


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.

View solution in original post

1 REPLY 1
v-henryk-mstf
Community Support
Community Support

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.

v-henryk-mstf_0-1622788468670.png


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.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.