I have the list of Phone numbers and i need to do the Longest prefix match with DialCode range to get the Telecom Operators.
Can anyone help ?
Please share more details for your scenario so that we could help further on it.
I would appreciated it if you could share some data which could reroduce your scenario and your desired output.
I have a list of DialCode and it Operator. In Table 2 I have list of Phone numbers.
All i need to add a column in Table 2 , which will show me the which Operator they belong to.
Table 1 :
Table 2 :
Hope these details is fine.
For your scenario, I think Lookup value function could help you.
You could Spit columns in Query Editor to get the Area Sting num in Table 2 and Close and Apply.
Then you could use Dax formula like below to get your requirement.
Column = LOOKUPVALUE(Table1[Resolved Name],'Table1'[Area String],'Table2'[Num])
Hope this can make sense of you.
I want a Generic Solution. The dial codes are not 4 digits always. It can range from 1 to 11 Digits.
If you see your result below , 9374-15 should have got matched to "93" since 9374 is not there. But it is left Blank which is not expected.
Thanks in Advance.
Click here to read more about the December 2021 Updates!
Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.
Mark your calendars and join us for our next Power BI Dev Camp!