Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Multiple Relationships to same data in one table

I have a table setup to view total profit of products by date (in this case per month).

 

As you can see, there are 4 columns. One for Date and the remaining 3 for the products (Drinks, Meals, Snacks). 

What I am looking to do is also have a Date, Products, and Profit column representing the data above. Reason be is I have other table containing both date and product columns that I want to make relationships with. 

 

Something similar to the below screenshot:

 

 

 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Figured it out. If I select the Drinks, Meals, and Snacks columns and unpivot them it does exactly what I need to.

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Figured it out. If I select the Drinks, Meals, and Snacks columns and unpivot them it does exactly what I need to.