Hello All
I'm sure there is a simple solution to what I'm trying to do, and I have not been able to figure it out.
I have a CATALOG table:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]product (KEY)[/TD]
[TD]Attribute1[/TD]
[TD]Attribute2[/TD]
[/TR]
[TR]
[TD]product1[/TD]
[TD]a[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]product2[/TD]
[TD]a[/TD]
[TD]g[/TD]
[/TR]
[TR]
[TD]productN[/TD]
[TD]b[/TD]
[TD]e[/TD]
[/TR]
</tbody>[/TABLE]
I have another table with DATA, linked to the CATALOG table via the PRODUCT Key
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]product[/TD]
[TD]date[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]LastWeek[/TD]
[TD]A[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]LastYear[/TD]
[TD]B[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]LastWeek[/TD]
[TD]A[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]LastYear[/TD]
[TD]A[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
If I want to bring into my CATALOG table the information from my DATA table taken for date = LastWeek, I can easily do so for the data3 column, which is numerical, via a CALCULATE(SUM()).
However, if I want to do the same for data2, which has text value in it, I'm stuck.
Ideally, my CATALOG table would end up being:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]PRODUCT(KEY)[/TD]
[TD]Attribute1[/TD]
[TD]Attribute2[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]a[/TD]
[TD]e[/TD]
[TD]A[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]a[/TD]
[TD]g[/TD]
[TD]A[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
is there a simple way to bring back this text information into the CATALOG table (i've tried to convert my text data into a numeric value via additional translation tables but it add a lot of complexity to the model and feels very clunky)
thanks a lot for your help
thomas
I'm sure there is a simple solution to what I'm trying to do, and I have not been able to figure it out.
I have a CATALOG table:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]product (KEY)[/TD]
[TD]Attribute1[/TD]
[TD]Attribute2[/TD]
[/TR]
[TR]
[TD]product1[/TD]
[TD]a[/TD]
[TD]e[/TD]
[/TR]
[TR]
[TD]product2[/TD]
[TD]a[/TD]
[TD]g[/TD]
[/TR]
[TR]
[TD]productN[/TD]
[TD]b[/TD]
[TD]e[/TD]
[/TR]
</tbody>[/TABLE]
I have another table with DATA, linked to the CATALOG table via the PRODUCT Key
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]product[/TD]
[TD]date[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]LastWeek[/TD]
[TD]A[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]LastYear[/TD]
[TD]B[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]LastWeek[/TD]
[TD]A[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]LastYear[/TD]
[TD]A[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
If I want to bring into my CATALOG table the information from my DATA table taken for date = LastWeek, I can easily do so for the data3 column, which is numerical, via a CALCULATE(SUM()).
However, if I want to do the same for data2, which has text value in it, I'm stuck.
Ideally, my CATALOG table would end up being:
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]PRODUCT(KEY)[/TD]
[TD]Attribute1[/TD]
[TD]Attribute2[/TD]
[TD]data2[/TD]
[TD]data3[/TD]
[/TR]
[TR]
[TD]Product1[/TD]
[TD]a[/TD]
[TD]e[/TD]
[TD]A[/TD]
[TD]14[/TD]
[/TR]
[TR]
[TD]Product2[/TD]
[TD]a[/TD]
[TD]g[/TD]
[TD]A[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
is there a simple way to bring back this text information into the CATALOG table (i've tried to convert my text data into a numeric value via additional translation tables but it add a lot of complexity to the model and feels very clunky)
thanks a lot for your help
thomas