yogi_Get sum of columns depending on the data in a few other columns Per Specified Pattern