Forum Discussion

maasool's avatar
maasool
Helper I
2 years ago

Calculation help, data from multiple tables

I have three tables:

1. Table PRICES with multiple ISIN's (securities) and their PRICE by each DATE;
2. Table, where are number of securities (AMOUNT) by each ISIN per different PORTFOLIO. In this table, I have amounts on dates, when there have been changes. For example, on 09.10.2023, three new ISIN's were added to the portfolio each 1000 units. There have been no changes afterwards, so the number of units by each ISIN is the same on 24.10.2023. However, this is not in the table, as table records only changes.
3. Calendar table.

I'd like to create a power pivot, where I could have AMOUNT of securities and their value (AMOUNT * PRICE) at any random date by different portfolios. However, I can't manage to get it to work. I managed to calculate Balance per ISIN per portfolio for all dates (used TOTALYTD), but I can't figure out what to do with prices, because for prices, I need to get exact price on that date and exact price i need to calculate the values for different dates.

Thank you for help!

2 Replies