Description

The SetMetric function is used to set a metric in XSLT. It allows you to specify the name of the metric, its alias (projection), and the desired value.

Syntax

 
<xsl:value-of select="ixf:SetMetric(metricName, projection, value)"></xsl:value-of>

Parameters

  • metricName: The name of the metric to be set. (Required)
  • projection: The alias of the metric. (Required)
  • value: The value to be assigned to the metric. (Required)

Example

Consider the following example where the metric "TotalSales" with an alias "SalesAlias" is set to the value 500:

 
<xsl:value-of select="ixf:SetMetric('TotalSales', 'SalesAlias', '500')"></xsl:value-of>

This will set the metric named "TotalSales" with the alias "SalesAlias" to the value 500.

Notes

  • All parameters (metricName, projection, and value) are required.

Tags:
    
This wiki is hosted and managed by iXPath
Powered by XWiki 13.3 debian