Forum Discussion

Giorgi1989's avatar
Giorgi1989
Advocate II
4 years ago

Help needed with calculated dynamic column

Hi, 

 

This is the problem I have:

 

  • I am using a simple line chart with 2 lines (one for price, and one for raw material index)
  • I want to add a third line for 'Raw Material Impact'

I run into the problem with the latter given the formulae behind:

 

I have created a table called 'RM impact', which includes a Month column, and a calculated 'RM impact' column. However, clearly, the calculated column with dynamic values does not really work. 

 

My 'RM impact' formulae are as follows:

 

  • RM impact Feb 2021 = [RM impact Jan 2021]*(1+([Raw Mat %]*([RM index Feb 2021]/[RM index Jan 2021]-1)))
  • RM impact Mar 2021 = [RM impact Feb 2021]*(1+([Raw Mat %]*([RM index Mar 2021]/[RM index Feb 2021]-1)))
  • RM impact Apr 2021 = [RM impact Mar 2021]*(1+([Raw Mat %]*([RM index Apr 2021]/[RM index Mar 2021]-1)))
  • RM impact May 2021 = [RM impact Apr 2021]*(1+([Raw Mat %]*([RM index May 2021]/[RM index Apr 2021]-1)))...
     
     
    etc. until April 2022. 
     
    How can I make so that this becomes then addable to the line chart mentioned above, that can then be sliced with various existing slicers?
     
    Any advice would be highly appreciated. 

2 Replies