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
bslh88
New Member

Benchmark Weighted Average

Hi everyone, 

 

Appreciate any help I can get here. I have three tables: 

 

Table 1 lists the details of funds that I invest in and the value of each issuer in the fund. 

 

FundDetail   
DateFundIssuerValue
31/12/2022Fund_AIssuer_A120
31/12/2022Fund_AIssuer_B120
31/12/2022Fund_AIssuer_C120
31/12/2022Fund_AIssuer_D120
31/12/2022Fund_AIssuer_E120
31/12/2022Fund_BIssuer_C60
31/12/2022Fund_BIssuer_D60
31/12/2022Fund_BIssuer_E60
31/12/2022Fund_BIssuer_F60
31/12/2022Fund_BIssuer_G60
31/12/2022Fund_CIssuer_A200
31/12/2022Fund_CIssuer_B200
31/12/2022Fund_CIssuer_C200
31/12/2022Fund_CIssuer_F200
31/12/2022Fund_CIssuer_G200
31/12/2023Fund_AIssuer_A150
31/12/2023Fund_AIssuer_B150
31/12/2023Fund_AIssuer_C150
31/12/2023Fund_AIssuer_D150
31/12/2023Fund_AIssuer_E150
31/12/2023Fund_BIssuer_C90
31/12/2023Fund_BIssuer_D90
31/12/2023Fund_BIssuer_E90
31/12/2023Fund_BIssuer_F90
31/12/2023Fund_BIssuer_G90
31/12/2023Fund_CIssuer_A400
31/12/2023Fund_CIssuer_B400
31/12/2023Fund_CIssuer_C400
31/12/2023Fund_CIssuer_F400
31/12/2023Fund_CIssuer_G400

 

Table 2 lists the details of the index that the funds are benchmarked against and the weight of each issuer in the benchmarks. 

 

BenchmarkDetail   
DateBenchmarkIssuerWeight
31/12/2022BM_AIssuer_A16.7%
31/12/2022BM_AIssuer_B16.7%
31/12/2022BM_AIssuer_C16.7%
31/12/2022BM_AIssuer_D16.7%
31/12/2022BM_AIssuer_E16.7%
31/12/2022BM_AIssuer_F16.7%
31/12/2022BM_BIssuer_D20.0%
31/12/2022BM_BIssuer_E20.0%
31/12/2022BM_BIssuer_F20.0%
31/12/2022BM_BIssuer_G20.0%
31/12/2022BM_BIssuer_H20.0%
31/12/2023BM_AIssuer_A16.7%
31/12/2023BM_AIssuer_B16.7%
31/12/2023BM_AIssuer_C16.7%
31/12/2023BM_AIssuer_D16.7%
31/12/2023BM_AIssuer_E16.7%
31/12/2023BM_AIssuer_F16.7%
31/12/2023BM_BIssuer_D20.0%
31/12/2023BM_BIssuer_E20.0%
31/12/2023BM_BIssuer_F20.0%
31/12/2023BM_BIssuer_G20.0%
31/12/2023BM_BIssuer_H20.0%

 

Table 3 lists maps the funds to the benchmark it tracks. 

 

FundBenchmarkMap
FundBenchmark
Fund_ABM_A
Fund_BBM_A
Fund_CBM_B

 

I'm trying to calculate the weight and value of each issuer in a blended benchmark. The value of securities in the blended benchmark are calculated by multiplying the weight in the standalone benchmarks with the total value of the securities in the fund that it is benchmarked against. The blended weight is the value of these securities against the total value of all the selected funds. In excel, this will look like the table below: 

 

DateFundBenchmarkIssuerWeightTotalValueofFundValue in BenchmarkBlendedWeight
31/12/2022Fund_ABM_AIssuer_A16.7%6001005.3%
31/12/2022Fund_ABM_AIssuer_B16.7%6001005.3%
31/12/2022Fund_ABM_AIssuer_C16.7%6001005.3%
31/12/2022Fund_ABM_AIssuer_D16.7%6001005.3%
31/12/2022Fund_ABM_AIssuer_E16.7%6001005.3%
31/12/2022Fund_ABM_AIssuer_F16.7%6001005.3%
31/12/2022Fund_BBM_AIssuer_A16.7%300502.6%
31/12/2022Fund_BBM_AIssuer_B16.7%300502.6%
31/12/2022Fund_BBM_AIssuer_C16.7%300502.6%
31/12/2022Fund_BBM_AIssuer_D16.7%300502.6%
31/12/2022Fund_BBM_AIssuer_E16.7%300502.6%
31/12/2022Fund_BBM_AIssuer_F16.7%300502.6%
31/12/2022Fund_CBM_BIssuer_D20.0%100020010.5%
31/12/2022Fund_CBM_BIssuer_E20.0%100020010.5%
31/12/2022Fund_CBM_BIssuer_F20.0%100020010.5%
31/12/2022Fund_CBM_BIssuer_G20.0%100020010.5%
31/12/2022Fund_CBM_BIssuer_H20.0%100020010.5%

 

I'm trying to find a solution that works even when I remove the Fund and Index column filters. 

 

DateIssuerValue in BenchmarkBlendedWeight
31/12/2022Issuer_A1507.9%
31/12/2022Issuer_B1507.9%
31/12/2022Issuer_C1507.9%
31/12/2022Issuer_D35018.4%
31/12/2022Issuer_E35018.4%
31/12/2022Issuer_F35018.4%
31/12/2022Issuer_G20010.5%
31/12/2022Issuer_H20010.5%

 

Getting to the last table is where I am stuck. Also bear in mind there are issuers in the Funds that are not in the index that it is benchmarked against and vice versa. 

 

Thanks

2 REPLIES 2
lbendlin
Super User
Super User

You lost me on the blended weights, and I also get slightly different results for the third table.

 

lbendlin_0-1697924701067.png

Attached is how far I got.

Thanks @lbendlin 

I should have been clearer in my description but you are on the right track. But as you can see, the differences occur when there are mismatches between Issuer(s) in the Benchmark and the Issuer(s) in the Fund. 


My current, not so elegant solution is by creating another query which merges all the necessary columns. I'd settle for it, but my original data is much longer than this, so the performance lag is considerable, not to mention I'm not able to display certain visualisation due to resource maxing out. 

 

I'm hoping for a dax solution that have the same effect as creating the Merged table in the pbix attached without having to duplicate the table and use too many calculated columns. 

Benchmark Weighted Average (2) 

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.