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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
arvindarvind24
Helper II
Helper II

Lookup the value from two tables and Append the other table along with the lookup value

Hi All, Need your help on Lookup the value from two tables and Appending the other table along with the lookup value.

 

Table 01  Table 02  Table 03  
CodeNameTypeCodeNameTypeCodeNameType
1AA 11AAY21NNY
2AB 12ABY22NBY
3AC 13ACY23NCY
4AD 14ADY24NDY
5AR 15URY25NRY
6AA 16UUY   
7AB 17UBY   

1st Output: lookup the matching value from Table 02 and result "N" for matching value and "Y" for not matching value.

 

Table 01  
CodeNameType
1AAN
2ABN
3ACN
4ADN
5ARY
6AAY
7ABY

2nd Output: To append all three tables With the 1st output value.

Output Table  
CodeNameType
1AAN
2ABN
3ACN
4ADN
5ARY
6AAY
7ABY
11AAY
12ABY
13ACY
14ADY
15URY
16UUY
17UBY
21NNY
22NBY
23NCY
24NDY
25NRY

@amitchauhan @bvanderwatt @ray_ux @tamerj1 @SpartaBI @v-chenyue-msft 

1 ACCEPTED SOLUTION

Hi @arvindarvind24 
Is this what you want? Please refer to attched file

1.png2.png

Type = 
IF (
    ISBLANK (
        LOOKUPVALUE ( 
            Table2[Type],
            Table2[Name],
            Table1[Name]
        )
    ),
    "Y",
    "N"
)
Table = 
FILTER (
    UNION (
        Table1, 
        Table2,
        Table3
    ),
    [Type] = "Y"
)

View solution in original post

6 REPLIES 6
arvindarvind24
Helper II
Helper II

HI @tamerj1 

 

Sorry for that, Please find the new table details mentioned below.

 

Table 01  Table 02  Table 03  
CodeNameTypeCodeNameTypeCodeNameType
1AA 11AAY21NNY
2AB 12ABY22NBY
3AC 13ACY23NCY
4AD 14ADY24NDY
5AR 15URY25NRY
6AW 16UUY   
7AC 17UBY   

Hi @arvindarvind24 
Is this what you want? Please refer to attched file

1.png2.png

Type = 
IF (
    ISBLANK (
        LOOKUPVALUE ( 
            Table2[Type],
            Table2[Name],
            Table1[Name]
        )
    ),
    "Y",
    "N"
)
Table = 
FILTER (
    UNION (
        Table1, 
        Table2,
        Table3
    ),
    [Type] = "Y"
)

@tamerj1 Thank you 😊

Hi @tamerj1 ,

 

  Thank you for the reply.

It's working and can we filter only the "Y" value into the new table?

@arvindarvind24 

The solution is updated in the original reply

tamerj1
Super User
Super User

Hi @arvindarvind24 
Why Code 6 - AA and Code 7 - AB are considred not matching?

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Top Solution Authors
Top Kudoed Authors