Hi so this is my input and expected data below
Input Data table | Expected Output |
500MG/250MG | 750 |
10MG/75MG/2MG | 87 |
10MG/75MG/2MG | 87 |
1000MG/125MG | 1125 |
In this i have dynamic scenario i could have n number of seperation with slash like 10MG/10MG/10MG/10MG/10MG so i should get the output 50 in the next column and i could also have scenario like not having MG on all sides it couls be like this 10MG/10IU/10MG/10PC i should get 40 in the output column
i cant use dei iter here as it wou;d be very messy as i do not know in how many columns it would scatter so please help
This is really simple if you use the regex tokenize split to rows method, then summarize tool to group by record id and sum the values. See the attached workflow and it'll clear up, literally just three tools!
Thanks cjaneczko, i guess your solution would be the correct one, since i could have multiple alphabets apart from MG and i think using this approach i will be able to replace other alphabets as well and also will be able to do the sum function.
User | Count |
---|---|
106 | |
82 | |
70 | |
54 | |
40 |