Quantcast
Channel: Active questions tagged excel - Stack Overflow
Viewing all articles
Browse latest Browse all 88066

DAX query to check match(Find or Search) of string segments listed in a table vs. strings to be checked in other table

$
0
0

I need some help on something I expect to be a bit complex trying to identify if a column of strings contains segments of strings listed in two columns in another table. I got to the point where Find and Search could be used to look for sub-strings. (Plus some additional code to separate the first sentence from the rest, as I'm only looking at the first sentence, but that is not relevant here). It is the matching, as described below, I'm not able to figure out or find any good resources on.

I'll try to describe the details of the situation. The environment is the data models in the PowerPivot add-in in Excel. I have two tables A and B. In table A I have in column "UsrInptStr" a list containing user input strings. In table B I have two columns, column "StdString" and column "StdCode". These two columns contains the sub-strings I want to check if any of them are present in any of the strings in table A, column "UsrInptStr".

In table A, in column "StringTest", I want the output of this DAX query to state "Yes" or "No", if the string in table A, column "UsrInptStr", contains any of the sub-strings listed in any of the rows of the two columns in the other table. Output for each row should then represent a "Yes" or a "No" with regards to if that row "UsrInptStr" contains any of the sub-strings in table B.

Any support would be appriciated.

Thanks. BR Fnk


Viewing all articles
Browse latest Browse all 88066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>