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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
2019
Helper II
Helper II

An argument of function 'NORM.DIST' has the wrong data type or the result is too large or too small

I am trying to create a bell curve; at the moment I am keep getting error message

I am trying to create a calculated column the DAX formula I am using is

 

NORM.DIST(

'RESP POP Varation'[Online POP],

'RESP POP Varation'[Average],

'RESP POP Varation'[Standard Deviation],

FALSE()

)

 

The Error message is

“An argument of function 'NORM.DIST' has the wrong data type or the result is too large or too small. If the argument is expected to be a date, that date must be between March 1, 1900 and December 31, 9999.”

 

My desired output graph is:

Bell Curve.PNG

 

 

 

Please find links to PBIX file and Excel sheet file

 

2 ACCEPTED SOLUTIONS

Hmm, will have to look a little deeper. If you do this:

 

Table = GENERATESERIES(0,100,1)
 
And then this:
Column = NORM.DIST('Table'[Value],AVERAGEX(ALL('Table'[Value]),[Value]),STDEVX.P(ALL('Table'[Value]),[Value]),FALSE())
 
And you plot [Column] against x, you get this:
image.png


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

@2019 - Sorry, just getting back to this now. The last file you sent was very helpful. I am sorry but I am only able to achieve the following result in Power BI.

image.png

They key is to use the Average aggregation versus the default Sum aggregation because there are multiple y values for the same x value. Couldn't get the markers, you only get those with Categorical x-axis. Attaching PBIX.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

10 REPLIES 10
Greg_Deckler
Super User
Super User

Your standard deviation is coming back as nan in row context, try:

 

Standard Deviation = STDEVX.S(ALL('RESP POP Varation'),[Online POP])
 
 
Also, just curious, when did you joint the community? 🙂


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

I have joined back in august 2019 🙂

BTW @2019 , the way I found this was that I removed the normal distribution column and created a column:

Column = [Online POP] & "A:" & 'RESP POP Varation'[Average] & "SD" & 'RESP POP Varation'[Standard Deviation]

Just FYI for future troubleshooting.


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

@Greg_Deckler 

I did followed your steps but still i have not got the desired graph

 

this is what i have at the moment

Bell Curve 2.PNG

Hmm, will have to look a little deeper. If you do this:

 

Table = GENERATESERIES(0,100,1)
 
And then this:
Column = NORM.DIST('Table'[Value],AVERAGEX(ALL('Table'[Value]),[Value]),STDEVX.P(ALL('Table'[Value]),[Value]),FALSE())
 
And you plot [Column] against x, you get this:
image.png


Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

you used average(ALL...

What if we want the filters or slicer value to impact? how to do then? 

Dear@Greg_Deckler 

I tried also your recommendation and this is the output:

 

Bell Curve 3.PNG

I know something is not right.

As I did it in excel sheet this is how I wish to have it:

Bell Curve 4.PNG

Here is the excel sheet file

 

I appreciate your efforts

@2019 - Sorry, just getting back to this now. The last file you sent was very helpful. I am sorry but I am only able to achieve the following result in Power BI.

image.png

They key is to use the Average aggregation versus the default Sum aggregation because there are multiple y values for the same x value. Couldn't get the markers, you only get those with Categorical x-axis. Attaching PBIX.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Dear @Greg_Deckler 

Can you please upload the file again, when i tried to open it i get error message

"Object reference not set to an instance of an object"

I will but it is likely that you are on an older version that is not compatible with my April 2020 version and you will need to upgrade your version. I noticed this when I opened your file, I got the warning that if I saved my work it wouldn't be able to be opened in the authoring version of the Desktop. Sorry, too much time passed between then and now that I forgot.

 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.