Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hi all,
I'm struggling for a long time with applying a weighted average with three Tables for a specific item over time. I've seen other issues regarding weighted average, but not in this format.
Relationship Tables:
Table 1: Spend. Here the spend contains an identifier, date and price.
Table 2: Commodities; This table contains the raw commidities [items] that influence the price of our spend. The items are accompanied by a date + price.
Table 3: Weights. The weights have a weight [value], an Item and an Identifier.
Solution:
What I want is that, if I select an an identifier (say identifier = 1), that the filtered weights [Table 3, where Identifier =1] are multiplied by Table 1. Hence, 30% * 60, 30% * 63, 40% * 64. I've tried many different routes, including an inner join summation or a dynamic column based on a VAR, but they don't work. The final goal would be to link the weights again to an index, (which you can also find in the file), but I think I can manage the last part myself. Your help would be very much appreciated!
Link: Weighted Average of Indices.pbix
@Justinnn , add a new column in table 2 using Table 2
New values = Table2[price] * maxx(filter(Table3, Table3[Item] = Table2[Item]) , Table3[Value])
refer 4 ways (related, relatedtable, lookupvalue, sumx/minx/maxx with filter) to copy data from one table to another
https://www.youtube.com/watch?v=Wu1mWxR23jU
https://www.youtube.com/watch?v=czNHt7UXIe8
User | Count |
---|---|
21 | |
20 | |
15 | |
10 | |
7 |
User | Count |
---|---|
28 | |
28 | |
12 | |
12 | |
12 |