Forum Discussion
Many to Many Relationship
- 8 years ago
Hi everbody,
got the solution. First problem was to choose the wrong "offerID"-column to get a relationship.
I created a unique ID in the Pricelist concatenate with OfferID + Month(ValidFromDate) + Year(ValidFromDate).
Thanks for replies and help.
Thanks for fast reply, but i didn't get you.
How can I set up a calculated column with the price if the relationship don't exists???
Ah sorry,
I thought you already had the relationship.
Then you have to create a 'link table'. What you probably need in this link table:
- OrderId
- PartnerId
- Startdate
All defined as primary key. Then link to your other tables. Then your many-to-many relationship becomes one-to-many and one-to-many
- EMGI8 years agoFrequent Visitor
My problem is how to create a link table with the values of the other two tables?
Which columns i need in the link table to get going on with the calculation?
I think the table has to be dynamically updated every time a new OfferID and a new price is inserted, or am i wrong?
- Anonymous8 years agoNot applicable
HI EMGI,
You can try to create calculated table with 'Union' and 'DISTINCT' functions to merge columns and get unique id.
Sample formula:
Link Table = DISTINCT ( UNION ( VALUES ( calculated[OFFER ID] ), VALUES ( Pricelist[OFFER ID] ) ) )Regards,
Xiaoxin Sheng
- EMGI8 years agoFrequent Visitor
Anonymousthank you for reply.
I created the linked table according to your explanation above.
I create a table with OfferName of the calculated table and the List Price of Pricelist. If i choose "don't summarize" i get the error message "can't display the visual".
What do i have to do to create a visual with the correct list price for each OfferName( Product) ?
Hope you can help me, Anonymous