Skip to content

PRODUCTX

The PRODUCTX function in Infoveave calculates the product (multiplication) of values in a dataset or column, considering a condition that filters which values are included.

Applicable to

  • Calculated Columns
  • Expressions

Return Value

  • The product of all values in the dataset or column, based on the applied filter condition.

Remark

  • PRODUCTX is useful for calculating the product of values while applying a condition to selectively include or exclude values. It allows for more nuanced, conditional multiplication-based calculations.
  • PRODUCTX neglects null and blank values.

Syntax

PRODUCTX(<expression>,<condition>)

PRODUCTX in Board Expression

ParameterDescription
ExpressionA placeholder replaced with the actual widget and measure names.
ConditionA placeholder replaced with the condition filter.
Widget NameThe specific name of the widget used for data visualization in the Infoboard.
MeasureThe name of the measure displayed or analyzed using the widget.
DimensionThe dimension column displayed or analyzed using the widget.
Dimension ValueThe specific dimension items within the dimension column used for visualization in the widget.

Steps to Use PRODUCTX

  1. Write the PRODUCTX function. For instance PRODUCTX(<expression>,<condition>)
  2. Where expression equals 'Widget Name'[Measure] and condition equals [Dimension Name]="Dimension Value". Replace Widget Name, Measure, Dimension Name, and Dimension Value with your actual values.
  3. To learn how to configure an Expression in Infoveave, visit Configure Expression.

Scenario You manage an Energy Offer Sales Dashboard and need to assess the impact of the product of offer quantity, considering specific payment behavior.

Scenario Details

  • Dashboard Name Energy Offer Sales Dashboard
  • Widget Name Quantity
  • Measure Offers Sold
  • Dimension Discount Types (categorizing customers based on payment behavior)
  • Dimension Value “Pay on Time” (customers who pay on time)

Objective Use the PRODUCTX function to calculate the product of ‘Solar Customers’ in the ‘Solar Feed In’ dataset, exclusively involving customers with the “Pay on Time” payment type, ensuring the resulting product does not reach a critical threshold of 200.

PRODUCTX('Quantity'[Offers Sold], [Discount Type]="Pay On Time") < 200

PRODUCTX in Calculated Columns

ParameterDescription
ExpressionA placeholder replaced with column names.
ConditionA placeholder replaced with the condition filter.
Column NameThe name of the column containing the values you want to analyze.
Filter ConditionA filter condition returns data points meeting the defined condition. Can be a string or numeric.

Steps to Use PRODUCTX in Calculated Columns

  1. Write the PRODUCTX function. For instance PRODUCTX(<expression>,<condition>)
  2. Replace <expression> with the required [Column Name] and <condition> equals [Column Name]="Filter Condition". Replace Column Name and Filter Condition with your actual values.
  3. To learn how to add calculated columns in Infoveave, visit Calculated Columns under Sources.

Objective Find the product of QUANTITY sold where COUNTRY is Japan.

ORDER DATECOUNTRYCATEGORYUNIT PRICEMARKET PRICEQUANTITY
2024-01-03BrazilBaby Food38.4143.78742
2024-01-07JapanSpices45.5650.815520
Japan43.787410
2024-01-1832.30194
2024-01-22BrazilCosmetics28.33523.01097
2024-01-26Canada20.18523.01099
2024-01-04FranceCereal25.2628.79649
2024-01-09BrazilCereal44.57553.81558
2024-01-14BrazilSnacks20.1854
BrazilCosmetics40.48546.15292

You can use the PRODUCTX function like

PRODUCTX([QUANTITY], [CATEGORY]="Japan")

The new calculated column “Unit Sold” will return 200 (considering nulls and blanks).

ORDER DATECOUNTRYCATEGORYUNIT PRICEMARKET PRICEQUANTITYUNIT SOLD
03-01-2024BrazilBaby Food38.4143.78742200
07-01-2024JapanSpices45.5650.815520200
Japan43.787410200
18-01-202432.30194200
22-01-2024BrazilCosmetics28.33523.01097200
26-01-2024Canada20.18523.01099200
04-01-2024FranceCereal25.2628.79649200
09-01-2024BrazilCereal44.57553.81558200
14-01-2024BrazilSnacks20.1854200
BrazilCosmetics40.48546.15292200