func shareOfSales(dimensions []float64, total float64) []float64 {
	var deposit []float64
	for _, v := range dimensions {
		d := v * 100.0 / total
		deposit = append(deposit, d)
	}
	return deposit
}
// shareOfSales Determines the share of sales for each analyzed position
// (sales for each are divided by the total amount, the value in % is output).
//
// The values are taken out in a separate column "share".
shareOfSales Determines the share of sales for each analyzed position
(sales for each are divided by the total amount, the value in % is output).

The values are taken out in a separate column "share".
// shareOfSales Determines the share of sales for each analyzed position // ( sales for each are divided by the total amount the value in % is output ) . // // The values are taken out in a separate column " share " .
func shareOfSales(dimensions []float64, total float64) []float64 {
	var deposit []float64
	for _, v := range dimensions {
		d := v * 100.0 / total
		deposit = append(deposit, d)
	}
	return deposit
}
func shareOfSales ( dimensions [ ] float64 , total float64 ) [ ] float64 { var deposit [ ] float64 for _ , v := range dimensions { d := v * 100.0 / total deposit = append ( deposit , d ) } return deposit }
shareOfSales Determines the share of sales for each analyzed position
(sales for each are divided by the total amount, the value in % is output).
shareOfSales Determines the share of sales for each analyzed position ( sales for each are divided by the total amount the value in % is output ) .