Invoking in Power Query means applying a reusable custom function on table data. Instead of repeating logic again and again, you write it once and reuse it safely.
// Basic Power Query function structure
(parameter as datatype) =>
let
result = parameter
in
result
// Sales data used for invoking practice
OrderID,Product,Quantity,Price
1,Mobile,2,15000
2,Laptop,1,45000
3,Mouse,5,500
4,Keyboard,4,800
5,Monitor,3,12000
// Function to double quantity value
(qty as number) =>
let
result = qty * 2
in
result
// Auto-generated invoke logic
Table.AddColumn(Source,"DoubleQty",each fnDoubleQty([Quantity]))
Power Query Simulator: Practice Invoking a Custom Function
Write a formula logic using qty (e.g., qty * 2 or qty * 0.18) to see how it invokes row-by-row.
| OrderID | Product | Quantity (qty) | fnLogic([qty]) |
|---|