How:Slice & Dice Library Data

From Memento Database Wiki
Revision as of 23:32, 25 October 2016 by UnConnoisseur (talk | contribs)
Jump to navigation Jump to search
« Page as of 2016-10-25, editions Mobile 3.9.7, Desktop 1.0.3 »

This page is incomplete and under development.

To describe how to perform the functions involved in slicing & dicing, we will use as an example a library Orders of orders on a date by a customer of a product, so there are related libraries Customers and Products.

Preparing for maximal slicing & dicing benefit

To prepare for subsequent analysis of the data, add related data and calculations to the data and then define aggregations of the data.

Calculate within the entry

First, enrich each entry as much as possible with information derived from data entered into the entry. In an entry for an order line item, calculate the total from the quantity and unit price. In an entry for a new tank of gasoline, calculate the cost of a tank of gasoline from the number of gallons and cost per gallon, and calculate the cost per mile from the cost of the tank and the elapsed mileage.

Calculate with related data

Then, reach into related libraries to include data or calculate with data that would be useful during ad hoc slicing & dicing.

Aggregation

Calculate useful information — such as totals, averages, maximums, and minimums — across all entries in the library. During slicing & dicing, these calculations can become subtotals and other calculations for subsets of library entries.

Slicing & Dicing

Once the libraries are set up, and data is entered, the job of viewing the data and making sense of it is at hand. While viewing the list of library entries, the following activities will give you the best possible look at the data and any wisdom that may be contained within it.

Filtering

First, you can restrict your investigation to a portion of the entries in the library. For example, you can filter to view orders only for a particular customer or gasoline only for your current car.

Grouping

Then, within the filtered data, you may want to see certain data sparsely from others, such as orders of certain products or fuel purchases from certain gas stations. If you group your order entries by product or your fuel purchase entries by gas station, you can then not only see them separately and quickly switch between them, but aggregations will be displayed for each, in addition to aggregation of the entire set.

Sorting

With sorting, you can determine the order of entries, and if grouped, the order of the groups and the order of entries within groups.

Putting it all together

It is not always clear how clarity and wisdom unfolds from within the data, but with artful use of these functions, one can often detect patterns in the data that would otherwise not be apparent. Use sorting carefully to enhance the effect of grouping. Grouping can often be used in place of filtering.