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


User TypeSeverity0-4 Yrs5-7 Yrs8-11 Yrs12-15 Yrs16 Yrs17 Yrs18-19 Yrs20-24 Yrs25-29 Yrs30-39 Yrs40-49 Yrs50-59 Yrs60-69 Yrs70-79 Yrs80 + YrsUnknown
PedestriansKilled5.003.006.0012.004.005.0014.0033.0029.0044.0049.0048.0031.0047.0068.000.00
PedestriansKSI227.76286.25517.00610.25121.96107.56237.17500.14438.78653.73675.00579.03503.17471.39475.2383.10
Pedal cyclistsKilled0.001.001.004.001.002.003.0010.005.0015.0018.0024.0014.008.003.000.00
Pedal cyclistsKSI4.4734.3295.59230.2065.0868.21101.05354.78400.25779.62854.73554.06227.60109.0832.8564.14
Motorcycle 50cc and underKilled0.000.000.000.001.001.000.000.000.001.000.000.000.000.000.000.00
Motorcycle 50cc and underKSI0.000.020.167.93148.1090.5662.8072.5135.6847.8939.4524.1510.743.452.224.68
Motorcycle 50cc - ridersKilled0.000.000.001.000.003.0015.0052.0036.0045.0090.0052.0016.006.000.000.00
Motorcycle 50cc - ridersKSI0.000.000.0012.9623.83202.72440.61919.68559.13847.101108.99800.87305.7052.379.4541.28
Motorcycle 50cc - PassengersKilled0.000.001.000.000.000.002.001.001.001.005.000.001.000.000.000.00
Motorcycle 50cc - PassengersKSI0.000.103.984.986.317.7825.6338.2527.1524.9050.5027.0119.602.340.184.95
Car - DriversKilled0.000.000.000.000.001.0044.0086.0070.0062.0060.0059.0049.0058.0059.000.00
Car - DriversKSI0.000.000.021.245.43110.14449.321108.02864.491116.121121.97934.30665.84534.73434.1243.40
Car - PassengersKilled5.002.002.004.0011.007.0027.0030.0020.0027.0018.0012.0010.0028.0034.000.00
Car - PassengersKSI107.9865.7596.99134.0779.96156.60331.74577.16324.27364.81271.94240.23265.49261.80210.4745.79
Bus & coach DriversKilled0.000.000.000.000.000.000.000.000.000.000.001.001.000.000.000.00
Bus & coach DriversKSI0.000.000.000.000.000.010.010.132.425.957.437.785.070.060.050.01
Bus & coach PassengersKilled0.000.000.000.000.000.001.000.000.000.001.000.001.001.004.000.00
Bus & coach PassengersKSI5.061.626.1411.531.282.975.2316.5115.5730.6524.3341.0458.4482.5975.0913.72
Goods vehicle DriversKilled0.000.000.000.000.000.001.008.002.006.009.0012.006.002.000.000.00
Goods vehicle DriversKSI0.000.000.000.040.110.294.8053.1249.23112.80140.35139.4250.6911.992.573.29
Goods vehicle PassengersKilled0.000.000.001.000.001.002.004.001.001.002.000.000.000.000.000.00
Goods vehicle PassengersKSI1.361.541.222.911.171.407.8630.8213.2823.4226.4414.863.671.370.354.47
Other vehicle/Unknown vehicle occupantsKilled0.000.000.000.000.000.001.001.001.000.002.005.002.005.005.000.00
Other vehicle/Unknown vehicle occupantsKSI1.140.031.885.711.196.3615.0715.2922.0537.5438.0130.2826.7825.2532.102.39
All road usersKilled10.006.0010.0022.0017.0020.00110.00225.00165.00202.00254.00213.00131.00155.00173.000.00
All road usersKSI347.76389.63722.991021.82454.42754.601681.293686.422752.314044.534359.143393.012142.781556.421274.67311.22

<tbody>
</tbody>
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I can post steps what you should do, nothing more nothing less. I you wish of course :)
 
Upvote 0

Forum statistics

Threads
1,214,392
Messages
6,119,257
Members
448,880
Latest member
aveternik

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