AlexVieira
New Member
- Joined
- Nov 23, 2016
- Messages
- 1
Hello there!
I've been knocking my head in the wall over this one and i'm stucked
Here is the deal:
Have a data model with two tables:
A sales table with the "primary key" being the Item reference.
Another table with the product cost. The thing is it has the prices by month.
I'm looking to create a calculated field in the data model that relates the sales table with the product cost within the correct month.
I've tried to assemble the product cost in two ways:
One with three columns (Reference | Cost | Date) - Here the rows have the reference repeated for each month
Other with (Reference | Jan 2016 | Feb 2016 | etc |etc ) - Here no repetitions of the reference but the date is is the column header.
Any thoughts?
Thanks in advance!!
I've been knocking my head in the wall over this one and i'm stucked
Here is the deal:
Have a data model with two tables:
A sales table with the "primary key" being the Item reference.
Another table with the product cost. The thing is it has the prices by month.
I'm looking to create a calculated field in the data model that relates the sales table with the product cost within the correct month.
I've tried to assemble the product cost in two ways:
One with three columns (Reference | Cost | Date) - Here the rows have the reference repeated for each month
Other with (Reference | Jan 2016 | Feb 2016 | etc |etc ) - Here no repetitions of the reference but the date is is the column header.
Any thoughts?
Thanks in advance!!