Hello,
I have the if statement below in a formula and the results I'm getting are zeros for all the municipalities that are pulled onto the report. Can anyone see where i'm going wrong with this? Should I be using a case statement?? Thanks in advance.
if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust} or {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust2} then
(if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust} then
if {?AdjustmentOperator} = 'Subtract' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} - {?AdjustmentAmount}
else if {?AdjustmentOperator} = 'Add' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} + {?AdjustmentAmount})
else (if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust2} then
if {?AdjustmentOperator2} = 'Subtract' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} - {?AdjustmentAmount2}
else if {?AdjustmentOperator2} = 'Add' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} + {?AdjustmentAmount2})
else
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate}
This statement currently works - all i'm trying to do is add additional parameters for the user to enter information to adjust more than one Municipalities information.
if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust} then
if {?AdjustmentOperator} = 'Subtract' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} - {?AdjustmentAmount}
else if {?AdjustmentOperator} = 'Add' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} + {?AdjustmentAmount}
else
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate}
else
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate}
I have the if statement below in a formula and the results I'm getting are zeros for all the municipalities that are pulled onto the report. Can anyone see where i'm going wrong with this? Should I be using a case statement?? Thanks in advance.
if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust} or {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust2} then
(if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust} then
if {?AdjustmentOperator} = 'Subtract' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} - {?AdjustmentAmount}
else if {?AdjustmentOperator} = 'Add' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} + {?AdjustmentAmount})
else (if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust2} then
if {?AdjustmentOperator2} = 'Subtract' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} - {?AdjustmentAmount2}
else if {?AdjustmentOperator2} = 'Add' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} + {?AdjustmentAmount2})
else
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate}
This statement currently works - all i'm trying to do is add additional parameters for the user to enter information to adjust more than one Municipalities information.
if {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME} = {?MunicipalitytoAdjust} then
if {?AdjustmentOperator} = 'Subtract' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} - {?AdjustmentAmount}
else if {?AdjustmentOperator} = 'Add' then
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate} + {?AdjustmentAmount}
else
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate}
else
Sum ({@SumRefAdj}, {VW_MORTGAGE_TAX_BY_TOWN_MC.MUNICIPALITY_NAME})*{@GetTaxRate}