Oct 05 2020 03:40 PM
Oct 05 2020 03:40 PM
I have a crosstab excel file with columns of Product, Product description, Sale in Kg for 12 months in 12 columns, corresponding Sale in Value (Euros) for 12 months in the next 12 columns. I made this base sheet as a Table and added to Power pivot. Now I need to do the ABC, XYZ analysis based on the qty and Value. Taking the last 12 months, I am trying to calculate the yearly total sum of the quantity in Kg and the yearly total sum of value in Euros. In the add column in power pivot, I used a Sum function, selected the 12 months Sales Kg values from dropdown and another add column, again used the Sum function, selected 12 months Sale in Value (Euro). But the values are not totaling up and showing the same value across for all rows. I guess I can't directly add up the totals like that to get the sum. I might need to unpivot the monthly quantities and respective monthly costs. But not sure how to do it and continue ABC, XYZ analysis. Any help from experts? If so, please let me know. Thanks a ton in advance.
Oct 06 2020 04:52 AM
I have seen your dataset & your data need to be normalize using Power Query then you can load your data into the data model to do rich analysis.
Kindly find attached is your file with change done to it.
Regards, Faraz Shaikh | MCT, MIE, MOS Master, Excel Expert
If you find the above solution resolved your query don't forget mark as Official/Best Answer and like to help the other members find it more
Oct 06 2020 07:05 AM
Thanks. The challenge is to convert the cross tab information into the list so as to be able to upload into the Power Pivot or Power BI for subsequent analysis. I am not sure how it can be done. My actual files are quite huge with the 2000+ product sales across all the months in the year with sales qty in Kg and sales value in Euro in the cross tab fashion as I showed in the example file. This transformation needs to be done for all the warehouses for all countries which come to be about 50+ files. I need to have a mechanism to automate transformation for all these files.
I adopted one in-direct method which may not be the best
1. Copied and created an identical copy of the same file. Now I have two files of the same info
2. In the first file, I removed the Sales in Euro values and kept only the characteristics and Kg values
3. I unpivoted the Kg values and split the attribute column into two and separated the month and year information in one column.
4. Similarly, I removed the Sales in Kg values from the second file and kept only the characteristics and Euro values
5. I unpivoted the Euro values and split the attribute column into two and separated the month and year information in one column.
6. I added both the sheets into the model and linked them with Product ID.
7. Now there are two tables but not sure it is the right way or not and gives the ABC, XYZ analysis.
Experts, please suggest if there is any simpler way to do it.