Good morning,
Below are an Example. The example represent 3 different products
With each Product's "Test_Type" that has been conducted a "Color" value are assigned according to the "Test_Range".
"Total Color" represent the SUM of each colour value per row founded from the total tests conducted on a daily basis.
There cannot be determined how many test will be performed for the day. It can even be more than 7 as in the example.
The need is to create the column displayed in green, containing total values.
Hence, a Transformation is needed to add each similar color value per test type in order to obtain the values of "Total_Color" column.
Will you please advise on how to create such a Transformation-model, bearing in mind of the following:
Thank you for support!
Kind regards,
Below are an Example. The example represent 3 different products
With each Product's "Test_Type" that has been conducted a "Color" value are assigned according to the "Test_Range".
"Total Color" represent the SUM of each colour value per row founded from the total tests conducted on a daily basis.
There cannot be determined how many test will be performed for the day. It can even be more than 7 as in the example.
The need is to create the column displayed in green, containing total values.
Hence, a Transformation is needed to add each similar color value per test type in order to obtain the values of "Total_Color" column.
Will you please advise on how to create such a Transformation-model, bearing in mind of the following:
- There is no fixed limit on the total tests performed for the day. Should 15 tests have been performed, 15 test columns with values will have been displayed. The next day might only perform 3 tests, hence, reducing the total columns with values that are to be added to to 3
- The total is for the specific day. Should a new day starts, a new total is required.
- Automatically apply this model to all the product-groups, which are more than 3.
Thank you for support!
Kind regards,
Product_Group | Product_Description | Test_Type | Test_Range | Color | Test1 | Test2 | Test3 | Test4 | Test5 | Test6 | Test7 | Total Color |
Product1 | Product1 description | Temperature | <1 | GREEN | 1 | 1 | 2 | |||||
Product1 | Product1 description | Temperature | 1-10 | YELLOW | 1 | 1 | 1 | 1 | 1 | 5 | ||
Product1 | Product1 description | Temperature | >10 | RED | 1 | 1 | ||||||
Product1 | Product1 description | Freezing Point | >210 | GREEN | 1 | 1 | ||||||
Product1 | Product1 description | Freezing Point | 150-210 | YELLOW | 1 | 1 | 1 | 1 | 4 | |||
Product1 | Product1 description | Freezing Point | <150 | RED | 1 | 1 | 2 | |||||
Product1 | Product1 description | pH | <4.55 | GREEN | 1 | 1 | 2 | |||||
Product1 | Product1 description | pH | 4.55-8.65 | YELLOW | 1 | 1 | ||||||
Product1 | Product1 description | PH | >8.65 | RED | 1 | 1 | 1 | 3 | ||||
Product1 | Product1 description | SPC | <2500 | RED | 1 | 1 | 1 | 3 | ||||
Product1 | Product1 description | SPC | 2500-3500 | YELLOW | 1 | 1 | 1 | 1 | 4 | |||
Product1 | Product1 description | SPC | 3500-4000 | GREEN | 1 | 1 | ||||||
Product1 | Product1 description | SPC | 4000-7500 | YELLOW | 1 | 1 | 1 | 3 | ||||
Product1 | Product1 description | SPC | >7500 | RED | 1 | 1 | ||||||
Product2 | Product2 description | Temperature | <10 | GREEN | 1 | 1 | 2 | |||||
Product2 | Product2 description | Temperature | 11-20 | YELLOW | 1 | 1 | 1 | 1 | 1 | 5 | ||
Product2 | Product2 description | Temperature | >20 | RED | 1 | 1 | ||||||
Product2 | Product2 description | Freezing Point | >1210 | GREEN | 1 | 1 | ||||||
Product2 | Product2 description | Freezing Point | 1150-1210 | YELLOW | 1 | 1 | 1 | 1 | 4 | |||
Product2 | Product2 description | Freezing Point | <1150 | RED | 1 | 1 | 2 | |||||
Product2 | Product2 description | pH | <6.55 | GREEN | 1 | 1 | 2 | |||||
Product2 | Product2 description | pH | 6.55-7.65 | YELLOW | 1 | 1 | ||||||
Product2 | Product2 description | PH | >7.65 | RED | 1 | 1 | 1 | 3 | ||||
Product2 | Product2 description | mm | <2500 | RED | 1 | 1 | 1 | 3 | ||||
Product2 | Product2 description | mm | 2500-3500 | YELLOW | 1 | 1 | 1 | 1 | 4 | |||
Product2 | Product2 description | mm | 3500-4000 | GREEN | ||||||||
Product2 | Product2 description | mm | 4000-7500 | YELLOW | ||||||||
Product2 | Product2 description | mm | >7500 | RED | ||||||||
Product3 | Product3 description | kg | <10 | GREEN | 1 | 1 | 2 | |||||
Product3 | Product3 description | kg | 11-20 | YELLOW | 1 | 1 | ||||||
Product3 | Product3 description | kg | >20 | RED | ||||||||
Product3 | Product3 description | litre | >550 | GREEN | 1 | 1 | ||||||
Product3 | Product3 description | litre | 480-550 | YELLOW | 1 | 1 | 1 | 1 | 4 | |||
Product3 | Product3 description | litre | <480 | RED | 1 | 1 | 2 | |||||
Product3 | Product3 description | pH | <6.55 | GREEN | 1 | 1 | 2 | |||||
Product3 | Product3 description | pH | 6.55-7.65 | YELLOW | 1 | 1 | ||||||
Product3 | Product3 description | PH | >7.65 | RED | 1 | 1 | 1 | 3 |