ebstarasia
IS-IT--Management
I have two sets of data, in two columns. One column, that is in the main report, is the total YTD volume of a company for 2011, whereas the second column is coming from a subreport that is the same (YTD volume for a company) but for 2010.
What I am trying to do is run a comparison between the two sets of data in percentage. Ultimately, I need to create a third column that shows the percentage increase from the previous year.
What I have been doing is exporting the data to an Excel sheet, creating an extra column and having the percentage calculated with the following formula:
C1 = 2011 Data in cell C1
D1 = 2010 Data in cell D1
=IF(D1=0,C1*1,(+C1-D1)/D1)
or
if D1 = 0
{
C1*1
}
else
{
(+C1-D1)/D1
}
I've read about shared variables that can be passed up to the main report, is that the best route?
What I am trying to do is run a comparison between the two sets of data in percentage. Ultimately, I need to create a third column that shows the percentage increase from the previous year.
What I have been doing is exporting the data to an Excel sheet, creating an extra column and having the percentage calculated with the following formula:
C1 = 2011 Data in cell C1
D1 = 2010 Data in cell D1
=IF(D1=0,C1*1,(+C1-D1)/D1)
or
if D1 = 0
{
C1*1
}
else
{
(+C1-D1)/D1
}
I've read about shared variables that can be passed up to the main report, is that the best route?