Skip to main content
Solved

Reallocation Logic

  • Jun 22, 2023 12:36 AM UTC
  • 2 replies
  • 424 views

Forum|alt.badge.img+8

Hi Pigment team! 

I am trying to setup a reallocation logic. Can you please help with creating the formula?

 

Right now, the total cost $1,517,587 is booked all in US (screenshot 1), but I want the cost to be re-allocated to international countries (screenshot 2). You will see the total still matches with screenshot 1. 

For my another metric for reallocation, what is best way to create a metric to show a table as screenshot 3? 

 

​​​​​​

 

Thanks in advance for reviewing!

Best answer by abhilashsawla

Please Try below formula. 

if('Country Dimension'='Country Dimension'."US" , '[Final] Hosting Final Actual'[Exclude:'Country Dimension'."US"][Remove:'Country Dimension']*(-1), '[Final] Hosting Final Actual')

 

View original

2 replies

abhilashsawla
Master Author
Forum|alt.badge.img+7
  • Master Author
  • Answer
  • Jun 22, 2023 5:22 AM UTC

Please Try below formula. 

if('Country Dimension'='Country Dimension'."US" , '[Final] Hosting Final Actual'[Exclude:'Country Dimension'."US"][Remove:'Country Dimension']*(-1), '[Final] Hosting Final Actual')

 


Forum|alt.badge.img+8
  • Author
  • Master Author
  • Jun 22, 2023 4:30 PM UTC

It worked! Thank you!