Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I am kind of new in Power BI, I have below question, could you please help?
There are Table 1 and Table 2. Table 1 is the first test, and many parts are taken out after the first test, Table 2 is the 2nd test and some new parts were added in the test. Now I need to find out which parts are newly added parts in Table 2 (i.e. not tested in the first test).
There is no direct relationship between the two tables, because both tables are connected to another table (the total part number list) by Part number, The part numbers are in text type in both tables.
Table 1
Part Number | Voltage | Result |
900-0008C0000003174 | 5.1 | FAIL |
900-0008C0000003374 | 3.9 | PASS |
900-0008B0000003383 | 3.5 | PASS |
900-0008C0000003384 | 3.2 | PASS |
900-0009C0000003387 | 4.8 | PASS |
900-0008C0000003389 | 4.9 | PASS |
900-0007C0000003390 | 5.7 | FAIL |
900-0008C0000003392 | 6.1 | FAIL |
900-0008C0000003394 | 4.3 | PASS |
900-0007B0000003395 | 3.8 | PASS |
900-0008C0000003396 | 2.3 | PASS |
900-0008B0000003397 | 7.2 | FAIL |
900-0007C0000003398 | 2.4 | PASS |
900-0008C0000003399 | 1.8 | PASS |
900-0007B0000003401 | 3.6 | PASS |
Table 2
Part Number | Voltage | Result |
900-0008C0000003374 | 3.9 | PASS |
900-0008B0000003383 | 3.5 | PASS |
900-0008C0000003384 | 3.2 | PASS |
900-0009C0000003387 | 5.9 | FAIL |
900-0008C0000003389 | 4.9 | PASS |
900-0008B0000003181 | 3.6 | PASS |
900-0008C0000003399 | 1.8 | PASS |
900-0007B0000003401 | 3.7 | PASS |
900-0008C0000003394 | 4.5 | PASS |
900-0007B0000003395 | 3.8 | PASS |
900-0008C0000003396 | 2.3 | PASS |
900-0007B0000001326 | 4.4 | PASS |
900-0007C0000003398 | 2.4 | PASS |
900-0007B0000001149 | 5.8 | FAIL |
900-0007C0000001891 | 3.6 | PASS |
Solved! Go to Solution.
My data model looks like the following, although i suspect that your table will have 1:M instead of 1:1
Assuming you want your result as a DAX measure:
Newly Added = COUNTROWS(
EXCEPT(VALUES('Table 1'[Part Number]), VALUES('Table 2'[Part Number]))
)
which gives the following result:
Hi vicky_,
Thanks for your reply! Besides the number of new parts, I also need to know the Part Numbers of the new parts.
Thanks vicky_! It works.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
72 | |
71 | |
37 | |
30 | |
28 |
User | Count |
---|---|
91 | |
49 | |
45 | |
38 | |
36 |