I'm new to power pivot so please bear with me :)
I'm trying to perform a calculation as such. Imagine I have a data set for an entire year, which includes a total price for each transaction. Let's say
(Price Table)
1/1/2014, Blue Organization, $5.00
1/1/2014, Red Organization, $10.00
3/1/2014, Blue Organization, $15.00
3/1/2014, Red Organization, $20.00
In the month of Jan, Blue had 20 people, Red had 40. And in the month of March, Blue had 30, and Red had 60.
This member ship count can be stored in a different table, maybe something like this (note, there would be no unique key).
(Member Table).
1/1/2014, Q1, Blue Org, 20
1/1/2014, Q1, Red Org, 40
3/1/2014, Q1, Blue Org, 30
3/1/2015, Q1, Red Org, 60
I'd like to add a new column to show the cost per membership. Members don't cost equally the same, so I'm looking for a cost per month and per quarter.
So in Jan, Blue would be 5/20 and Red would be 10/40. In March, Blue would be 15/30 and Red would be 20/60. For quarterly, Blue would be 20/50 and Red would be 30/100.
Hope this makes sense. I'd like to add calculated columns in the price table, that takes the total for a given transaction, and divides by an appropriate number. That number comes from the member table. Given a date and org, I can find the appropriate monthly
membership and quarterly membership (which would consist of adding multiple lines in the member table).
I'm hoping there is a function or set of functions I could use to help get me started.
Thanks!