# Combin

Combin() 會傳回從一組 p 個項目中挑選 q 個元素的可能組合數目。由以下公式表示：`Combin(p,q) = p! / q!(p-q)!` 選取項目的順序並不重要。

語法：

Combin(p, q)

傳回的資料類型： 整數

限制：

非整數引數會被截斷。

範例與結果：

* 從總共 35 個樂透數字中挑選 7 個數字的可能組合有幾個？

  Combin( 35,7 ) 傳回 6,724,520

## 瞭解更多資訊

* [Permut](https://help.qlik.com/zh-TW/qlikview/September2025/Subsystems/Client/Content/QV_QlikView/ChartFunctions/GeneralNumericFunctions/permut.htm)