I know this refers back to your previous thread. Please show a sample crosstab and identify what total you want to subtract from what total. It's really not clear.
I will try again...
i want on columns PRODUCTS, on rows SALESREPs.
measures MTD, YTD, %, GoalsMTD, GoalsYTD, %
i want Totals (for every measure MTD, YTD..etc) of Products in row and Totals of Products in columns.
the question is:
Can i subtract two totals of product in columns?
i cannot make a formula, because i dont see them avalaible in the report fields.
thx
Thank you. In an inserted crosstab, select the mtd total->format field->suppress->x+2 and enter:
whileprintingrecords;
numbervar mtd;
if gridrowcolumnvalue("measures") = "mtd" and
gridrowcolumnvalue("period") = "P1" then
mtd := currentfieldvalue;//this sets the variable to the value in this cell
false //this says don't suppress
Instead of "measures" you should put the field that results in the "mtd", "ytd", etc. Remove the curly brackets and replace with "". For "period", do the same, substituting the name of the field for your highest order row.
Next select the goalmtd column total->format field->suppress->x+2 and enter:
If you want to display the difference within the crosstab, you would have to create a formula:
whilereadingrecords;
0
Add this as a second summary (below the first). Suppress the inner cells and then select where you want this displayed. Let's say you want it below the goalmtd total. You would select {@0}->format field->DISPLAY STRING and enter:
whileprintingrecords;
numbervar goalmtd;
numbervar mtd;
if gridrowcolumnvalue("measures") = "goalmtd" and
gridrowcolumnvalue("period") = "P1" then
totext(goalmtd-mtd);
but i dont understand this part
"
Then you can create a formula in the main report, in a section below the one in which the crosstab is executing, like the following:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.