Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

Statistical Error Function in DAX / Power Bi - "ERF" in Excel

Someone know if ERF function is available in DAX, and in negative case, how to work around with that?

1 ACCEPTED SOLUTION
OwenAuger
Super User
Super User

@Anonymous

 

The ERF function is not available in DAX right now, but you can use NORM.DIST to produce the same result as ERF.

This is possible since ERF(x) is the probability a normal random variable with mean 0 & variance 0.5 is between -x and +x.

 

A measure like the one below should give the same result as ERF in Excel (when passed a single argument), with <argument> being a measure or other scalar expression to be passed to the "ERF" function:

 

ERF =
2 * ( NORM.DIST( <argument>, 0, SQRT(0.5), TRUE() ) - 0.5 )

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn

View solution in original post

3 REPLIES 3
OwenAuger
Super User
Super User

@Anonymous

 

The ERF function is not available in DAX right now, but you can use NORM.DIST to produce the same result as ERF.

This is possible since ERF(x) is the probability a normal random variable with mean 0 & variance 0.5 is between -x and +x.

 

A measure like the one below should give the same result as ERF in Excel (when passed a single argument), with <argument> being a measure or other scalar expression to be passed to the "ERF" function:

 

ERF =
2 * ( NORM.DIST( <argument>, 0, SQRT(0.5), TRUE() ) - 0.5 )

Regards,

Owen


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn
Anonymous
Not applicable

@OwenAuger you killed it, this exactly attend  my demand. Thank you guy!

Anonymous
Not applicable

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.