Hi
I have a set of data where there are some fields I want to add together but they have different suffices:
| Material | Batch | Value |
| A1 | X | 1 |
| A1 | X-2 | 3 |
| A2 | Y | 2 |
| A2 | Y-10 | 6 |
| A3 | Z | 7 |
| A3 | Z-6 | 4 |
This is what I want the output to look like:
| Material | Batch | Value |
| A1 | X | 4 |
| A1 | X-2 | 3 |
| A2 | Y | 8 |
| A2 | Y-10 | 6 |
| A3 | Z | 11 |
| A3 | Z-6 | 4 |
I can't remove the suffix from the data set as there are other batches that need the suffix there, its only when there is a duplicate in the core batch number for the same material. The second batch can stay in the data set as I am summarizing by first batch further in the workflow.
I can use a multi row formula to do the calculation for a specific suffix:
If [Row+1:Batch] = [Batch]+ "-2" then [value] + [Row+1:value] else [value] endif
So essentially I need the calculation to see any batch with "-" and then any possible character after that - like -* or -x
Thanks