Importing Excel data

Importing data from Excel is the easiest way to start with Express. There are plenty of good examples and free data sources on the Web, you can pick your favorite or just upload an Excel file of yours.

Excel files may contain more than one sheet of data, but only one sheet can be imported at a time, and they must comply with a few rules:

  • Only one table per worksheet is allowed
  • The first worksheet cannot be empty
  • Worksheets must contain data in the first 20 rows

I prepared a worksheet for these recipes from the World Bank data; it contains some indicators from years 2000 through 2010 for every country of the world. You can download the data from http://xls.apphb.com/Ch13X1.xlsx to have a look at it before going on.

Getting ready

The Excel file can be on the local computer or stored on the Web and accessible via HTTP, HTTPS, or FTP. Please review this document for guidelines and tips about preparing your own Excel data at http://at5.us/Ch13U4.

How to do it…

We will now import a file from the Web:

  1. Close MicroStrategy Express welcome page by clicking on the round red X icon.
  2. Click on New Dashboard…, the application loads the Select Data page.
  3. From the left list, choose the radio button labeled Use File from URL and enter the http://xls.apphb.com/Ch13X1.xlsx address in the Enter a URL for Excel/CSV File text area.
  4. Click on Continue, Express loads the first 50 rows of data and displays the Review Data page. From here, we can decide which columns are attributes and which are metrics.
  5. Move the cursor over the first column header (Country Name), a small down arrow icon appears, click on it to open the context menu.
  6. This column has already been detected as an attribute; we only need to specify that is a country. In the context menu, select Attribute; in the list that pops up, click on Country and then on OK, like in this image:
    How to do it…
  7. Moving to the second column (Date), open the context menu and select Attribute and uncheck everything but Year and click on OK, see image:
    How to do it…
  8. Third and fourth columns were detected as metrics, very well. Move to fifth column (Business: Mobile Phone Subscribers), this was detected as an attribute but it is really a metric, so open its context menu and click on Metric.
  9. From here onwards, the columns should all be metrics, so scroll right and change all the columns that were identified as attributes (blue) to metrics (orange).
  10. When you're done, click on Continue. Express saves the definition and starts importing all the data. This phase can take a while. At the end of the import, you'll be presented with a Select a Visualization dialog.
  11. Click on the first thumbnail in the top left (tool tip: Grid), a new dashboard is created with some data. This interface looks very familiar…
  12. Click on Save & Close, in the Save As dialog, type World Bank Indicators in the Name text field and click on OK.

You will be redirected to the main page and your new dashboard will appear in the list.

How to do it…

How it works…

Behind the scenes MicroStrategy Express has loaded the Excel file, created attributes and metrics, and populated the dataset that serves as a source for the dashboard.

There's more…

When the data changes, we can refresh the dataset:

  1. From the main Express window, move the cursor on the name of the dashboard (World Bank Indicators) and click on the Refresh data hyperlink.
  2. Click on the Review data checkbox on the right, and hit Continue.
  3. You can inspect the data for correctness and click on Finish.
  4. When a message appears that Data refresh was successful, click on Exit to be redirected back to the main page.

Note

You can watch screencasts of this operation at:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset