- DAX Functions Tutorial
- DAX Functions - Home
- DAX Functions - Introduction
- DAX Parameter Naming Conventions
- Description Structure
- DAX Functions - Aggregation
- DAX Functions - Filter
- DAX Functions - Time Intelligence
- DAX Functions - Date and Time
- DAX Functions - Information
- DAX Functions - Logical
- Math & Trigonometric Functions
- DAX Functions - Parent & Child
- DAX Functions - Statistical
- DAX Functions - Text
- DAX Functions - Other
- DAX Functions Useful Resources
- DAX Functions - Quick Guide
- DAX Functions - Useful Resources
- DAX Functions - Discussion
DAX Math & Trigonometric - GCD function
Description
Returns the greatest common divisor of two integers.
DAX GCD function is new in Excel 2016.
Syntax
GCD (<number1>, <number2>)
Parameters
Sr.No. | Parameter & Description |
---|---|
1 |
number1 A positive number. |
2 |
number2 A positive number. |
Return Value
A positive integer.
Remarks
The greatest common divisor is the largest integer that divides both number1 and number2 without a remainder.
If any of the parameters is not an integer, it will be rounded.
If any of the parameters is negative, the function returns error.
If any of the parameters is non-numeric, the function returns error.
If the parameters do not have a common divisor > 1, the function returns 1.
Example
= GCD (16,20) returns 4. = GCD (15,25) returns 5.
dax_functions_mathematical_trigonometric.htm
Advertisements