Forum Discussion

W2SANC's avatar
W2SANC
Helper II
3 years ago
Solved

Relate Tables Function Without Need for A Sum

Hello,    I have two tables (Table 1: List of State and County FIPS codes which the data is a combined into 5 digit number) and Table 2 (location of each sale transation by "county, state." There i...
  • marcelsmaglhaes's avatar
    3 years ago

    Hello W2SANC !

    I will assume you have two tables: FIPS and Sales, and them are relatede by a column, in my case, column County estabilished the relationship, and you want put the FIPSCODE into Sales table. If I understood correctley, so, look the sequence bellow and if it helps, please mark this post as solved.

    If I misunderstood, please, give more details about you want to do.

    Take a look in my tables:


    To "put" the FIPCODE into Sales table, in Power Query you can use the Merge Queries function. Choose that option and select the column keys in the tables (in my case, column County is the key). 

    After that, click OK and then expand the column FIPS

    The result is a NEW TABLE that contais the sales table column plus the FIPCODE column from the FIPS table.