Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Exporting Data to Excel

PhixFlow can export data to Excel automatically as part of an analysis model. We just need to tell it what data to use, what to call the file and where to send it.

Example

In this example we will send Invoice Stats data to an Excel file and place this on our server.

You will need:

  1. A table that holds your data, we will use a table called Invoice Stats

Solution  

  1. Place your mouse over the Invoice Stats and from the popup menu select  File Exporter.
  2. A file exporter is automatically created, a push pipe is added and its properties open on the right.
  3. Complete the Basic Settings:
    1. Provide a useful Name, for example Export Invoice Stats.
    2. Tick Enabled. This enables the file to be exported. Typically this is only unticked during testing to avoid generating lots of data.
    3. File Name is the name the exported file will be given, it is an expression field:
      1. For static text, simply encapsulate the desired text in quotes, such as "Stats.xlsx".
      2. For dynamic text use an expression to generate a name, such as:
        1. "Stats_"+today()+".xlsx", which will provide the file name Stats_20200419.xlsx. The expression must return a string.
    4. Output Directory determines where the file will be placed inside the export directory on the server, unless Ignore Base Directory is ticked. More information on the settings can be found in File Exporter. This is also an expression.
    5. Export File as set to Excel Spreadsheet.
    6. Overwrite existing file can be ticked if you always want to overwrite files that have the same name. For example, if you only require one Stats.xlsx file on the server at any one time.
    7. Header is ticked so the output Excel file has column headers.
    8. Your setup will look similar to the following:
  4. Click  Apply and Close to save your changes.
  5. Run analysis on Invoice Stats and the data will be sent down the push pipe to the exporter and a file will be produced on the server. The location of the export directory is specified in Administration Menu → System → Configuration. 

More Information

For more information on on the available settings see File Exporter.

Setting Specific Values in an Excel Template

If you need to export specific attributes into specified Excel spreadsheet cells, see Excel Template.

Sending Files By Email

Files including Excel spreadsheets can be sent to recipients using the file exporter. For information on configuring this see File Exporter.


  • No labels