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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Anand09
New Member

Lookup between two tables

Hi Everyone,

 

I have  to lookup rows between two tables. if one row is completely matching with row in other tables have to create a slicer with same else different. Providing sample data below.

 

IDNAME
1XYZ
2ABC
3XYZ
4ABC

 

IDNAME
1XYZ
2ABC
3 REPLIES 3
v-pagayam-msft
Community Support
Community Support

Hi @Anand09 ,
Thank you for reaching out to the Microsoft Fabric Community Forum regarding the issue.

The following steps may help you to create if one row is completely matching with row in another table

  • Go to the "Model" view
  • Create a relationship between 2 tables with unique column and go back to the "Data" view.
  • Select Table1,create a new calculated column. Below query helps you to create a calculated column.

    IF (

        RELATED('Table2'[NAME]) = 'Table1'[NAME],

        "same",

        "different"

    )

  • Add the new calculated column to the slicer visual, Now select either Same or Different in slicer. Will be able to see the lookup rows between two tables.
  • Please find the attached sample file for your reference.

    Hope this post helps you. If so, kindly consider accepting it as the solution so that it can assist other members and help them find the answer more quickly.

Try this calculated column

Ajithkumar_P_05_0-1733983171241.png


Ensure that search value from table 2 should be unique.

anmolmalviya05
Memorable Member
Memorable Member

Hi @Anand09, Please try to create a new calculated column with below formula:

RowMatchStatus =
IF(
COUNTROWS(
FILTER(
Table2,
Table2[ID] = Table1[ID] &&
Table2[NAME] = Table1[NAME]
)
) > 0,
"Same",
"Different"
)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.