Forum Discussion
Can not create visual (table) from 2 related table that connect properly (I think)
- 10 years ago
Based on my test, the problem is caused by the relationship among tables. If the relationship is 1:1,1:1 among the three tables, the original table visual in your pbix would work.
In your case(many:1,many:1), use two measures instead.MAX INV DATE = MAX(INVOICES[INV DATE]) MIN SALES DATE = MIN(SALES[SALES DATE])
If you have any question, feel free to let me know.
nirrobi Can you post some sample data of your tables?
So we can see how the tables are organized and how they are related?
Also do you have a Calendar table?
- nirrobi10 years ago
Helper V
Sure,
Hope it will help.
I have one table for invoices (with duplicate), one table for sales (with duplicate).
and I create in power bi desktop append query with remove duplicate.
then I try to connect the sales ID with date of invoice and date of sale and got the attached error
thanks.
- Eric_Zhang10 years ago
Microsoft Employee
Regarding the error in the picture, the documentation online says
- You are trying to use two or more fields from tables that are not related. You need to remove the unrelated fields from the visual and then create a relationship between the tables. Once you have done this, you can add the fields back to the visual. This can be done in Power BI Desktop or Power Pivot for Excel. Learn more
Please try to follow the above recommendation.
By the way, how do you append query with remove dulicate? And why do you connect those tables via date columns? Based on my understanding, those tables are linked by the SALESID.
- nirrobi10 years ago
Helper V
thanks for your reply.
I read the documantation but no help. I think is not my case.
append query - yes with remove duplicate else it not working.
conncection is indeed sales ID to sales ID to sale id no date in the relation ship.
I try to make table of sales id -sales date - inv date