In Power Query - Decimals getting removed

mwoolgar

New Member
Joined
Jan 25, 2011
Messages
11
Hi All

I've been playing with the data below. I'm trying to unpivot the age ranges in power query.

When I do this and then try to load it to the data model all the decimals get removed. Instead of decimals I just get zeros.

What am I doing wrong?

Many thanks

Miles


[TABLE="width: 1052"]
<tbody>[TR]
[TD]User Type[/TD]
[TD]Severity[/TD]
[TD]0-4 Yrs[/TD]
[TD]5-7 Yrs[/TD]
[TD]8-11 Yrs[/TD]
[TD]12-15 Yrs[/TD]
[TD]16 Yrs[/TD]
[TD]17 Yrs[/TD]
[TD]18-19 Yrs[/TD]
[TD]20-24 Yrs[/TD]
[TD]25-29 Yrs[/TD]
[TD]30-39 Yrs[/TD]
[TD]40-49 Yrs[/TD]
[TD]50-59 Yrs[/TD]
[TD]60-69 Yrs[/TD]
[TD]70-79 Yrs[/TD]
[TD]80 + Yrs[/TD]
[TD]Unknown[/TD]
[/TR]
[TR]
[TD]Pedestrians[/TD]
[TD]Killed[/TD]
[TD]5.00[/TD]
[TD]3.00[/TD]
[TD]6.00[/TD]
[TD]12.00[/TD]
[TD]4.00[/TD]
[TD]5.00[/TD]
[TD]14.00[/TD]
[TD]33.00[/TD]
[TD]29.00[/TD]
[TD]44.00[/TD]
[TD]49.00[/TD]
[TD]48.00[/TD]
[TD]31.00[/TD]
[TD]47.00[/TD]
[TD]68.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Pedestrians[/TD]
[TD]KSI[/TD]
[TD]227.76[/TD]
[TD]286.25[/TD]
[TD]517.00[/TD]
[TD]610.25[/TD]
[TD]121.96[/TD]
[TD]107.56[/TD]
[TD]237.17[/TD]
[TD]500.14[/TD]
[TD]438.78[/TD]
[TD]653.73[/TD]
[TD]675.00[/TD]
[TD]579.03[/TD]
[TD]503.17[/TD]
[TD]471.39[/TD]
[TD]475.23[/TD]
[TD]83.10[/TD]
[/TR]
[TR]
[TD]Pedal cyclists[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]4.00[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]3.00[/TD]
[TD]10.00[/TD]
[TD]5.00[/TD]
[TD]15.00[/TD]
[TD]18.00[/TD]
[TD]24.00[/TD]
[TD]14.00[/TD]
[TD]8.00[/TD]
[TD]3.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Pedal cyclists[/TD]
[TD]KSI[/TD]
[TD]4.47[/TD]
[TD]34.32[/TD]
[TD]95.59[/TD]
[TD]230.20[/TD]
[TD]65.08[/TD]
[TD]68.21[/TD]
[TD]101.05[/TD]
[TD]354.78[/TD]
[TD]400.25[/TD]
[TD]779.62[/TD]
[TD]854.73[/TD]
[TD]554.06[/TD]
[TD]227.60[/TD]
[TD]109.08[/TD]
[TD]32.85[/TD]
[TD]64.14[/TD]
[/TR]
[TR]
[TD]Motorcycle 50cc and under[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Motorcycle 50cc and under[/TD]
[TD]KSI[/TD]
[TD]0.00[/TD]
[TD]0.02[/TD]
[TD]0.16[/TD]
[TD]7.93[/TD]
[TD]148.10[/TD]
[TD]90.56[/TD]
[TD]62.80[/TD]
[TD]72.51[/TD]
[TD]35.68[/TD]
[TD]47.89[/TD]
[TD]39.45[/TD]
[TD]24.15[/TD]
[TD]10.74[/TD]
[TD]3.45[/TD]
[TD]2.22[/TD]
[TD]4.68[/TD]
[/TR]
[TR]
[TD]Motorcycle 50cc - riders[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]3.00[/TD]
[TD]15.00[/TD]
[TD]52.00[/TD]
[TD]36.00[/TD]
[TD]45.00[/TD]
[TD]90.00[/TD]
[TD]52.00[/TD]
[TD]16.00[/TD]
[TD]6.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Motorcycle 50cc - riders[/TD]
[TD]KSI[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]12.96[/TD]
[TD]23.83[/TD]
[TD]202.72[/TD]
[TD]440.61[/TD]
[TD]919.68[/TD]
[TD]559.13[/TD]
[TD]847.10[/TD]
[TD]1108.99[/TD]
[TD]800.87[/TD]
[TD]305.70[/TD]
[TD]52.37[/TD]
[TD]9.45[/TD]
[TD]41.28[/TD]
[/TR]
[TR]
[TD]Motorcycle 50cc - Passengers[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]2.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]5.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Motorcycle 50cc - Passengers[/TD]
[TD]KSI[/TD]
[TD]0.00[/TD]
[TD]0.10[/TD]
[TD]3.98[/TD]
[TD]4.98[/TD]
[TD]6.31[/TD]
[TD]7.78[/TD]
[TD]25.63[/TD]
[TD]38.25[/TD]
[TD]27.15[/TD]
[TD]24.90[/TD]
[TD]50.50[/TD]
[TD]27.01[/TD]
[TD]19.60[/TD]
[TD]2.34[/TD]
[TD]0.18[/TD]
[TD]4.95[/TD]
[/TR]
[TR]
[TD]Car - Drivers[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]44.00[/TD]
[TD]86.00[/TD]
[TD]70.00[/TD]
[TD]62.00[/TD]
[TD]60.00[/TD]
[TD]59.00[/TD]
[TD]49.00[/TD]
[TD]58.00[/TD]
[TD]59.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Car - Drivers[/TD]
[TD]KSI[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.02[/TD]
[TD]1.24[/TD]
[TD]5.43[/TD]
[TD]110.14[/TD]
[TD]449.32[/TD]
[TD]1108.02[/TD]
[TD]864.49[/TD]
[TD]1116.12[/TD]
[TD]1121.97[/TD]
[TD]934.30[/TD]
[TD]665.84[/TD]
[TD]534.73[/TD]
[TD]434.12[/TD]
[TD]43.40[/TD]
[/TR]
[TR]
[TD]Car - Passengers[/TD]
[TD]Killed[/TD]
[TD]5.00[/TD]
[TD]2.00[/TD]
[TD]2.00[/TD]
[TD]4.00[/TD]
[TD]11.00[/TD]
[TD]7.00[/TD]
[TD]27.00[/TD]
[TD]30.00[/TD]
[TD]20.00[/TD]
[TD]27.00[/TD]
[TD]18.00[/TD]
[TD]12.00[/TD]
[TD]10.00[/TD]
[TD]28.00[/TD]
[TD]34.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Car - Passengers[/TD]
[TD]KSI[/TD]
[TD]107.98[/TD]
[TD]65.75[/TD]
[TD]96.99[/TD]
[TD]134.07[/TD]
[TD]79.96[/TD]
[TD]156.60[/TD]
[TD]331.74[/TD]
[TD]577.16[/TD]
[TD]324.27[/TD]
[TD]364.81[/TD]
[TD]271.94[/TD]
[TD]240.23[/TD]
[TD]265.49[/TD]
[TD]261.80[/TD]
[TD]210.47[/TD]
[TD]45.79[/TD]
[/TR]
[TR]
[TD]Bus & coach Drivers[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Bus & coach Drivers[/TD]
[TD]KSI[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.01[/TD]
[TD]0.01[/TD]
[TD]0.13[/TD]
[TD]2.42[/TD]
[TD]5.95[/TD]
[TD]7.43[/TD]
[TD]7.78[/TD]
[TD]5.07[/TD]
[TD]0.06[/TD]
[TD]0.05[/TD]
[TD]0.01[/TD]
[/TR]
[TR]
[TD]Bus & coach Passengers[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]4.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Bus & coach Passengers[/TD]
[TD]KSI[/TD]
[TD]5.06[/TD]
[TD]1.62[/TD]
[TD]6.14[/TD]
[TD]11.53[/TD]
[TD]1.28[/TD]
[TD]2.97[/TD]
[TD]5.23[/TD]
[TD]16.51[/TD]
[TD]15.57[/TD]
[TD]30.65[/TD]
[TD]24.33[/TD]
[TD]41.04[/TD]
[TD]58.44[/TD]
[TD]82.59[/TD]
[TD]75.09[/TD]
[TD]13.72[/TD]
[/TR]
[TR]
[TD]Goods vehicle Drivers[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]8.00[/TD]
[TD]2.00[/TD]
[TD]6.00[/TD]
[TD]9.00[/TD]
[TD]12.00[/TD]
[TD]6.00[/TD]
[TD]2.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Goods vehicle Drivers[/TD]
[TD]KSI[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.04[/TD]
[TD]0.11[/TD]
[TD]0.29[/TD]
[TD]4.80[/TD]
[TD]53.12[/TD]
[TD]49.23[/TD]
[TD]112.80[/TD]
[TD]140.35[/TD]
[TD]139.42[/TD]
[TD]50.69[/TD]
[TD]11.99[/TD]
[TD]2.57[/TD]
[TD]3.29[/TD]
[/TR]
[TR]
[TD]Goods vehicle Passengers[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]4.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]2.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Goods vehicle Passengers[/TD]
[TD]KSI[/TD]
[TD]1.36[/TD]
[TD]1.54[/TD]
[TD]1.22[/TD]
[TD]2.91[/TD]
[TD]1.17[/TD]
[TD]1.40[/TD]
[TD]7.86[/TD]
[TD]30.82[/TD]
[TD]13.28[/TD]
[TD]23.42[/TD]
[TD]26.44[/TD]
[TD]14.86[/TD]
[TD]3.67[/TD]
[TD]1.37[/TD]
[TD]0.35[/TD]
[TD]4.47[/TD]
[/TR]
[TR]
[TD]Other vehicle/Unknown vehicle occupants[/TD]
[TD]Killed[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]0.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]1.00[/TD]
[TD]0.00[/TD]
[TD]2.00[/TD]
[TD]5.00[/TD]
[TD]2.00[/TD]
[TD]5.00[/TD]
[TD]5.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]Other vehicle/Unknown vehicle occupants[/TD]
[TD]KSI[/TD]
[TD]1.14[/TD]
[TD]0.03[/TD]
[TD]1.88[/TD]
[TD]5.71[/TD]
[TD]1.19[/TD]
[TD]6.36[/TD]
[TD]15.07[/TD]
[TD]15.29[/TD]
[TD]22.05[/TD]
[TD]37.54[/TD]
[TD]38.01[/TD]
[TD]30.28[/TD]
[TD]26.78[/TD]
[TD]25.25[/TD]
[TD]32.10[/TD]
[TD]2.39[/TD]
[/TR]
[TR]
[TD]All road users[/TD]
[TD]Killed[/TD]
[TD]10.00[/TD]
[TD]6.00[/TD]
[TD]10.00[/TD]
[TD]22.00[/TD]
[TD]17.00[/TD]
[TD]20.00[/TD]
[TD]110.00[/TD]
[TD]225.00[/TD]
[TD]165.00[/TD]
[TD]202.00[/TD]
[TD]254.00[/TD]
[TD]213.00[/TD]
[TD]131.00[/TD]
[TD]155.00[/TD]
[TD]173.00[/TD]
[TD]0.00[/TD]
[/TR]
[TR]
[TD]All road users[/TD]
[TD]KSI[/TD]
[TD]347.76[/TD]
[TD]389.63[/TD]
[TD]722.99[/TD]
[TD]1021.82[/TD]
[TD]454.42[/TD]
[TD]754.60[/TD]
[TD]1681.29[/TD]
[TD]3686.42[/TD]
[TD]2752.31[/TD]
[TD]4044.53[/TD]
[TD]4359.14[/TD]
[TD]3393.01[/TD]
[TD]2142.78[/TD]
[TD]1556.42[/TD]
[TD]1274.67[/TD]
[TD]311.22[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
I can post steps what you should do, nothing more nothing less. I you wish of course :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,180
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top