Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Sylvine_Wyz
Helper IV
Helper IV

search equivalence

Hello Everybody, 

 

i would like to know if the exact values from a column in a table exist in a column from an other table.

 

1rst table : wyz_reporting supplier_invoices

Sylvine_Wyz_0-1602232249432.png

2nd table : wyz_reporint bi_order

Sylvine_Wyz_1-1602232371383.png

 

The solution is to know which data from the supplier_invoice table does not exist in the bi_order table.

 

Thanks for your help

 

Have a nice day

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Sylvine_Wyz ,

You can try to create this calculated column:

Flag =
IF (
    'wyz_reporint bi_order'[Liaison]
        IN DISTINCT ( 'wyz_reporting supplier_invoices'[liaison] ),
    "yes",
    "no"
)

flag.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-yingjl
Community Support
Community Support

Hi @Sylvine_Wyz ,

You can try to create this calculated column:

Flag =
IF (
    'wyz_reporint bi_order'[Liaison]
        IN DISTINCT ( 'wyz_reporting supplier_invoices'[liaison] ),
    "yes",
    "no"
)

flag.png

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

Hi @v-yingjl 

 

i tried your solution but there is an error.

I can't to choice the column Liaison in the formul. 

Sylvine_Wyz_0-1602488439278.png

 

😞

@v-yingjl 

 

😄 it's ok ! i wasn't in the good table for to add the new column.

 

Thanks for your help !!!

Have a nice day

Hi @Sylvine_Wyz ,

Seems like you have created a mesure instead of calculated column by this formula. This formula is used to create a calculated column in the wyz_reporint bi_order table. Try to create a new column not a new measure.

 

Best Regards,
Yingjie Li

If this post helps then please consider Accept it as the solution to help the other members find it more quickly.

@v-yingjl 

Thanks for your help.

It's a new column, not a new measure. but i can't click on bi order liaison. It's is not in the choice.

Sylvine_Wyz_0-1602501095157.png

 

FrankAT
Community Champion
Community Champion

Hi @Sylvine_Wyz 

you can use Powert query and merge both table with an anti-join. Take a look at the following link:

https://www.youtube.com/watch?v=9dG63ifH7Pk

 

With kind regards from the town where the legend of the 'Pied Piper of Hamelin' is at home
FrankAT (Proud to be a Datanaut)

Hello @FrankAT 

Thanks for your help. 

But i don't arrive. My 2 columns are not in POWER QUERY.

They are 2 columns i created 

liaison = 'wyz_reporting supplier_invoices'[Frn Order N°]&" "&'wyz_reporting supplier_invoices'[ean]&" "&'wyz_reporting supplier_invoices'[supplier_id]
 
i want to create a new column with yes or no if the values in the table 1 are in the table 2

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.