My main driver report is using the following fields:
Type, Fund, Investor, Investor ID, Deal, Position, Date, Foreign Tax Amount, US Tax Amount, Conversion Rate.
The report is being grouped by Investor ID 1st then by Fund.
There are no formula's used in the report, everything is being pulled directly from the driver report.
Specific Tax Rate includes:
Type, Fund, Investor, Investor ID, Deal, Position, Date, Specific Tax Rate
Base Tax Rate includes:
Type, Fund, Investor, Investor ID, Date, Base Tax Rate
Both of the tax reports are linked to the driver report via:
Type, Legal Entity, Investor, Investor ID. The Specific Tax rate is also linked via the Deal Name and Position fields.
For every date, I want to show the Date, Deal Name, Position, Foreign Tax Amount, Conversion Rate, US Tax Amount. I have that in the Details section and it works out perfectly. The only thing left is the Tax Rate.
The formula for the tax rate for an investor is if the Foreign Tax Amount is 0, then the rate is 0, if there is a specific tax rate for a certain deal, then show that. Then if the taxable amount is <>0 and there is no specific tax rate for a certain deal, then show the base tax rate for an investor.
There can be multiple specific and base tax rate for an investor so I only want the report to return the most recent tax rate.
I've posted up a picture from a sample excel file that my data would be pulled from. In this example for John Smith, his Base tax rate is .20 as of 1/1/07, as of 12/31/07, it changes to .30. So if this report were to be run anytime on or after 12/31/07, the base tax rate is .30.
Also for John Smith, his specific Tax rate for Toyota - Interest is .15. So this would override the Base tax rate whenever there is an entry for Toyota - Interest. It would need to show as .15. If the rate changed later on, the report would have to pick up the newer specific tax rate %.
I hope this clears up what my issue here. thanks!