I have to work with a weirdly formatted dataset.
I have a sheet where lines represent different parts of a model (bike)
The first columns are checkboxes to indicate witch models the part is in. So my handlebars are used in two bikes but each model has it's own wheels
As so :
-
model1 model2 model3 part price
-
x x handlebar 2
-
x handlebar 3
-
x big wheel 5
-
x x small wheel 5
-
x x saddle 7
-
x Bigsaddle 9
How could I manage to get a dataset that would take the same data but add a line for every part I need to order as so :
-
model part price
-
model1 handlebar 2
-
model2 handlebar 2
-
model3 handlebar 3
-
model1 big wheel 5
-
model2 small wheel 5
-
model3 small wheel 5
-
model2 saddle 7
-
model3 saddle 7
-
model1 Bigsaddle 9
I have tried filtering my dataset or using a query with or logic to get multiple lines only I get something like this :
-
part price
-
handlebar 2
-
handlebar 2
-
handlebar 3
-
big wheel 5
-
small wheel 5
-
small wheel 5
-
saddle 7
-
saddle 7
-
Bigsaddle 9
I'm looking for a way to filter or query while adding the filter column (model1, model2...) in a the first column of my new dataset.
Thanks for any of your help.