Forum Discussion

zua's avatar
zua
Frequent Visitor
2 years ago
Solved

Power Query Parameter with default Value

Hello,    is it possible in Power Query M to add a parameter to a function which has a default value? My goal is that if the function is called the parameter is shown with its default value, but ...
  • AlienSx's avatar
    AlienSx
    2 years ago
    func = (param1, optional param2) => param1 + (param2 ?? 20), 
    use1 = func(1, 10), // 11
    use2 = func(1)      // 21