Forum Discussion
any function can do exact match (text) in power query?
- 7 years ago
Hi,
Could you share a dataset and show the expected result. Also, would you be OK with a DAX calculated formula as an alternative?
- Jun_Wang7 years ago
Advocate I
Thanks for replying my question. Here is the screeshot.
Now, if I use the above mentioned nested function searching "lock", it not only returns the text containing the word "lock" but also text containing "block". That's why I want some function can do exact match.
If DAX helps out, I'll surely embrace it :)
- Anonymous7 years agoNot applicable
Hi Jun_Wang,
It works for me, please find the below screenshot for your reference.
Go to Edit Queries --> Select the column (Text) --> Add Column Tab --> Conditional Column --> and give the details as in the screenshot. It will work.
Please let me know if you still have any questions. Happy to help you.
Regards,
Pavan Vanguri.
- Jun_Wang7 years ago
Advocate I
Thanks Pavan, but this fix is not very ideal to me. My dataset normally has 10k rows, the "block" is not the only possible word containing string "^lock". It could be blockade, block, blockage, even sherlock........
I reckon exact match would be easier :)
- Ashish_Mathur7 years ago
Super User
Hi,
How do we make the software understand that block should be ignored but padlock should be considered (when there is no space between pad and lock)
- Anonymous7 years agoNot applicable
Hi,
We created a column on a condition saying that, if the string contains "block" then block else "lock".
Power BI will search for the defined string in the condition and will reteun the expected results.
Hope I have answered your question.
Regards,
Pavan Vanguri.