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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JHob
Advocate I
Advocate I

Portfolio Model

Hi

 

I am modeling performance of stocks in a portfolio to their benchmark.  I have a master table with individual stocks and a portfolio table with the percentage of each individual stock.

 

I need to make comparisons of the portfolio weightings compared to the benchmark portfolioi weightings.

 

Should I create a separate table for the benchmarks or should I combine in the portfoliot table.  For example portfolio table if combined will be

 

 

PORTFOLIO1 Stock1 x%

PORTFOLIO1 Stock 2 y%

PORTFOLIO2 Stock1 xx%

PORTFOLIO2 Stock 2 yy%

PORTFOLIO2 Stock 3 zz%

BENCHMARK2 Stock 2 a%

BENCHMARK2 Stock 3 b%

 

1 ACCEPTED SOLUTION
andre
Memorable Member
Memorable Member

You need to have a Portfolio Table and Portfolio Details table to capture portfolio information, then you will need to have a benchmark and benchmark details table for Benchmark and then you need to find a way to link your Porftolio record with a corresponding benchmark record so you know which porfolios use what for benchmark.

 

this would be easiest, if i understand your problem correctly.. you could potentially have it all in two tables, summary and detail, but then you will need to have a flag in summary table to specify whehter it's a portfolio or benchmarck, and then add another column for benchmark ID, so you can link portfoloio data with benchmark data.  but that woud make DAX to do analysis a little bit more complicated.

View solution in original post

2 REPLIES 2
andre
Memorable Member
Memorable Member

You need to have a Portfolio Table and Portfolio Details table to capture portfolio information, then you will need to have a benchmark and benchmark details table for Benchmark and then you need to find a way to link your Porftolio record with a corresponding benchmark record so you know which porfolios use what for benchmark.

 

this would be easiest, if i understand your problem correctly.. you could potentially have it all in two tables, summary and detail, but then you will need to have a flag in summary table to specify whehter it's a portfolio or benchmarck, and then add another column for benchmark ID, so you can link portfoloio data with benchmark data.  but that woud make DAX to do analysis a little bit more complicated.

mahoneypat
Microsoft Employee
Microsoft Employee

I would combine it as you've shown.  That way, assuming you have a 1:Many from Stocks to Portfolios, you can have a measure like

 

Portfolio Value = SUMX(Portfolio, Portfolio[Percent] * RELATED(Stocks[Value]))

 

or something like that to compare portfolios.

 

If this works for you, please mark it as the solution.  Kudos are appreciated too.  Please let me know if not.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.