Forum Discussion
JenaT
8 years agoFrequent Visitor
Split a cell into multiple rows and calculating values
I have invoice data (product names and purchased pieces aggregated on 1 row) that I need to transform into sales data, i.e. disaggregate the product name from the nr of pieces and also split the sale...
MFelix
8 years agoSuper User
Is your information with a line break a you present in you sample data?
If so you have to first split the cell by row by the line break simbol "#(lf)" and then make the split by columns by the "-".
Be aware that taking into account the sales columns you present the calculation of the Sales will bee repeat in all of your columns so the second row you present will have:
Jill | 13/07/2018 | Product 1 - 1 | 50
Jill | 13/07/2018 | Product 2 - 4 | 50
See below the screenshots and attach a PBIX file.
Regards,
MFelix
JenaT
8 years agoFrequent Visitor
Thanks, I did not know about the line feed.
But I am still presented with the problem of splitting sales amounts between the products. Is there any possible solution to that using the advanced editor for example or any other way?