Please note javascript is required for full website functionality.

Blog

Power Pivot Principles: Importing from an Access Database (Continued) and Formatting Data

20 February 2018

Welcome back to our Power Pivot blog series. Today we discuss formatting and changing table properties. This blog picks up right after our previous blog, Importing from an Access Database.


If you wish to follow along, please download the data file here and first undertake the actions from last time’s blog.

Not all databases are created equal; some are perfect, some need formatting adjustments. Our Access Database is not perfect – let’s perform some formatting adjustments!

Rename the table ‘FactInternetSales’ to ‘Sales’ by typing it in, in the bottom tab (simply double-click or right-click on the tab). This will clearly identify each table that’s imported into PowerPivot.

Some columns will have to be updated to ensure they are showing the correct Data Type and Format, e.g. a whole number, currency, text, date. We also have to specify if they are a whole number, decimal number, currency etc.

Do remember the following:

  • Formatting: Changing the formatting changes the appearance but not the actual contents. It is merely ‘cosmetic’. For example, the value ‘3.7’ formatted as a whole number would appear as ‘4’, but if you multiplied it by 10 you would get ‘37’
  • Data Type: Changing the data type may remove information. For example, changing the Data Type from ‘Decimal Number’ to ‘Whole Number’ for the value ‘3.7’ would round this number to ‘4’. Multiplying this value would give a result of ‘40’. When information is at risk, Power Pivot will provide a warning before the change takes place. In any case, the data may be restored simply by refreshing the source. You cannot damage the underlying data.

In the ‘Formatting’ section of the ‘Home’ tab select the drop-down box next to ‘Data-Type’. Go through each column and format each field to ensure that it is showing the correct data type and in the correct format: for instance, the ‘SalesAmount’ column, the format should be changed from ‘General’ to ‘Currency’, viz.

If a column in our original data was not originally brought in, we can bring it in by going to the ‘Design’ tab of the Power Pivot window and then select the ‘Table Properties’ on the Ribbon:

The ‘Edit Table Properties’ dialog box will appear, allowing us to select any columns that we have missed out earlier. Scroll across, select the ‘Freight’ column and click Save:

The Freight column will now appear on the sheet:

Format it into a currency and save the file.

There you have it: we have just cleaned up the data from our Access database.

Stay tuned for our next post on Power Pivot. In the meantime, please remember we have training in Power Pivot which you can find out more about here. If you wish to catch up on past articles in the meantime, you can find all of our Past Power Pivot blogs here.

Newsletter