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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
Giada90
Helper III
Helper III

problem with relation between tables

Hi,

I have relation between a lot of tables, all bidirectional, but if I put some fields of different tables on a table object it says that it's not possible to establish relation between more fields, why?

The relations are ok and the tables are correctly related, how can I do?

Thanks

1 ACCEPTED SOLUTION
v-cgao-msft
Community Support
Community Support

Hi @Giada90 ,

 

As the error describes, the reason is that the two fields are built without a proper relationship to filter.

I created three tables for testing:

vcgaomsft_0-1659405820071.png

Relationships:

vcgaomsft_1-1659405866058.png

When we drag the customer field and the product field into the visual form and set them to not aggregate, the same error is displayed:

vcgaomsft_2-1659405926827.png

This is because [customer] does not have any relationship with [product], such as one-to-one or one-to-many. They can just both filtered by 'Date'[Date](one-to-many).

 

If you need to relate to the many-to-many dimension,please refer:

Many-to-many relationship guidance

 

After adding the unique identifier (ID) column for each order:

vcgaomsft_4-1659406947968.png

vcgaomsft_3-1659406918440.png

 

Power BI is designed to work with a Star Schema, and a good model is half the battle. 

Understand star schema and the importance for Power BI

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

View solution in original post

3 REPLIES 3
v-cgao-msft
Community Support
Community Support

Hi @Giada90 ,

 

As the error describes, the reason is that the two fields are built without a proper relationship to filter.

I created three tables for testing:

vcgaomsft_0-1659405820071.png

Relationships:

vcgaomsft_1-1659405866058.png

When we drag the customer field and the product field into the visual form and set them to not aggregate, the same error is displayed:

vcgaomsft_2-1659405926827.png

This is because [customer] does not have any relationship with [product], such as one-to-one or one-to-many. They can just both filtered by 'Date'[Date](one-to-many).

 

If you need to relate to the many-to-many dimension,please refer:

Many-to-many relationship guidance

 

After adding the unique identifier (ID) column for each order:

vcgaomsft_4-1659406947968.png

vcgaomsft_3-1659406918440.png

 

Power BI is designed to work with a Star Schema, and a good model is half the battle. 

Understand star schema and the importance for Power BI

 

Best Regards,
Gao

Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly -- How to provide sample data

Thanks!

 

MahyarTF
Memorable Member
Memorable Member

Hi,

Are you use measure in your visual ?

Would it be possible to share your sample PBIX here ?

Mahyartf

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

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.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.