Let's say I have a large list of names in a single column. I want to see if the names have the letters "y" or "z" in them, with a calculated column that just tags the row as "Y" or "Z".
My question is not just about searching with wildcards in DAX. My main question is whether I can create the following table:
+-------+-------+
| Y | Z |
+-------+-------+
| "*y*" | "*z*" |
+-------+-------+
and then use the contents of that table in a DAX search (without creating any relationship).
In DAX-ish pseudocode,something like:
Column =
IF (
FOR x in 'Letters'[Y]:
SEARCH (
x,
Names[Name],
1,
0
),
"Y",
BLANK()
)
This is just a simplified example, in this case I would just create a DAX formula for Y and Z. In my real life situation, that second table will be pulled in from a constantly changing Excel spreadsheet, containing hundreds of wildcard queries...
Is this possible in Power BI?
