Forum Discussion
Problem with If statement with text across tables
I am coming over from Tabluea, and am stuck on an If Statement - I have a transaction table "Sheet1" with a unique customer id for each transaction that has a "market sector description" with one of four values: Muni, Mtge, Corp, or Govt. I have another customer table, linked to sheet1 by the same unique customer ID that has columns named Muni Cov, Mtge Cov, Corp Cov and Govt Cov, these columns each contain an alpha numeric code. What I am trying to do is this - if the transaction has a "market sector description" of 'Corp" I want to display the alpha numeric value from the 'Corp cov" column in the salesperson table, if it is a "Mtge" then pull the value from the "Mtge cov" column. In excel it would be easy.... here I am stuck. The same customer id can be on multiple transactions with different sector descriptions.
2 Replies
- amitchandakSuper User
Anonymous ,Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
See if these can help
refer 4 ways to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8 - v-easonf-msftCommunity Support
Hi, Anonymous
Not sure about your needs, please share sample data and your expected results.
You can try the lookupvalue function to create calculated columns.
Best Regards,
Community Support Team _ Eason