Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

comparing different expression against different dimension...

Hi All,

It's Friday and it seems that my brain doesn't want to work anymore...

i have the table below

DimensionExpression
YearTermABC
2010T1646458
2010T2665445
2010T3514750
2010T4606138
2011T1616650
2011T2596947
2011T3495848

I need to compare B in T2 2010 against A in T1 2010, C in T2 2010 against B in T1 2010 and so on...

Any idea on how I should tacle that?

I have set up a table where it give me the previous term compare to term n, but that doesn't seems to be the right route to take.

I am looking forward to your assistance.

Maxime

1 Solution

Accepted Solutions
Gysbert_Wassenaar

If A, B and C are expressions you can create new expressions that calculate the difference:

=B - above(A)

=C - above(B)

etc..

edit: since you're using two dimensions you need the total keyword in the above function to cross the dimension borders: B-above(total A)


talk is cheap, supply exceeds demand

View solution in original post

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

column B for example:

sum(B) - above(Before(A))

Gysbert_Wassenaar

If A, B and C are expressions you can create new expressions that calculate the difference:

=B - above(A)

=C - above(B)

etc..

edit: since you're using two dimensions you need the total keyword in the above function to cross the dimension borders: B-above(total A)


talk is cheap, supply exceeds demand
Not applicable
Author

Thanks Gysbert, That has worked perfectly!

YearTermABCA>BB>C
2010T1645829--
2010T266455570%95%
2010T351504076%89%
2010T460385175%102%
2011T1615037--
2011T259474577%90%
2011T349484081%85%
2011T469414684%96%

Now, my next issue is that I do not want to show Column ABC but only A>B and B>C, as this is what I will need to represent in a chart. When converting it to chart and if I mark it as invisible it doesn't do the trick.

Would you have anything in you rhat that can do the trick?

Thanks again for your quick response,

Maxime

Edit, I have managed to hide the column without affecting my result but when I want to interpret it in a chart it really doesn't look great... i think I'll have to play more with it to figure it out.

Not applicable
Author

I have to come back on that point as yes it is working but only up to 75%, I am unsure why the calculation for each T1 doesn't work. I need T1 to compare to T4 but it seems that using this particular expression it doesn't work.

Thanks for your help,

Maxime

Not applicable
Author

Thanks Everything is working perfectly now thanks for your quick help!