Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi All,
I would like to compare the values of a column (same data) from 2 different tables and flag the unique values in a conditional column in the dataset so they can be filtered out.
Basically this is an example of what I am looking to do.
Table1.ColumnProject
12345
12346
12347
12348
Table2.ColumnProject
12345
12346
12347
12348
12349
12350
So the unique values in Table 2 (12349 & 12350) would be flagged as "New Projects" in a conditional column, and the reset would be "Existing Projects"
Can this be easily done?
Thanks.
Solved! Go to Solution.
Hi @Sime ,
You can create a custom column in table 2 with below code:-
column =
VAR result =
CALCULATE (
FIRSTNONBLANK ( '__Table 1'[ColumnProject], 1 ),
FILTER (
ALL ( '__Table 1' ),
'__Table 1'[ColumnProject] = '__Table 2'[ColumnProject]
)
)
RETURN
IF ( ISBLANK ( result ), "Existing Project", "new project" )
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Hi @Sime ,
You can create a custom column in table 2 with below code:-
column =
VAR result =
CALCULATE (
FIRSTNONBLANK ( '__Table 1'[ColumnProject], 1 ),
FILTER (
ALL ( '__Table 1' ),
'__Table 1'[ColumnProject] = '__Table 2'[ColumnProject]
)
)
RETURN
IF ( ISBLANK ( result ), "Existing Project", "new project" )
Thanks,
Samarth
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Thank you very much for your assistance @Samarth_18 . This worked as anticipated.
Hi
it's very similare to this post : https://community.powerbi.com/t5/Desktop/IP-Address-Compare-and-Categorize/m-p/2282510#M827807
Hi @freginier,
Thank you for your response. I am unable to get the solution you have posted above to work in my scenario as the 3rd argument appears to not accept the second table and [column] when creating the measure.
Any ideas where I am going wrong?
Ideally if I could perform this cross table comparison in the data set and add a calulated column that would be ideal.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 41 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 59 | |
| 31 | |
| 25 | |
| 25 |