Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
PatrickWong
Helper I
Helper I

Stock Portfolio over time

Hi all,
I am pretty novice in power bi and attempting what I think is a challenging visualisation, my asset portfolio history
I have a table where I track all my asset investment (attached Ledger.xlsx)

 

From the Ledger.xlsx, I created 3 tables within powerbi,
1) using the stock symbol, I created stocklist table as a reference
2) using the stock symbol, I create a closing price of each stock I want to track
3) 3rd table is direct from ledge where transaction of all the stock are recorded

 

What I want to create is 2 visualisation
1) what is my current market value of all my asset (done)
2) historical market value of all my asset over time using closing price to determine the market value (this is where I am stuck)

could be wrong, I may have link the table incorrectly and DAX not written correctly.
To determine the asset market value, I am using a table visualisation, and the following columns
a) a running date (not just the day that my asset has a transaction) on a table visualisation,
b) Stock Symbol
c) Closing price of the stock
d) Cumulative units of the stock (any transaction will result to change in the cumulative units)
e) Market Value = closing price * cumulative units

I created 2 tab in the report trying to achieve the above.
Tab 1 can achieve a,b,c and
Tab 2 can achieve a.b.d but I am not able to get a,b,c,d

Please help

 

will later include capital gain history etc

 

Ledger.xlsx

https://docs.google.com/spreadsheets/d/16M2W4ZB3A5YKTlHEAlrmypobyhqBFeBo/edit?usp=sharing&ouid=11256...

pix

https://drive.google.com/file/d/1K9UvS9016GIDYIxm_U94VniZI_7RbVIP/view?usp=sharing

2 REPLIES 2
danextian
Super User
Super User

You samples are inaccessible

danextian_0-1726399698836.png

 










Did I answer your question? Mark my post as a solution!


Proud to be a Super User!









"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.