Forum Discussion

Rgrullon's avatar
Rgrullon
New Member
3 years ago

Finding the correct Data modeling format

Hi Guys, in new in the power bi world, and I`m receiving some basic information on Excel, I'm trying to design a Kpi master to get the best data for a small company. I got stuck in some things for example I know how to merge and combine columns but, now I want to match columns with rows and have this data like xlookup from Excel. I will let example data to better know the problem.

 

 This is the Main data of sales I get,  as you can see  the products are columns and stores are  rows

also, we get the same store but different weeks, so I design and unique id using =concat( week+ store)

 

STOREWEEKidMission - Salsa - Medium - Chunky - 16.0oz (7373100954)Calidad - Chip - White - Triangle - Cello - 11.0oz (7794800907)Calidad - Chip - Yellow - Triangle - Cello - 11.0oz (7794800906)Great Value - Flour - Soft Taco - Carb Balance - 8.0 - 8ct - 12.0oz (7874229483)Guerrero - Corn - White - 5.5 - 30ct - 25.0oz (4856406002)Guerrero - Corn - White - 5.5 - 80ct - 66.67oz (4856406000)Guerrero - Flour - Burrito - Casera - 9.5 - 8ct - 20.0oz (4856407205)
PLAZA TROPICAL 167426Wk 25 Jun/23 (18-24)Wk 25 Jun/23 (18-24)PLAZA TROPICAL 167426189189111111118
M1ISSION ACCOMPLISHED LLC 983407Wk 24 Jun/23 (11-17)Wk 24 Jun/23 (11-17)MISSION ACCOMPLISHED LLC 9834071871871-9-4-1311
MISSION ACCOMPLISHED LLC 983416Wk 22 Jun/23 (28-3)Wk 22 Jun/23 (28-3)MISSION ACCOMPLISHED LLC 9834163737110-176511

 

 

Now imagine I get this data that shows me the code of each product and also the total sales and the  AWS (average week sales)

and I want to match the items on this with the items on the upper table and extract: code, mdq(minimum delivery qty), total sales, and aws.  

 

codedescriptionMDQTOTAL SALESAWS
3661Mission - Salsa - Medium - Chunky - 16.0oz (7373100954)121500214.29
7751Calidad - Chip - White - Triangle - Cello - 11.0oz (7794800907) 161600228.57

7752

 

Great Value - Flour - Soft Taco - Carb Balance - 8.0 - 8ct - 12.0oz (7874229483)161700242.57

 

also,  this other table has the store on columns and the name and route.

Sold-toNameRegion
PLAZA TROPICAL 167426826 W.Orlando-Daniel
071 SPR TRG #1519 113392G657/698 N.Clermont-Gustavo
M1ISSION ACCOMPLISHED LLC 983407412 Oviedo-Jefferson
MISSION ACCOMPLISHED LLC 983416414 Poinciana-Carlos
071 SPR TRG #2264 132358G803/408 Winter Garden-Michelet

 

 

now my problem is to get just one single table that has all those information by store so I can make charts and present just one complete report, of course, I get thousands of rows and columns of information but with this example data I think you guys can help me also I add some images attached.

 

 

 

 

lastly, this is how my dashboard is looking now, its just a dummy version of course 

 

 

No RepliesBe the first to reply