Forum Discussion
Check if Column contains string with iterator?
- Anonymous2 years ago
Hi Jack007 ,
Power BI Dax does not support iterate operations on the data.
However, you can use the M language to filter specific strings for this purpose.
I created a simple sample:
First, you can create a parameter for your specific string like this:
Then use this M script:
= Table.SelectRows(each Text.Contains([Large Value], #"Check X"))
Result shown below:
Perhaps this will work, and if you have any questions, please provide me with more information to make sure we can better solve the problem for you!
An attachment for your reference. Hope it helps.
Best regards,
Community Support Team_ Scott ChangIf this post helps then please consider Accept it as the solution to help the other members find it more quickly.
Hi Jack007 ,
Power BI Dax does not support iterate operations on the data.
However, you can use the M language to filter specific strings for this purpose.
I created a simple sample:
First, you can create a parameter for your specific string like this:
Then use this M script:
= Table.SelectRows(each Text.Contains([Large Value], #"Check X"))
Result shown below:
Perhaps this will work, and if you have any questions, please provide me with more information to make sure we can better solve the problem for you!
An attachment for your reference. Hope it helps.
Best regards,
Community Support Team_ Scott Chang
If this post helps then please consider Accept it as the solution to help the other members find it more quickly.