L
Laura
I have created a report that gives me subtotals "Summed"
fields. I am having a problem trying to get it to total
by percent, the percent needs to be the difference of two
other summed totals. I tried both of these formulas,
however the first one won't work using "Sum Of", so I
tried the second one, and received an error due to the
percent sign, I remove the Percent sign (on both formulas)
but it still doesn't total correctly.
=IIF([Sum Of LYR YTD SALES]+[Sum Of CUR YTD SALES]=0,0,IIF
([Sum Of LYR YTD SALES]=0,100%,IIF([Sum Of LYR YTD SALES]
<0,(+[Sum Of CUR YTD SALES]-[Sum Of LYR YTD SALES])/[Sum
Of LYR YTD SALES]*-1,(+[Sum Of CUR YTD SALES]-[Sum Of LYR
YTD SALES])/[Sum Of LYR YTD SALES])))
=IIF([LYR YTD SALES]+[CUR YTD SALES]=0,0,IIF([LYR YTD
SALES]=0,100%,IIF([LYR YTD SALES]<0,([CUR YTD SALES]-[LYR
YTD SALES])/[LYR YTD SALES]*-1,([CUR YTD SALES]-[LYR YTD
SALES])/[LYR YTD SALES])))
Does anyone have any suggestions or help, and why won't
access accept the percent sign?
-Thanks,
Laura
fields. I am having a problem trying to get it to total
by percent, the percent needs to be the difference of two
other summed totals. I tried both of these formulas,
however the first one won't work using "Sum Of", so I
tried the second one, and received an error due to the
percent sign, I remove the Percent sign (on both formulas)
but it still doesn't total correctly.
=IIF([Sum Of LYR YTD SALES]+[Sum Of CUR YTD SALES]=0,0,IIF
([Sum Of LYR YTD SALES]=0,100%,IIF([Sum Of LYR YTD SALES]
<0,(+[Sum Of CUR YTD SALES]-[Sum Of LYR YTD SALES])/[Sum
Of LYR YTD SALES]*-1,(+[Sum Of CUR YTD SALES]-[Sum Of LYR
YTD SALES])/[Sum Of LYR YTD SALES])))
=IIF([LYR YTD SALES]+[CUR YTD SALES]=0,0,IIF([LYR YTD
SALES]=0,100%,IIF([LYR YTD SALES]<0,([CUR YTD SALES]-[LYR
YTD SALES])/[LYR YTD SALES]*-1,([CUR YTD SALES]-[LYR YTD
SALES])/[LYR YTD SALES])))
Does anyone have any suggestions or help, and why won't
access accept the percent sign?
-Thanks,
Laura