Difference between revisions of "Documentation/OOo3 User Guides/Calc Guide/DataPilot example 1"

From Apache OpenOffice Wiki
Jump to: navigation, search
(Solution: Added some details to clarify the procedure.)
(Advantages)
(6 intermediate revisions by 2 users not shown)
Line 7: Line 7:
 
A typical introductory example in courses and books for beginners with spreadsheets is a simple sales volume overview.
 
A typical introductory example in courses and books for beginners with spreadsheets is a simple sales volume overview.
  
This example demonstrates the basic way to use the user interface and how to insert text and numbers into cells. Useful aids like ''AutoFill'' and ''drag and drop'' have been demonstrated in other chapters. The most important part is the connection between cells through formulas, for example addition with the plus operator or the ''SUM'' function.
+
This example demonstrates the user interface and how to insert text and numbers into cells. Useful aids like ''AutoFill'' and ''drag and drop'' have been demonstrated in other chapters. The most important part is the connection between cells through formulas, for example addition with the plus operator or the ''SUM'' function.
  
 
This small exercise might be useful for a first contact with the program, but it shows only a very small fraction of the tasks in an office. To create such a sales overview, you also need the orginal data. That is, before you can use a spreadsheet for creating the sales overview, you need to add many single purchases from different lists and then enter the sums into the relevant fields '''C5''' to '''F7'''.
 
This small exercise might be useful for a first contact with the program, but it shows only a very small fraction of the tasks in an office. To create such a sales overview, you also need the orginal data. That is, before you can use a spreadsheet for creating the sales overview, you need to add many single purchases from different lists and then enter the sums into the relevant fields '''C5''' to '''F7'''.
Line 14: Line 14:
  
 
=== Practical problems and questions ===
 
=== Practical problems and questions ===
# For displaying additional values (for May, June, July, and so on) over time, you need to add extra columns. This means that you have to change the structure of the calculation sheet. This is not only somewhat inefficient from a workflow point of view, it also adds some practical questions: How do references react, if you add more columns or rows to the sum formulas?  
+
# For displaying additional values for May, June, July, and so on, you need to add extra columns. This means that you have to change the structure of the calculation sheet. This is not only somewhat inefficient from a workflow point of view, it also adds some practical questions: How do references react, if you add more columns or rows to the sum formulas?  
# The layout, where the timeline is displayed horizontally, might be less convenient if you add more months. For using space more efficiently, a vertical layout might be better. How can the table then be transposed? Do you have to enter everything again?  
+
# The layout, where the timeline is displayed horizontally, might be less convenient if you add more months. A vertical layout might be a more efficient use of space. How can the table then be transposed? Do you have to enter everything again?  
# Assume that the management asks unexpected questions or for an additional subdivision for the different sales regions or a constraint of the sales for a given employee. In this case you again have to manually add all the sums and create different tables in many variations.
+
# What if the management asks unexpected questions or adds an additional subdivision for the different sales regions or a constraint of the sales for a given employee? In such cases you again have to manually add all the sums and create different tables in many variations.
 
# Is it really acceptable and realistic to create such an overview by adding the different values manually? This is really a lot of work and extremely error-prone!
 
# Is it really acceptable and realistic to create such an overview by adding the different values manually? This is really a lot of work and extremely error-prone!
  
 
=== Solution ===
 
=== Solution ===
The most important part of your task in the example is the addition of the sales per month and field. This had to be done manually. To do this automatically with the program, just get the data into Calc. You can enter the single numbers by hand or you can import a file from your bookkeeping software. In any case we assume a continuous table, that keeps track of all sales in a somewhat primitive form.
+
The most important part of your task in the example is the addition of the total sales per month cells. This had to be done manually. To do this automatically with the program, just get the data into Calc. You can enter the single numbers by hand or you can import a file from your bookkeeping software. In any case we assume a continuous table, that keeps track of all sales in a somewhat primitive form.
  
 
[[Image:CG3Ch6F2.png|thumb|none|500px|''Basic data in Calc '']]
 
[[Image:CG3Ch6F2.png|thumb|none|500px|''Basic data in Calc '']]
Line 29: Line 29:
 
<li>Select the cell '''A1''' (or any other single cell within the list).</li>
 
<li>Select the cell '''A1''' (or any other single cell within the list).</li>
 
<li>Select '''Data > DataPilot > Start'''. On the Select Source dialog, choose '''Current selection''' and click '''OK'''.</li>
 
<li>Select '''Data > DataPilot > Start'''. On the Select Source dialog, choose '''Current selection''' and click '''OK'''.</li>
<li>The DataPilot dialog has four layout areas (large white fields) and five fields that look similar to buttons. These small fields are the titles of the different columns of your list.</li>
+
<li>The DataPilot dialog has four white layout areas and several fields that look like buttons. These small fields are the titles of the different columns of your list.</li>
 
<ul>
 
<ul>
<li>Move the field '''date''' into the Layout area ''Column fields''.</li>
+
<li>Move the '''date''' field into the ''Column fields'' area.</li>
<li>Move the field '''sales''' into the Layout area ''Data fields''.</li>
+
<li>Move the '''sales''' field into the ''Data fields'' area.</li>
<li>Move the field '''category''' into the Layout area ''Row fields''.</li>
+
<li>Move the '''category''' field into the ''Row fields'' area.</li>
 
</ul>
 
</ul>
 
<li>Click '''More''', to see more options in the lower part of the dialog.</li>
 
<li>Click '''More''', to see more options in the lower part of the dialog.</li>
<li>Choose '''– new sheet –''' for ''Results to''.</li>
+
<li>In the ''Results to'' field, select '''– new sheet –''' from the drop-down list.</li>
 
<li>Click '''OK'''.</li>
 
<li>Click '''OK'''.</li>
  
 
[[Image:CG3Ch6F3.png|thumb|none|500px|''DataPilot dialog'']]
 
[[Image:CG3Ch6F3.png|thumb|none|500px|''DataPilot dialog'']]
  
<li>The result appears on a new sheet. It has the wanted structure, but the columns are not yet grouped into months.</li>
+
<li>The result appears on a new sheet. It has the desired structure, but the columns are not yet grouped into months.</li>
  
 
[[Image:CG3Ch6F4.png|thumb|none|500px|''DataPilot result without grouping'']]
 
[[Image:CG3Ch6F4.png|thumb|none|500px|''DataPilot result without grouping'']]
  
<li>To group the columns, select cell '''B4''' or any other cell that contains a date. Then select '''Data > Group and Outline > Group'''. On the Grouping dialog, make sure '''Intervals''' and '''Months''' are selected in the ''Group by'' section, and click '''OK'''. The result is now grouped for months.</li>
+
<li>To group the columns, select cell '''B4''' or any other cell that contains a date. Then select '''Data > Group and Outline > Group'''. On the Grouping dialog, make sure ''Intervals'' and ''Months'' are selected in the ''Group by'' section, and click '''OK'''. The result is now grouped for months.</li>
  
 
[[Image:CG3Ch6F5a.png|thumb|none|500px|''Grouping on months'']]
 
[[Image:CG3Ch6F5a.png|thumb|none|500px|''Grouping on months'']]
Line 55: Line 55:
  
 
=== Advantages ===
 
=== Advantages ===
# No manual adding of single values necessary. No manual entering of the values. Less work and fewer errors.
+
# No manual entering or adding of any values is necessary. There is less work and fewer errors.
# The layout is very flexible: months horizontal and fields vertical or vice versa: two mouse clicks.
+
# The layout is very flexible: months are listed horizontally and fields vertically or vice versa, in two mouse clicks.
 
# Additional differentiating factors are immediately available.
 
# Additional differentiating factors are immediately available.
# Many evaluation possibilities, for example: number or average instead of sum, accumulated values, comparisons and more.
+
# Many types of evaluation are possible; for example, number or average instead of sum, accumulated values, comparisons and so on.
  
 
We will now demonstrate some of these advantages.
 
We will now demonstrate some of these advantages.
  
Starting with the result above, move the '''Date''' field to the left of the '''Category''' field. Now the summary is as shown below.
+
Starting with the result above, drag the '''Date''' field under the '''Category''' field, as shown below.  
  
[[Image:CG3Ch6F7.png|thumb|none|500px|''Layout option with only one mouse click'']]
+
[[Image:CG3Ch6F6a.png|thumb|none|500px|''Drag Date field under Category field'']]
  
To transpose the table completely, just move the field Category above the area of the displayed values, to '''C3'''.
+
Now the summary is as shown below.
 +
 
 +
[[Image:CG3Ch6F7.png|thumb|none|500px|''Changed layout'']]
 +
 
 +
To transpose the table completely, just drag the '''Category''' field above the area of the displayed values, to cell '''C3'''. (See figure below.)
 +
 
 +
[[Image:CG3Ch6F7b.png|thumb|none|500px|''Drag Category field to right of Data field'']]
 +
 
 +
The result of this action is shown below.
  
 
[[Image:CG3Ch6F7a.png|thumb|none|500px|''Transposed layout of the first example'']]
 
[[Image:CG3Ch6F7a.png|thumb|none|500px|''Transposed layout of the first example'']]
  
In contrast to the beginners’ example, it is now very simple to view or add different aspects of the underlying data. For example, to see the values for different regions just do the following:  
+
In contrast to the beginners’ example, it is now very simple to view or add different aspects of the underlying data. For example, to see the values for different regions, do the following:  
  
 
<ol>
 
<ol>
 
<li>Select the cell '''A3''' (or any other single cell that is part of the DataPilot result).</li>
 
<li>Select the cell '''A3''' (or any other single cell that is part of the DataPilot result).</li>
<li>Select '''Data > DataPilot > Start''', to start the DataPilot again. Drag the field '''Region''' into the layout area ''Row fields''. Depending on the order you choose for the row fields, you get in the result either regions with date subdivisions or vice versa.</li>
+
<li>Select '''Data > DataPilot > Start''', to start the DataPilot again. Drag the '''Region''' field into the ''Row fields'' area . Depending on the order you choose for the row fields, the result is either regions with date subdivisions or vice versa.</li>
 
<li>Click '''OK'''.</li>
 
<li>Click '''OK'''.</li>
  
Line 80: Line 88:
 
</ol>
 
</ol>
  
In another variation you want to add the mentioned employees.
+
In another variation you may want to add the employees.
  
 
# Select the cell '''A3''' (or any other single cell that is part of the DataPilot result).
 
# Select the cell '''A3''' (or any other single cell that is part of the DataPilot result).
 
# Select '''Data > DataPilot > Start''', to start the DataPilot again.
 
# Select '''Data > DataPilot > Start''', to start the DataPilot again.
#* You do not need the field '''Region''' in this case. Drag it out of the layout area.
+
#* You do not need the '''Region''' field in this case. Drag it out of the layout area.
#* Drag the field '''Employee''' into the layout area ''Page fields''.
+
#* Drag the '''Employee''' field into the ''Page fields'' area.
 
# Click '''OK'''.
 
# Click '''OK'''.
  
Line 92: Line 100:
 
[[Image:CG3Ch6F9.png|thumb|none|500px|''Selection of subtotals for several employees.'']]
 
[[Image:CG3Ch6F9.png|thumb|none|500px|''Selection of subtotals for several employees.'']]
  
Up to here we have not seen the most powerful features of the DataPilot. The following examples will show you more.
+
Up to now we have not seen the most powerful features of the DataPilot. The following examples will show you more.
  
  
{{CCBY}}
+
{{CCBYSA}}
 
[[Category: Calc Guide (Documentation)]]
 
[[Category: Calc Guide (Documentation)]]

Revision as of 15:00, 27 December 2010



A typical introductory example in courses and books for beginners with spreadsheets is a simple sales volume overview.

This example demonstrates the user interface and how to insert text and numbers into cells. Useful aids like AutoFill and drag and drop have been demonstrated in other chapters. The most important part is the connection between cells through formulas, for example addition with the plus operator or the SUM function.

This small exercise might be useful for a first contact with the program, but it shows only a very small fraction of the tasks in an office. To create such a sales overview, you also need the orginal data. That is, before you can use a spreadsheet for creating the sales overview, you need to add many single purchases from different lists and then enter the sums into the relevant fields C5 to F7.

Typical example for beginners

Practical problems and questions

  1. For displaying additional values for May, June, July, and so on, you need to add extra columns. This means that you have to change the structure of the calculation sheet. This is not only somewhat inefficient from a workflow point of view, it also adds some practical questions: How do references react, if you add more columns or rows to the sum formulas?
  2. The layout, where the timeline is displayed horizontally, might be less convenient if you add more months. A vertical layout might be a more efficient use of space. How can the table then be transposed? Do you have to enter everything again?
  3. What if the management asks unexpected questions or adds an additional subdivision for the different sales regions or a constraint of the sales for a given employee? In such cases you again have to manually add all the sums and create different tables in many variations.
  4. Is it really acceptable and realistic to create such an overview by adding the different values manually? This is really a lot of work and extremely error-prone!

Solution

The most important part of your task in the example is the addition of the total sales per month cells. This had to be done manually. To do this automatically with the program, just get the data into Calc. You can enter the single numbers by hand or you can import a file from your bookkeeping software. In any case we assume a continuous table, that keeps track of all sales in a somewhat primitive form.

Basic data in Calc

You can create the sales volume overview by following these instructions:

  1. Select the cell A1 (or any other single cell within the list).
  2. Select Data > DataPilot > Start. On the Select Source dialog, choose Current selection and click OK.
  3. The DataPilot dialog has four white layout areas and several fields that look like buttons. These small fields are the titles of the different columns of your list.
    • Move the date field into the Column fields area.
    • Move the sales field into the Data fields area.
    • Move the category field into the Row fields area.
  4. Click More, to see more options in the lower part of the dialog.
  5. In the Results to field, select – new sheet – from the drop-down list.
  6. Click OK.
  7. DataPilot dialog
  8. The result appears on a new sheet. It has the desired structure, but the columns are not yet grouped into months.
  9. DataPilot result without grouping
  10. To group the columns, select cell B4 or any other cell that contains a date. Then select Data > Group and Outline > Group. On the Grouping dialog, make sure Intervals and Months are selected in the Group by section, and click OK. The result is now grouped for months.
  11. Grouping on months
    DataPilot result grouped for months

In this result you will recognize the beginners’ example. It is very easy to produce, without any further knowledge about the spreadsheet. You do not have to enter any formulas.

Advantages

  1. No manual entering or adding of any values is necessary. There is less work and fewer errors.
  2. The layout is very flexible: months are listed horizontally and fields vertically or vice versa, in two mouse clicks.
  3. Additional differentiating factors are immediately available.
  4. Many types of evaluation are possible; for example, number or average instead of sum, accumulated values, comparisons and so on.

We will now demonstrate some of these advantages.

Starting with the result above, drag the Date field under the Category field, as shown below.

Drag Date field under Category field

Now the summary is as shown below.

Changed layout

To transpose the table completely, just drag the Category field above the area of the displayed values, to cell C3. (See figure below.)

Drag Category field to right of Data field

The result of this action is shown below.

Transposed layout of the first example

In contrast to the beginners’ example, it is now very simple to view or add different aspects of the underlying data. For example, to see the values for different regions, do the following:

  1. Select the cell A3 (or any other single cell that is part of the DataPilot result).
  2. Select Data > DataPilot > Start, to start the DataPilot again. Drag the Region field into the Row fields area . Depending on the order you choose for the row fields, the result is either regions with date subdivisions or vice versa.
  3. Click OK.
  4. Additional subdivision into regions, added later

In another variation you may want to add the employees.

  1. Select the cell A3 (or any other single cell that is part of the DataPilot result).
  2. Select Data > DataPilot > Start, to start the DataPilot again.
    • You do not need the Region field in this case. Drag it out of the layout area.
    • Drag the Employee field into the Page fields area.
  3. Click OK.

Fields that you use as page fields are placed in the result above the summary with the name Filter. You then have a drop-down list that you can use to show only the sums of a given employee:

Selection of subtotals for several employees.

Up to now we have not seen the most powerful features of the DataPilot. The following examples will show you more.


Content on this page is licensed under the Creative Common Attribution-Share Alike 3.0 license (CC-BY-SA).
Personal tools