Power Query List.Product Function: How to Multiply Values
In this article
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
- 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.
- 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.
- 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.
- Go to the Add Column tab, then click Custom Column. In the dialog box, name your new column (e.g., "Total Product").
- 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", typeList.Product(SalesMultiplier)). - 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.
- 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.
- 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 ofList.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.