Forum Discussion
BIXL
Resolver I
9 years agoconvert sql "in" statement to power query filter code
Hi all, I have a sql statment that has where clouse that uses the "in" statement that has a large number of elements in it like : select col1,col2 fromTABLE X where col1 in ('abc','aaaa',ddd,'...
v-haibl-msft
Microsoft Employee
9 years ago
You can try with following power query in Advance Editor of PBI Desktop.
#"Filtered Rows" = Table.SelectRows(#"Changed Type", each [col1] = "abc" or [col1] = "aaaa" or [col1] = "ddd" or [col1] = "zxs" or [col1] = "q" or [col1] = "w")
Best Regards,
Herbert