Powerpivot: fixed data type for linked table

edusuro

New Member
Joined
Aug 12, 2014
Messages
14
Hi,

I currently have an excel table linked to powerpivot. Powerpivot will automatically set the data type for that field to numbers when the data is updated. However, when I delete all data from that table and update the data model, powerpivot then changes the data type to text since there is no data on that field.

I tried setting the data type on the table to be number as well as updating the data type on the powerpivot, but every time I empty the table and update powerpivot changes the data type to text again.

The issue with this is that I then get errors after saving since a lot of the formulas on my model rely on that field.

Is there a way to set the data type for that column in a way that won't be affected everytime the table is cleared?

Thanks,
Eduardo
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
If nobody else thinks of a solution, the best I could suggest would be running it through power query.
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,119
Members
451,398
Latest member
rjsteward

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