Forum Discussion
Creating multiple relationships between two tables
- 6 years ago
Hi, Anonymous
You may create a measure as below. There is no relationships between two tables. If you want relationships, you may create another same table to create realtionships. The pbix file is attached in the end.
Visual Control = IF( NOT(ISFILTERED(Responsibilities[Manager])), 1, IF( SELECTEDVALUE(Sales[Product]) in DISTINCT(Responsibilities[Product])&& SELECTEDVALUE(Sales[Region]) in DISTINCT(Responsibilities[Region]), 1,0 ) )Then you need to put the measure in the visual level filter to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, Anonymous
You may create a measure as below. There is no relationships between two tables. If you want relationships, you may create another same table to create realtionships. The pbix file is attached in the end.
Visual Control =
IF(
NOT(ISFILTERED(Responsibilities[Manager])),
1,
IF(
SELECTEDVALUE(Sales[Product]) in DISTINCT(Responsibilities[Product])&&
SELECTEDVALUE(Sales[Region]) in DISTINCT(Responsibilities[Region]),
1,0
)
)
Then you need to put the measure in the visual level filter to filter the result.
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.