Extract one month data from a quarterly table

MikeH2

New Member
Joined
Jan 3, 2012
Messages
13
I am trying to calculate the Dividend Yield for my IRA accounts.
I have a table of Transactions (buy, sell, dividends, etc).
I also have a table of End of Month Stock Values (broken out by account and Ticker).
I calculate the Dividend Yield by dividing the total dividend amount by the total end of month stock value (‘tis close enough).
My problem occurs when I switch my Pivot table from a monthly to a quarterly display.
My dividend amount stays the same (only 1 dividend/quarter), but the total end of month value roughly triples (it is summing the values for all three months).

My transaction table (Trans) looks something like this:

DatePortfolioTickerCategoryAmt
1/1/20151AbcBuy900
1/15/20151Abc_DivInc10
1/15/20152Abc_DivInc5

<tbody>
</tbody>

And the end of month values table (Val) looks something like this

DatePortfolioTickerValue
1/31/20151Abc1000
1/31/20152Abc500
2/28/20151Abc1100
2/28/20152Abc550

<tbody>
</tbody>

This measure pulls up the correct Value when I break it out by month – but not by quarter
=IF([DivMoEqValMo],SUM(Val[Value]),BLANK())

So I figured I needed to try a CALCULATE, FILTER combination like this:
=CALCULATE([Sum of Value],FILTER(Val,MONTH(Val[Date])=MONTH([DivDate])))
Where DivDate =CALCULATE(MAX(Trans[Date]),Trans[Category]="_DivInc")

But this just gives me blank values

Any suggestions?
Thanks
Mike
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

Forum statistics

Threads
1,224,144
Messages
6,176,648
Members
452,739
Latest member
SCEducator

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top