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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
twister8889
Helper V
Helper V

RLS error Join Paths are expected to Form a Tree.

HI guys,

 

I have an error when I trying to use the RLS by Field. I understand the error message but I don't know how to solve this problem, can you please help me?

 

I have a table RLS Login, here I have the user@company.com

I have the dim2 that has a Key field  ( the same key into RLS Login

I have a Link table to connect the two facts tables ( I have measure1 and measure2 that using the cross filter both )

 

The error message is about the Link table and Fact1, Link table, and Fact2.

---If I change the relationship between the Link table and Fact1, Fact2 the problem is solved,

I think that is not a recommended solution.

 

Any suggestion to solve this problem?

 

This is my RLS CODE:


VAR _Code =

CALCULATETABLE (
VALUES (RLS_Login[Department]),
RLS_Login[Login] = USERNAME()
)
RETURN
OR(
"all" IN _Code,
dim2[Department] IN _Code
)

 

 

 

 

 

RLS Error.png

 

3 REPLIES 3
Bi2thelly
Helper II
Helper II

Has there been a resolution to this? I have a similar issue with RLS and geting the error when using two fact tables with a linked table in between.

Anonymous
Not applicable

Hi @twister8889 ,

 

According to my test, I think your issue appears in the direction of the two tables in the red circle in the figure below.

10.png

 

RLS login table flows to dim2 table, so that the row results filtered by RLS will be correct.

 

Best Regards,

Stephen Tao

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

First of all,, thank you for your answer..

 

I needed to change the direction. Now, I have both, but the problem continue. When I inserted the Measure from table 1 and measure from table 2 into the same visual table, I have the error.

 

Join Paths are expected to Form a Tree.

 

Do I need to change my measures?

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.