Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Connecting 2 tables question

Hi,   i'm hoping this is a straightworward question..   I have data across 2 tables and need to track by products/ ALL suppliers etc. My issue is that i have 2 supplier columns for different part...
  • v-easonf-msft's avatar
    v-easonf-msft
    4 years ago

    Hi, Anonymous 

    You can consider using lookupvalue to create a calculated column in the bill table to integrate the data in the other two tables

    Date Due =
    SWITCH (
        'Bills Table'[Type],
        "Heavy",
            LOOKUPVALUE (
                'Table Heavy Products'[Date Due],
                'Table Heavy Products'[Product], 'Bills Table'[Product]
            ),
        "Light",
            LOOKUPVALUE (
                'Table Light Products'[Date Due],
                'Table Light Products'[Product], 'Bills Table'[Product]
            )
    )
    

    Best Regards,
    Community Support Team _ Eason