I have 2 dates that i need to make a formula with and have used datediff for the most part. now i have an issue if the time period crosses years. For example, i need my formula to give me partial $ information based on year.
FROMDATE: 12/14/2012
TODATE: 3/18/2013
Expense: 64,870
I need the expense related to 1/1/2013 to 3/18/2013 in one column and 12/14/2012 to 12/31/2012 in another.. i have done it before but cannot find the query and believe it was a very rustic formula consisting of quite a few IIF statements.
any ideas on how to make this as simple as possible?