Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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,'zxs','q','w'.......and so on).
I am looking for an easy smart way to convet this into power query single filter command.
Thanks
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
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 37 | |
| 37 | |
| 33 | |
| 32 | |
| 29 |
| User | Count |
|---|---|
| 130 | |
| 88 | |
| 82 | |
| 68 | |
| 64 |