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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

My formula doesnt work properly

So I have this table

 

VarietySizeMinMaxMax MMMin MMProbA
Grapefruit184.836.06153.924122.6820.993578
Grapefruit234.384.82122.428111.2520.844918
Grapefruit274.234.37110.998107.4420.699794
Grapefruit324.014.22107.188101.8540.422138
Grapefruit363.924.00101.699.5680.311689
Grapefruit403.723.9199.31494.4880.125933
Grapefruit483.593.7194.23491.1860.058042
Grapefruit563.303.5890.93283.820.005854
Grapefruit643.023.2983.56676.7080.000294
Grapefruit640.003.0076.208.36E-41

 

ProbA formula is

ProbA = NORM.DIST('Variety Sizes'[Min MM],[Middle of this Range],[Average Standard Dev],TRUE())
 
but the result are wrong because on excel this is what its showing
testtttttt.PNG
 
I think the wrong thing about my formula is this
ProbA = NORM.DIST('Variety Sizes'[Min MM],[Middle of this Range],[Average Standard Dev],TRUE())
 
because i tried this and it works 

Measure = NORM.DIST(111.24800,[Middle of this Range],[Average Standard Dev],TRUE())
 
which match my excel file.
 
can anyone help me? hope this is pretty simple code issue.
 
thanks!
3 REPLIES 3
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

Or this.

Measure = 
NORM.DIST(
    //MAX represents the value of the current row here
    MAX([Min MM]),
    [Middle of this Range],
    [Average Standard Dev],
    TRUE()
)

 

Best regards,
Lionel Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

PaulDBrown
Community Champion
Community Champion

@Anonymous 

I can't test this, but according to the documentation, the first expression of the NORM.DIST function must be a number value (you are feeding it a column). 
so try an aggregation function like AVERAGE(Variety sizes[Min MM]) as the first expression:

NORM.DIST(AVERAGE(Variety sizes[Min MM]), ...etc





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






DataZoe
Microsoft Employee
Microsoft Employee

@Anonymous Have you tried using 

SELECTEDVALUE('Variety Sizes'[Min MM])?
 
 

Respectfully,
Zoe Douglas (DataZoe)



Follow me on LinkedIn at https://www.linkedin.com/in/zoedouglas-data
See my reports and blog at https://www.datazoepowerbi.com/

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.