Hi Sridar ,
If you have the Senario as explained above the you can
create a variable with =Previous() and i name it as var
later you can use another variable as =-var/ and name it as var1
This will work only if the data is as shown above else it won’t.
Like for books if you had created it as a master or else
it will be like this
Category | Quter ID | Revenue| %Dif
Books | 200501 | 20000 | xx
Gifts | 200501 | 30000 | 8888
Hi Srider,
Now as the one that I had told you u can go ahead with the same …
As Quter ID (200601Rev-200501rev/200501rev) after that what is happening is that
(200502Rev-200601rev/200601rev) Now we don’t want this result right
I guess i am clear to you …
Now create a varibale with =RowIndex() which will give u the RowIndex like 0,1,2,3 …etc
after that u create a variable = If (Mod( ,2)=0) Then 1 Else 0
this will give you the Even row …after that create an aleart with (if) 0 then change the font clolor to white or which ever will show a blank cell and the other to the normal color which would be visible…
Create a revenue variable to find the previous years revenue. This can be achieved either splitting the year and month as 2 different variables are using data maipulation.
e.g. Perv_rev = sum([revenue]) where [yearMonth]=[previousYrMonth]
or Perv_rev = sum([revenue]) where (([year]=[year]-1) and ([month]=[month]))
Then apply this on each row e.g.([revenue]-[prev_rev])/revenue
Create a Variable as =QuterID-4
Name it as var1 now the value is of Quarter is 200501 if the value was 200504
right.Now create another variable =Previous(Previous(Previous(Previous())))