-
Book Overview & Buying
-
Table Of Contents
Data Analysis Using SQL and Excel - Second Edition
By :
This section goes back to the purchases dataset to investigate the delay between the date when an order is placed and when the last item is shipped, the fulfillment date. Investigating the fulfillment date gets rather complicated because other features (such as the size of the order) undoubtedly affect the delay. Visualizing the results is challenging because there are two time dimensions, the duration and order date.
This example provides an opportunity to show rudimentary chart animation in Excel, using a Visual Basic macro. This is the only place in the book that uses macros because even without them SQL and Excel are quite powerful for data analysis and visualization. However, animation is also powerful and the macro is simple enough for anyone to implement.
What is the delay between the order date and the fulfillment date? The following SQL query answers this question, breaking out the delay by number of units in the order...
Change the font size
Change margin width
Change background colour