Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
I have a table that contains a customer_id column which a few thousand entries. I have another table that lists a customer_id column of "bad" ID's that I want to filter OUT OF the first table. The end result would be the first table minus any rows of the "bad" customer_id listed in the second table. Help?
Solved! Go to Solution.
There are likely several ways to do this. I would approach it by adding a calculated column to your first table which tests whether the customer_id is within the second table's list:
Good IDs = IF(Table1[customer_id] in VALUES(Table2[bad_ids]), True, False)
You can edit the True and False outputs to be anything you'd like, and slice by "True" to see only those customers without bad IDs.
I actually got it to work using a version of:
FILTER ( Table1, NOT Table1[Id] IN DISTINCT ( Table2[Id] ) )
It's amazing how much you can learn at Power BI when you are dealing with a crappy data source! 🙂 Thanks All!
I actually got it to work using a version of:
FILTER ( Table1, NOT Table1[Id] IN DISTINCT ( Table2[Id] ) )
It's amazing how much you can learn at Power BI when you are dealing with a crappy data source! 🙂 Thanks All!
There are likely several ways to do this. I would approach it by adding a calculated column to your first table which tests whether the customer_id is within the second table's list:
Good IDs = IF(Table1[customer_id] in VALUES(Table2[bad_ids]), True, False)
You can edit the True and False outputs to be anything you'd like, and slice by "True" to see only those customers without bad IDs.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |