ahh, i took the Tax rate formula out since it wasn't working. Heres what it looks like when i put it back into the report:
SELECT `Driver`.`Type`, `Driver`.`Legal Entity`, `Driver`.`Investor Common ID`, `Driver`.`Investor`, `Driver`.`GL End Date`, `Driver`.`Date`, `Driver`.`Deal Name`, `Driver`.`Position`, `Driver`.`JPY Withholding Amt`, `Driver`.`Conversion Rate`, `Driver`.`USD Withholding Amount`, `Tax`.`Date`, `Tax`.`Tax Rate Deal`, `TaxBase`.`Date`, `TaxBase`.`Tax Rate Base`
FROM (`Driver$` `Driver` LEFT OUTER JOIN `Tax$` `Tax` ON (((((`Driver`.`Investor Common ID`=`Tax`.`Investor Common ID`) AND (`Driver`.`Legal Entity`=`Tax`.`Legal Entity`)) AND (`Driver`.`Deal Name`=`Tax`.`Deal Name`)) AND (`Driver`.`Position`=`Tax`.`Position`)) AND (`Driver`.`Investor`=`Tax`.`Investor`)) AND (`Driver`.`Type`=`Tax`.`Type`)) LEFT OUTER JOIN `'Tax Base Rate$'` `TaxBase` ON (((`Driver`.`Type`=`TaxBase`.`Type`) AND (`Driver`.`Legal Entity`=`TaxBase`.`Legal Entity`)) AND (`Driver`.`Investor`=`TaxBase`.`Investor`)) AND (`Driver`.`Investor Common ID`=`TaxBase`.`Investor Common ID`)
ORDER BY `Driver`.`Type`, `Driver`.`Investor Common ID`, `Driver`.`Legal Entity` DESC, `Driver`.`Date`
Here are the formula's being used:
Base Tax:
if {TaxBase.Date} = maximum({TaxBase.Date},{Driver.Legal Entity}) then {TaxBase.Tax Rate Base} else 0
Specific Tax
if {Tax.Date} = maximum({Tax.Date},{Driver.Legal Entity}) then {Tax.Tax Rate Deal}
Tax Rate (actual field being brought into the Details section)
if {Driver.JPY Withholding Amt}=0 then
0 else
if isnull({@Spec Tax})then
{@Base Tax}*100 else
{@Spec Tax}*100