Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello everyone,
I have a problem that needs to be solved. I need to be able to compare two columns in two different tables and see if there are similar strings within those two columns. So for example if I would like to compare a list of my friends to the most wanted lists of the FBI, I could do that.
So the pseudo code would look something like this:
For name in name_column in myfriends_table:
Compare the similarities of every name in myfriends[name_column] to the FBI's most wanted list name_column
return values that have similarities over 40%
Below I have a demonstration for my issue.
My Friends
Name |
TJ Watt |
Minkah Fitz |
Juju Smith-Schuster |
Big Ben Roeth |
FBI's Most Wanted
Name |
TJ Hatt |
Juju Smith-Schuster |
Juju Smith |
Cam Heyward |
Big Ben Roeth |
Results table
My Friends Name | FBI's Most Wanted Name | Similarity |
TJ Watt | TJ Hatt | 83,333% |
Juju Smith-Schuster | Juju Smith-Schuster | 100% |
Juju Smith-Schuster | Juju Smith | 46,67% |
Big Ben Roeth | Big Ben Roeth | 100% |
Is it possible in dax?
Kind regards,
Jeppe
Solved! Go to Solution.
Hi @Anonymous ,
You'd better first create a summarized table such as below:
As if you directly compare the characters from 2 tables,the calculation would be created in the table below:
After you get a summerized table,you could refer to below similar thread to realize what you need.
https://community.phttpsi.com/t5/Deskpowerbipare-t5o-strings-for-similarity/m-p/290062
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
Have you checked my answer? Is your problem solved?
Saludos
Kelly
Have I answered your question? Mark my position as a solution!
Have you checked my answer? Is your problem solved?
Saludos
Kelly
Have I answered your question? Mark my position as a solution!
Hi @Anonymous ,
You'd better first create a summarized table such as below:
As if you directly compare the characters from 2 tables,the calculation would be created in the table below:
After you get a summerized table,you could refer to below similar thread to realize what you need.
https://community.phttpsi.com/t5/Deskpowerbipare-t5o-strings-for-similarity/m-p/290062
Best Regards,
Kelly
Did I answer your question? Mark my post as a solution!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
76 | |
72 | |
56 | |
38 | |
35 |
User | Count |
---|---|
83 | |
68 | |
59 | |
46 | |
45 |