cancel
Showing results for 
Search instead for 
Did you mean: 
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 I
Super User I

@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!

My Blog
Connect on Twitter
Connect on LinkedIn

View solution in original post

3 REPLIES 3
OwenAuger
Super User I
Super User I

@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!

My Blog
Connect on Twitter
Connect on LinkedIn

View solution in original post

Anonymous
Not applicable

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

Anonymous
Not applicable

Helpful resources

Announcements
MBAS on Demand

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

July 2021 Update 768x460.png

Check it out!

Click here to read more about the July 2021 Updates

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

Top Solution Authors
Top Kudoed Authors