March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
ID | parent Names | Family Names | Match |
1 | Apple, Orange | Fruit, Lemon, Grapes | no |
2 | Lemon,grapes, Fruit | Grapes, Fruit, Lemon | yes |
3 | Hello, Fridge, Door | Fridge, hello | no |
4 | balcony | Balcony | yes |
6 | tree, time | time | no |
two columns with comma seperated values, output should show , match or not matched.
I tried below m query but it is not working
Can anyone help me
I do not want to perform pivot/unpivot
Solved! Go to Solution.
= Table.AddColumn(#"Changed Type", "Match",
each let
p = List.Transform(Text.Split([parent Names], ","), Text.Trim),
f = List.Transform(Text.Split([Family Names], ","), Text.Trim)
in List.Count(p) = List.Count(f) and List.Count(List.Difference(p, f, Comparer.OrdinalIgnoreCase)) = 0
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
= Table.AddColumn(#"Changed Type", "Match",
each let
p = List.Transform(Text.Split([parent Names], ","), Text.Trim),
f = List.Transform(Text.Split([Family Names], ","), Text.Trim)
in List.Count(p) = List.Count(f) and List.Count(List.Difference(p, f, Comparer.OrdinalIgnoreCase)) = 0
)
Thanks to the great efforts by MS engineers to simplify syntax of DAX! Most beginners are SUCCESSFULLY MISLED to think that they could easily master DAX; but it turns out that the intricacy of the most frequently used RANKX() is still way beyond their comprehension! |
DAX is simple, but NOT EASY! |
worked like a charm
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
72 | |
68 |