How does the RANDBETWEEN function (DAX) work?

The RANDBETWEEN function (DAX) returns a random number in the range between two numbers you specify.

RANDBETWEEN Formula Syntax


How do you use the RANDBETWEEN function?

Use the RANDBETWEEN function to get a random integer between bottom and top. For example, =RANDBETWEEN(1,50) might generate the number 28

Related Blog Posts

Related Support Forum Posts

Dax Calculation question
Dax not working
DAX Buffer Calculation Query

Considerations when using the RANDBETWEEN function

The RANDBETWEEN function syntax has the following arguments:

Bottom(Required).-The smallest integer RANDBETWEEN will return.
Top(Required)-The largest integer RANDBETWEEN will return.

Related Video Tutorials

Formula examples using the RANDBETWEEN function




Related Course Modules



Download our comprehensive DAX Formula Reference Guide as perfect companion as you learn how to use DAX formulas within Power BI.

Download DAX Formulas Reference Guide
Download DAX Formula Reference Guide