Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I have two tables as below with common attribute as ID.
I wanted to compare names column from two tables if they match or not. Data in the columns are comma seperated values and can be present anywhere,
ID | parent Names |
1 | Apple, Orange |
2 | Lemon,grapes, Fruit |
3 | Hello, Fridge, Door |
4 | balcony |
6 | tree, time |
ID | Family Names |
2 | Fruit, Lemon, Grapes |
3 | fridge, hello, Door |
6 | tree |
Outcome :
ID | Match result |
1 | no match |
2 | true match |
3 | true match |
4 | no match |
6 | partial match |
Solved! Go to Solution.
Hi @sanjanarama ,
For this kind of output, judging by looping through the string may not be possible in powerbi. However, you can use a function like find to find out if the corresponding field exists in the list.
1 =
IFERROR ( FIND
( "Apple",
Table1[parent Names] ),
BLANK ()
)
&&
IFERROR ( FIND
( "Orange",
Table1[parent Names] ),
BLANK () )
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @sanjanarama ,
For this kind of output, judging by looping through the string may not be possible in powerbi. However, you can use a function like find to find out if the corresponding field exists in the list.
1 =
IFERROR ( FIND
( "Apple",
Table1[parent Names] ),
BLANK ()
)
&&
IFERROR ( FIND
( "Orange",
Table1[parent Names] ),
BLANK () )
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi!
If you want three types of results, first of all, you should separate the columns in just one item.
Since the table has comma seperated values, you could open Power Query and separate by delimiter.
Then will be easier to do what you want.
Regards!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
144 | |
85 | |
65 | |
51 | |
45 |
User | Count |
---|---|
217 | |
88 | |
81 | |
65 | |
56 |