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 dateJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Team,
I have table table A and table B ... see the below result .. how i can achieve on the based on DAX measuare.
Please check and provide an update
tblA 1,2,3,4,5
tblB 3,4,9,10
result | |
tblBID | Flag |
3 | 1 |
4 | 1 |
9 | 0 |
10 | 0 |
Solved! Go to Solution.
Hi @Anonymous ,
Here is your solution in a calculated column. this is the simple one. please let me know if you really wanna do this in a measure.
@Anonymous
Calculated Column:
Flag =
IF(
tblB[ID] IN DISTINCT(tblA[ID]),
1,
0
)
This creates a new column in tblB with the same result.
💌 If this helped, a Kudos 👍 or Solution mark ✔️ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Thanks for the reply from Rupak_bi and Kedar_Pande, please allow me to provide another insight.
Hi @Anonymous ,
You can use the following DAX to create a table that meets your needs.
Table =
ADDCOLUMNS (
TableB,
"Flag",
IF (
ISBLANK ( LOOKUPVALUE ( TableA[tblAID], TableA[tblAID], TableB[tblBID] ) ),
0,
1
)
)
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from Rupak_bi and Kedar_Pande, please allow me to provide another insight.
Hi @Anonymous ,
You can use the following DAX to create a table that meets your needs.
Table =
ADDCOLUMNS (
TableB,
"Flag",
IF (
ISBLANK ( LOOKUPVALUE ( TableA[tblAID], TableA[tblAID], TableB[tblBID] ) ),
0,
1
)
)
Best Regards,
Dengliang Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous
Calculated Column:
Flag =
IF(
tblB[ID] IN DISTINCT(tblA[ID]),
1,
0
)
This creates a new column in tblB with the same result.
💌 If this helped, a Kudos 👍 or Solution mark ✔️ would be great! 🎉
Cheers,
Kedar
Connect on LinkedIn
Hi @Anonymous ,
Here is your solution in a calculated column. this is the simple one. please let me know if you really wanna do this in a measure.
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 |
---|---|
16 | |
8 | |
7 | |
7 | |
6 |
User | Count |
---|---|
23 | |
11 | |
10 | |
10 | |
8 |