New to PowerBI & DAX - Can't determine how to compare two columns in different tables to find values not used RRS feed

  • Question

  •  Hello,

    I apologize if this is a simple question but I am not an EXCEL expert and being new to PowerBI and DAX I am unsure how to get what I am looking for. I have two tables. In table 1 I have a list of parts that will be obsoleted. In Table 2 I have a column where those parts have been specified. I have used Table 1 to filter table 2 in PowerBI. That was easy. Now I can see the projects and clients who ordered those parts. That is step one but what I want to do is create a new list that filters table 1 to show the parts in that table that are not in the column of table 2. I have tried IF statements, NOT(CONTAINS and others to even less success but the main issue I run into is that all these comparisons look for a single value to filter on. I found a couple promising examples in the forums but they always seem to filter by a specific value. Full disclosure...my real Table 1 is 400 rows and Table 2 is over 150,000 rows. Also The column I am searching in in Table 2 has 9 other columns that the value could also be in. I cannot change that as it is how our products are configured. While there are not 150,000 unique records in that Table 2 column there could be up to 2000 unique codes.

    I don't want to have to create 400 different measures to compare and I am positive I don't have to but I am racking my brain trying to figure this out. I can't show the actual data because it is huge but also confidential. Below is a cheap and dirty mockup of what I am looking to do. If I can get it to do it on one column I know I can append to the measure to check the other columns as well.

    Again I apologize for what may seem like a simple problem to you. 

    Friday, September 14, 2018 4:24 PM

All replies