Forum Discussion
Tables Join
- 7 years ago
Hi sv11 ,
Based on your data sample, you could do some change for your CRM data model in Query Editor.
You could unpivot the columns for Phone1,Phone2,Phone3 and then rename the value to PhoneNo.
Then you could create the relationship between the tables with PhoneNo.
More details, you could refer to my attachment.
Best Regards,
Cherry
Hi v-piga-msft ,
Please see the 2 pics below:
1. Call Data - is the data from our phone systrem which tracks all calls made by sales team
2. CRM Data - is the contact information of our clients, source for sales team
Thanks
If the number of phone # columns is fixed you could try a calculated or custom column.
In Query editor it would something like PhoneKey = If Phone1 <> "" then Phone1 else if Phone2 <> ""....etc
In DAX you could use SWITCH()
Then join or lookup using the PhoneKey column.