Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18014

General Table and Column Creation Using Different Dates

$
0
0

Hi, I've asked this before and I am unable to figure this out

 

I work with portfolio information. I'm bringing in two tables. One is transaction based, with each row having a date to reference a transaction. The other is an 'as at' date piece of information that has total market value of the portfolio. The goal I'm trying to achieve is the following:


- Allow the user to select a date range on the report/dashboard (for example let's say she chooses March 1, 2017 to March 31 2017)
- The table with transactions will be filtered between these dates; this I'm able to do in Power BI with no problem if I select transaction date as the date slicer/filter field
- The table with the 'as at' information will show twice, once in one column (beginning market value) as at March 1, 2017 and once again in another column as at March 31, 2017 (ending market value)


There are a few more nuances but as you may have guessed the goal is to take the beginning value, account for the transactions, and ensure the ending value makes sense.


I think I need to make a joined date table but I'm having trouble getting it to work.

I've attached three photos, the first (Trans list) shows the transactions by portfolios, the total market value (total MV), the third is a table I've created, a sum table where, by portfolio, then by transaction type, summing the cash from the trans list. This is where I think my problem is. I am trying to do the following:

1. With a date slicer, link this table such that when I change my dates, it recalculates the sum table for these dates based on the trans list dates within the range
2. With the same date slicer the following:
    a. the MV1 column will pull the value from the total MV table from the "from" (first) date selected from the slicer
    b. the MV2 column will pull the value from the total MV table from the "to" (last) date selected from the slicerSum Table.PNGtotal MV.PNGTrans list.PNG


All feedback would be greatly appreciated


Viewing all articles
Browse latest Browse all 18014

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>