Like what you see? Have a play with our trial version.

Error rendering macro 'rw-search'

null

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

Compare with Current View Page History

« Previous Version 16 Next »

This feature allows you to display dynamic report values, such as the name of the report, its description, etc. in your charts by entering predefined keywords using Yellowfin's text widgets.

 

Predefined Parameters

You can include the following keywords (in the exact format shown below) in your report. Yellowfin will replace them with their values when you preview your report.

 

ParameterDescription
[reportname]Adding this will replace the name of your report in your chart. You can set the report name when you publish it.
[reportdescription]This will show your report's description. You can provide this description when you publish the report.
[filter:1]This parameter returns the filter you have applied in your report. The number '1' here represents the order of the filter, so the first filter will be displayed. You can use any filter from your list by entering its order number.

[total:<columnNumber>]

Use this to display the total aggregation value set on a column field, where the column is specified with its order number in the report. For example: [total:3] will show the total aggregated value of the third column.

This total value will depend on the type of aggregation set on that column field in the report, if any has been defined; otherwise it will display the total Sum value for metric fields, or the total Count for dimension fields. 

[total:<columnNumber>:<aggregationType>]

This is similar to the above parameter, however it displays the total column value depending on the aggregation type that you specify in this parameter. This will override the existing aggregation type defined in the report. Use the following keywords to specify the aggregation type (ensure the same format is used for these keywords, i.e. all capital letters):

SUM, AVG, MAX, MIN, COUNT, and COUNTDISTINCT.

Note: For dimension fields, only COUNT and COUNTDISTINCT can be applied.

For example, [total:2:AVG] will display the total average of the second column.

 

 

Add a Parameter

  1. Create a report. (See our Report Creation section for more detail.)
  2. Note: In order to use the filter parameter, make sure to include values in the Filters field when creating your report.



  3. Once you have created your charts (you would need at least two charts), proceed to the design mode.
  4. Drag a text widget (from the left side menu) onto your canvas, while in the edit mode.



  5. Type in one of the parameters (displayed in the table above).

    To view the values of some of the parameters, e.g. [reportname] and [reportdescription], you will first need to publish the report and provide the details in the form. Then return to the design edit mode to use the parameters.

  6. Then click on the Preview button to preview the report.



  7. Save any changes, if you need to.
  8. You will be able to see the values of the parameters you have included in the chart in place of the parameter keywords, as shown in the example below.




    The report will display nothing if the parameters you used have no value.

 

 

 

 

 

  • No labels