Hi,
I loaded this table (name = annex1) in Power Query and I'm trying to add two columns
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 325"]
<tbody>[TR]
[TD]Unit-Year[/TD]
[TD]Year[/TD]
[TD]Cat[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]1-2010[/TD]
[TD]2010[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]2-2010[/TD]
[TD]2010[/TD]
[TD]B[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]3-2010[/TD]
[TD]2010[/TD]
[TD]C[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]4-2010[/TD]
[TD]2010[/TD]
[TD]D[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]5-2010[/TD]
[TD]2010[/TD]
[TD]A[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]6-2010[/TD]
[TD]2010[/TD]
[TD]B[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]7-2010[/TD]
[TD]2010[/TD]
[TD]C[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]8-2011[/TD]
[TD]2011[/TD]
[TD]D[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]9-2011[/TD]
[TD]2011[/TD]
[TD]A[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]10-2011[/TD]
[TD]2011[/TD]
[TD]B[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]11-2011[/TD]
[TD]2011[/TD]
[TD]C[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD]12-2012[/TD]
[TD]2012[/TD]
[TD]D[/TD]
[TD="align: right"]31[/TD]
[/TR]
[TR]
[TD]13-2012[/TD]
[TD]2012[/TD]
[TD]A[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]14-2012[/TD]
[TD]2012[/TD]
[TD]B[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]15-2012[/TD]
[TD]2012[/TD]
[TD]C[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]16-2012[/TD]
[TD]2012[/TD]
[TD]D[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]17-2010[/TD]
[TD]2010[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Here are the 2 columns I want to add
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 234"]
<tbody>[TR]
[TD]TotHoursYear[/TD]
[TD]TotHoursYearCat[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]34[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]28[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]34[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]28[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]34[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I believe the answer is here but I just can't make it work. I'm not an IT guy and I'm new to M language.
Thank you!
I loaded this table (name = annex1) in Power Query and I'm trying to add two columns
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 325"]
<tbody>[TR]
[TD]Unit-Year[/TD]
[TD]Year[/TD]
[TD]Cat[/TD]
[TD]Hours[/TD]
[/TR]
[TR]
[TD]1-2010[/TD]
[TD]2010[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
[TR]
[TD]2-2010[/TD]
[TD]2010[/TD]
[TD]B[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]3-2010[/TD]
[TD]2010[/TD]
[TD]C[/TD]
[TD="align: right"]20[/TD]
[/TR]
[TR]
[TD]4-2010[/TD]
[TD]2010[/TD]
[TD]D[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD]5-2010[/TD]
[TD]2010[/TD]
[TD]A[/TD]
[TD="align: right"]14[/TD]
[/TR]
[TR]
[TD]6-2010[/TD]
[TD]2010[/TD]
[TD]B[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD]7-2010[/TD]
[TD]2010[/TD]
[TD]C[/TD]
[TD="align: right"]8[/TD]
[/TR]
[TR]
[TD]8-2011[/TD]
[TD]2011[/TD]
[TD]D[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD]9-2011[/TD]
[TD]2011[/TD]
[TD]A[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD]10-2011[/TD]
[TD]2011[/TD]
[TD]B[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD]11-2011[/TD]
[TD]2011[/TD]
[TD]C[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD]12-2012[/TD]
[TD]2012[/TD]
[TD]D[/TD]
[TD="align: right"]31[/TD]
[/TR]
[TR]
[TD]13-2012[/TD]
[TD]2012[/TD]
[TD]A[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD]14-2012[/TD]
[TD]2012[/TD]
[TD]B[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD]15-2012[/TD]
[TD]2012[/TD]
[TD]C[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD]16-2012[/TD]
[TD]2012[/TD]
[TD]D[/TD]
[TD="align: right"]4[/TD]
[/TR]
[TR]
[TD]17-2010[/TD]
[TD]2010[/TD]
[TD]A[/TD]
[TD="align: right"]10[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
Here are the 2 columns I want to add
[TABLE="width: 500"]
<tbody>[TR]
[TD][TABLE="class: grid, width: 234"]
<tbody>[TR]
[TD]TotHoursYear[/TD]
[TD]TotHoursYearCat[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]34[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]28[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]15[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]34[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]27[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]28[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]6[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]77[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]45[/TD]
[/TR]
[TR]
[TD="align: right"]157[/TD]
[TD="align: right"]29[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]40[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]2[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]18[/TD]
[/TR]
[TR]
[TD="align: right"]95[/TD]
[TD="align: right"]35[/TD]
[/TR]
[TR]
[TD="align: right"]104[/TD]
[TD="align: right"]34[/TD]
[/TR]
</tbody>[/TABLE]
[/TD]
[/TR]
</tbody>[/TABLE]
I believe the answer is here but I just can't make it work. I'm not an IT guy and I'm new to M language.
Thank you!