Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Power Query List.Product Function: How to Multiply Values

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

The Power Query List.Product function multiplies all numeric values in a list and returns a single number. It’s useful for calculating total compounded values, such as cumulative growth rates, multipliers in financial models, or scaling factors in data transformation. No special setup is required beyond having Power Query enabled in Excel or Power BI, which is standard in modern versions.

What You'll Need

  • Microsoft Excel 2016 or later, or Power BI Desktop
  • A list of numeric values (numbers only — text, nulls, or errors will cause failure)
  • Access to the Power Query Editor (via Data > Get Data > Launch Power Query Editor in Excel, or Transform Data in Power BI)

Step-by-Step

  1. Open your Excel workbook or Power BI file and load your data into Power Query. In Excel, go to the Data tab, select From Table/Range (if your data is in a table), or From Other Sources for external files. In Power BI, select Transform Data from the Home tab.
  2. In the Power Query Editor, ensure your target column contains only numbers. If it contains text, dates, or blank values, you must clean it first using Remove Errors or Change Type > Whole Number/Decimal.
  3. Select the column that contains the numeric values you want to multiply. Do not select multiple columns unless you plan to apply the function to each separately.
  4. Go to the Add Column tab, then click Custom Column. In the dialog box, name your new column (e.g., "Total Product").
  5. In the formula box, type: List.Product(YourColumnName). Replace "YourColumnName" with the actual name of your column as shown in Power Query (e.g., if your column is named "SalesMultiplier", type List.Product(SalesMultiplier)).
  6. Click OK. Power Query will calculate the product of all values in that column and display the result in the new column for each row.
  7. If you only want one result (not repeated in every row), go to the Home tab, click Group By, select the column you just created, set Operation to "All Rows", then click OK. In the new grouped table, click the expand icon next to the column and remove all other columns except the product column. Then, click Remove Columns and delete all rows except the first one to isolate the single total.
  8. Click Close & Load to return the result to your worksheet or report.

Common Mistakes

  • Using non-numeric data: List.Product fails if any item in the list is text, null, or an error. Always check data types before applying the function.
  • Typing the column name as text: Writing List.Product("Sales") instead of List.Product(Sales) will cause an error. Column names must be referenced without quotes.
  • Expecting row-by-row multiplication: List.Product operates on the entire column as a single list. It does not multiply across rows in a table — it multiplies all values in the column into one total.
  • Forgetting to handle zeros: If any value in the list is 0, the result will be 0. This is mathematically correct but may be unintended — verify if zeros should be excluded.
  • Applying it to a table instead of a column: List.Product requires a list (a column), not a table. If you select multiple columns or a table, the function will not work.

Tips

  • Use List.Select to filter out zeros or negative numbers before multiplying: List.Product(List.Select(SalesMultiplier, each _ > 0))
  • Combine with List.Transform to apply a formula first: For example, to multiply all values after increasing them by 10%, use List.Product(List.Transform(SalesMultiplier, each _ * 1.1))
  • Use Number.Round to limit decimal places in the output: Wrap the function with Number.Round(List.Product(...), 2) to show two decimal places.
  • Test with a small dataset first: Create a sample list like {2, 3, 4} to confirm List.Product returns 24 before applying it to large datasets.
  • Save your query before applying List.Product in complex flows — it can be hard to undo if the data structure changes unexpectedly.

Troubleshooting

  • Error: "We couldn't convert to Number" — One or more values in your column aren’t numbers. Go back to the column, click the icon next to the column header, and select "Change Type" > "Decimal" or "Whole Number". Then, click "Remove Errors" to filter out invalid entries.
  • Error: "Expression.Error: The name 'ColumnName' wasn't recognized" — You typed the column name incorrectly. Open the Applied Steps pane on the right and copy the exact column name, then paste it into your formula.
  • Result is 0 when it shouldn't be — Check if any value in the list is zero. Use List.Select as shown in the Tips section to exclude zeros.
  • Function returns blank — The list is empty. Verify your source data has at least one numeric value. If filtering removed all rows, the list is null.
  • Performance is slow on large lists — List.Product is computationally intensive. If working with over 10,000 values, consider breaking the data into chunks or using alternative methods like DAX in Power BI.

Frequently Asked Questions

Can List.Product handle negative numbers?

Yes. It multiplies them normally. An odd number of negative values results in a negative product. An even number results in a positive product.

Does List.Product work with empty lists?

Yes. If the list is empty, it returns 1 — the mathematical multiplicative identity.

Can I use List.Product on a column with text values converted to numbers?

Only if the conversion succeeded. If any text couldn't be converted (e.g., "abc"), the column will contain errors and List.Product will fail. Always use "Change Type" and "Remove Errors" first.

Is List.Product the same as multiplying cells manually in Excel?

No. Excel’s PRODUCT() function works on cell ranges. List.Product works only within Power Query on a list column and is applied during data transformation, not in the final worksheet.

What happens if I apply List.Product to a column with decimal values?

It works fine. Decimal values are multiplied precisely. The result may have many decimal places — use Number.Round to format it.

Can I use List.Product in a calculated column in Power BI?

No. List.Product is a Power Query function, not a DAX function. In Power BI, use DAX’s PRODUCTX() function for row-wise multiplication within a table.