hi there
well yesterday i had add power query for my Microsoft excel 2010, so i am really new to this. so my question is that power query can add columns, but no rows? unless if we add column then we pivot it, but even adding columns has to be manual, i mean i dont know yet how to make an automatic formula.
in my scenario i have the following data
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Description[/TD]
[TD]type[/TD]
[TD]cat.[/TD]
[TD]number[/TD]
[/TR]
[TR]
[TD]A-001[/TD]
[TD]alpha[/TD]
[TD]a[/TD]
[TD]cat.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-003[/TD]
[TD]delta[/TD]
[TD]a[/TD]
[TD]cat.2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
now the "number" represents how many time is data copied for the represented row.
so what i am trying to achieve first is as follow:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Description[/TD]
[TD]type[/TD]
[TD]cat.[/TD]
[TD]number[/TD]
[/TR]
[TR]
[TD]A-001[/TD]
[TD]alpha[/TD]
[TD]a[/TD]
[TD]cat.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-003[/TD]
[TD]delta[/TD]
[TD]a[/TD]
[TD]cat.2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-003[/TD]
[TD]delta[/TD]
[TD]a[/TD]
[TD]cat.2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
so is there a way to go to power query advance and add a formula to make this automatically?
thank you in advance and best regards
Khabouri
well yesterday i had add power query for my Microsoft excel 2010, so i am really new to this. so my question is that power query can add columns, but no rows? unless if we add column then we pivot it, but even adding columns has to be manual, i mean i dont know yet how to make an automatic formula.
in my scenario i have the following data
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Description[/TD]
[TD]type[/TD]
[TD]cat.[/TD]
[TD]number[/TD]
[/TR]
[TR]
[TD]A-001[/TD]
[TD]alpha[/TD]
[TD]a[/TD]
[TD]cat.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-003[/TD]
[TD]delta[/TD]
[TD]a[/TD]
[TD]cat.2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
now the "number" represents how many time is data copied for the represented row.
so what i am trying to achieve first is as follow:
[TABLE="class: grid, width: 500, align: center"]
<tbody>[TR]
[TD]ID[/TD]
[TD]Description[/TD]
[TD]type[/TD]
[TD]cat.[/TD]
[TD]number[/TD]
[/TR]
[TR]
[TD]A-001[/TD]
[TD]alpha[/TD]
[TD]a[/TD]
[TD]cat.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-003[/TD]
[TD]delta[/TD]
[TD]a[/TD]
[TD]cat.2[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-003[/TD]
[TD]delta[/TD]
[TD]a[/TD]
[TD]cat.2[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]C-004[/TD]
[TD]beta[/TD]
[TD]c[/TD]
[TD]cat.1[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
so is there a way to go to power query advance and add a formula to make this automatically?
thank you in advance and best regards
Khabouri