Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

Relative Total and Subtotal Values

Hello All,

 

I have been stuck on this pickle of a problem for quite some time. 

 

I would like to get the relative subtotal (and total) of the "% Gross Price Change" measure, at the most granular level.

In the below example the subtotal would equate to:

 

 (0.1401 * (6637.82 / 6637.82 + 1864.19 + 13157.47) + 0.2303 * (1864.19 / 6637.82 + 1864.19 + 13157.47) + 0.1798 * (13157.47 / 6637.82 + 1864.19 + 13157.47 )) = 0.171 or 17,1

 

 

 

i.e each row where price change is available, "% Gross Price Change" / SUM of "CY Norm Gross Sales". 

 

I suspect I will have to create an additional measure here but I am hoping someone has come across something like this before.

 

Any help is much appreciated. I understand this is a convoluted explanation, if there are further details required I am happy to provide them. It is also worth noting that both of these columns are themselves a combination of other measures.

 

All the best,

Luke

 

 

4 Replies