Forum Discussion
Daniel_L
7 years agoFrequent Visitor
Merge with wildcards
Hello Power BI Community, I need to find (in other words set a flag for) the rows in table A which matches any of the rows in Table B. If it wasn't for the wildcards (*) it would have been easy to...
- 7 years ago
You may use code below to add a custom column.
let r = _ in Table.MatchesAnyRows( Rules, each List.Contains({r[Company], "*"}, [Company2]) and List.Contains({r[Div], "*"}, [Div2]) and List.Contains({r[Dept], "*"}, [Dept2]) and List.Contains({r[Invoice], "*"}, [Invoice2]) )
v-chuncz-msft
7 years agoCommunity Support
You may use code below to add a custom column.
let
r = _
in
Table.MatchesAnyRows(
Rules,
each List.Contains({r[Company], "*"}, [Company2])
and List.Contains({r[Div], "*"}, [Div2])
and List.Contains({r[Dept], "*"}, [Dept2])
and List.Contains({r[Invoice], "*"}, [Invoice2])
)- Anonymous4 years agoNot applicable
And is there any way to list the line (lines) that matched instead of true or false?