DAX Function Guide

LCM
Empty image or helper icon

Sam McKay

CEO & Founder

How does the LCM work?
The LCM function (DAX) returns the least common integer number. The least common multiple is the smallest positive integer, which is a multiple of all number1, number2, and so forth integer arguments. Using LCM to add different-denominator fractions.
LCM Formula Syntax

LCM(
     number1, [number2], …
)

How do you use the LCM?

Use LCM to add different denominators to fractions.

Related Blog Posts

Loading

Considerations when using the LCM?

If any argument is nonnumeric, LCM returns the #VALUE! error value.

If any argument is less than zero, LCM returns the #NUM! error value.

If LCM(a,b) >=2^53, LCM returns the #NUM! error value.

Related Video Tutorials

Loading

Formula examples using the LCM

=LCM(5, 2)

Least common multiple of 5 and 2
Result: 10

=LCM(24, 36)

Least common multiple of 24 and 36
Result: 72

Related Courses

Loading