Forum Discussion

Chris1300's avatar
Chris1300
Helper II
3 years ago
Solved

How to parse SQL query command with Search?

Hello,   I have a table in PowerBI, one of the columns is the [SQL_query_command] for auditing purposes. I would like to parse that column to extract the tables names. I think I can do this using t...
  • lbendlin's avatar
    3 years ago

    Have you considered using "FROM" as the string split identifier?

  • Chris1300's avatar
    Chris1300
    3 years ago

    I was able to do this in power query and use the built in functions for split and extract functions. It involved multiple steps but i think i got it close enuf for it to be similar. 

     

    It would be nice for a feature to exist in powerbi to use some kind of RegEx as a parser maybe in the future. Thanks!