Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Walt1010
Frequent Visitor

Match an incoming telephone number against 1 of 3 numbers in customer table

I have a list of incoming telephone calls, as well as a list of existing customers, each with telephone number fields (home, work and mobile). I wish to match the incoming number against any of the 3 customer numbers, per customer. If there is a match I'd like the Customer name returned, otherwise blank.

I could possibly achieve this by restructuring the customer file to Customer Name  -  Work number, Customer Name - Home number, Customer name - Mobile number as 3 rows, rather than Customer name - home number- work number- mobile number, as currently.

Are there any other possible solutions?

1 REPLY 1
Greg_Deckler
Super User
Super User

@Walt1010 Probably best if you unpivoted those 3 columns. Otherwise, you need MC Aggregations: Multi-Column Aggregations (MC Aggregations) - Microsoft Fabric Community

Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.