Forum Discussion

admin_xlsior's avatar
admin_xlsior
Icon for Post Prodigy rankPost Prodigy
4 years ago
Solved

Matching between two unrelated tables

Hello guys,   Need a few help with my case on finding match and unmatch between two unrelated table. I know I need to use LOOKUPVALUE for this, but somehow I can't get it right.   So here is the ...
  • tamerj1's avatar
    tamerj1
    4 years ago

    admin_xlsior 
    You mean like this? https://www.dropbox.com/t/RVZVoMC7wz3HEDPY

    Recommended People = 
    VAR T1 = 
        FILTER (
            'Person List', 
            'Person List'[Hobby] = SELECTEDVALUE ( 'Master Data'[ForHobby] )
                && 'Person List'[Rent] = BLANK ( ) 
        )
    RETURN
        CONCATENATEX (
            T1,
            [Person],
            UNICHAR ( 10 )
        )
    Recommended Places = 
    VAR T1 = 
        SELECTCOLUMNS (
            FILTER (
                'Person List', 
                'Person List'[Rent] = BLANK ( ) 
            ),
            "@Hobby", 'Person List'[Hobby] 
        )
    RETURN
        CONCATENATEX (
            FILTER ( 'Master Data', 'Master Data'[ForHobby] IN T1 ),
            'Master Data'[Place],
            UNICHAR ( 10 )
        )
    Number of People Rented = COUNTROWS ( 'Person List' )