Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
In my recent quest to create or catalog as many DAX equivalents for Excel functions, this one plugs the gap for NEGBINOM.DIST both the probability density version and the cumulative version:
NEGBINOM.DIST = COMBIN([x]+[r]-1,[r]-1) * POWER([p],[r]) * POWER(1 - [p],[x])
NEGBINOM.DIST.CUMULATIVE =
SUMX(
ADDCOLUMNS(
GENERATESERIES(0,[x]), // For range, change 0 and [x] to the range
"-B",COMBIN([Value]+[r]-1,[r]-1) * POWER([p],[r]) * POWER(1-[p],[Value])
),
[-B]
)
eyJrIjoiMTRmOTIwZjktNGJjNi00Y2VhLWFjN2YtNmJmYTg4MWQwODc5IiwidCI6IjRhMDQyNzQzLTM3M2EtNDNkMi04MjdiLTAwM2Y0YzdiYTFlNSIsImMiOjN9