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! It's time to submit your entry. Live now!
So I know what with the following script I could remove from "Cost Center" column all the value that are "aaaa", "bbbb" or "cccc" but what about if I had to remove more values like 50 that I already have set in a list in power query o maybe a column from another data set..
I could not find the proper script
Table.SelectRows(#"", each ([Cost Center] <> "aaaa" and [Cost Center] <> "bbbb" and [Cost Center] <> "cccc"))
Solved! Go to Solution.
You could use List.Contains.
each not List.Contains(ListOfValues,[Cost Center])
where ListOfValues can reference an existing Table[Column] or List.
You could use List.Contains.
each not List.Contains(ListOfValues,[Cost Center])
where ListOfValues can reference an existing Table[Column] or List.
Hi, How should I write the name of the column that is a different table? and whow should I write it if there was a list?
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 43 | |
| 31 | |
| 27 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 114 | |
| 58 | |
| 39 | |
| 35 |