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
For give my ignorance but I am learning Power Query commands (M). Can someone help me with the equivalent statement in Power BI for this SQL code.
SQL Statement
Select * from MyTable where Field1 not in ("AB", "AC", "FG")
Power BI Equivalent
= Table.SelectRows(MyTable, Each [Field1] ????????????
Or is there a better way.
Solved! Go to Solution.
Probably you would have an answer much sooner if you posted your question in the "Desktop" forum.
Anyhow, this will do the trick:
= Table.SelectRows(MyTable, each not List.Contains({"AB", "AC", "FG"}, [Field1]))
Probably you would have an answer much sooner if you posted your question in the "Desktop" forum.
Anyhow, this will do the trick:
= Table.SelectRows(MyTable, each not List.Contains({"AB", "AC", "FG"}, [Field1]))
Thanks, it works like a charm.
As I look closer at the forum areas, I see what you mean about where I should have posted. Looking closer at the developer area questions, I see the type of development work that is taking place there.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 38 | |
| 37 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 136 | |
| 99 | |
| 73 | |
| 66 | |
| 65 |