Forum Discussion
relationships across multiple columns
- 8 years ago
Hi pjpreddy2,
You can first unpivot Table 2 in Query Editor mode.
Then, you can refer to the Sell Date in Table 1 via LOOKUPVALUE function.
Sell Date = LOOKUPVALUE('Table 2'[Sell Date],'Table 2'[ID Numb],'Table 1'[ID Numb])Best regards,
Yuliana Gu
So, what are those other ID numbers? Are they also in Table1? If not, you could potentially use LOOKUPVALUE to essentially flag which one actually exists in Table1 and return that value. Then you could potentially create a relationship between them provided that you don't run into a circular dependency.
Greg_Deckler, that's good question about the product ID's, you witnessing the marriage of two old systems where there were muliple product ID, en lieu of keeping 1 standard product ID instead of changing constantly.
v-yulgu-msft, thank you for the solution, I forgot about unpivoting the data, this will be a big help and get me where I need to go.
Thanks guys!