Forum Discussion

FAMH's avatar
FAMH
Frequent Visitor
3 years ago
Solved

Filter a table using a column in another table

Hello Community ,      I have Two Table  Table 1 :  with a column where there is a comment entered by a user :    Row Description 1  This is  a invoice  IV1234 2 IV4356-for client  ...
  • Jihwan_Kim's avatar
    3 years ago

    Hi,

    Please check the below picture and the attached pbix file.

    It is for creating a new table.

     

     

     

    New table =
    SUMMARIZE (
        GENERATE (
            'Table 2',
            FILTER (
                'Table 1',
                CONTAINSSTRING ( 'Table 1'[Description], 'Table 2'[Invoice ID] )
            )
        ),
        'Table 1'[Row],
        'Table 1'[Description],
        'Table 2'[Invoice ID]
    )