Forum Discussion

redred's avatar
redred
Frequent Visitor
6 years ago

Help Moving from Excel to PowerBI

Hi, I have a lot of Excel experience but very new to PowerBI. I have a dataset as follows:

 

FruitBasketPounds% Sweet% Ripe
BlueberriesBasket A110%60%
CherriesBasket A120%50%
BlackberriesBasket B230%40%
StrawberriesBasket B340%30%
BlueberriesBasket C450%20%
CherriesBasket C560%10%

 

ShopperBasketOwnership
Shopper XBasket A50%
Shopper XBasket B50%
Shopper YBasket A25%
Shopper YBasket C25%
Shopper ZBasket B25%
Shopper ZBasket C75%

 

In excel, I have an output that determines a weighted average % (by weight in pounds) of Shopper [#]'s basket for the % sweet and % ripe variables. Since I only need to do it for one shopper at a time, I figure out the "active" shopper's ownership of all of the fruits (index/match), and then do a sumproduct/sum for the weighted average. I'm getting tripped up on how to do this in PowerBI - since I need to do it for all shoppers at once, I'm lost on how to start going about it. Can anyone point me in the right direction? I'm still reading through all of the content/tutorials out there but couldn't make it work with the lookup function - it's for a somewhat time sensitive project so any help is very appreciated! Thank you!

4 Replies