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
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! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 39 | |
| 35 | |
| 33 | |
| 32 | |
| 28 |
| User | Count |
|---|---|
| 136 | |
| 96 | |
| 77 | |
| 67 | |
| 65 |