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
SarahESkells
Frequent Visitor

Poisson.Dist not calculating as expected

Hello

 

I am trying to use the poisson.dist function in Power BI desktop, however using it as a calculated gives an incorrect result and as a measure doesnt allow me to select the column for x value.

 

The formula should be (for row 1) poisson.dist(0,3.26,false), for row 2 poisson.dist(1,3.26,false) etc, however the "column" doesnt give the expected output and the measure wont let me use column FT TG as its not a measure but gives the right output if I put in x = 0 for the first row?

SarahESkells_0-1660074039597.png

Any help will be hugely appreciated

 

Thanks in advance

 

 

4 REPLIES 4
v-zhangti
Community Support
Community Support

Hi, @SarahESkells 

 

You can try the following methods.

Measure = poisson.dist(SUM('Table'[FT TG]),SUM('Table'[All Teams]),FALSE())

vzhangti_0-1660627421973.png

Is this the result you expect?

 

Best Regards,

Community Support Team _Charlotte

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

Thank you for this, it doesn't like it because the All Teams is also a measure? Is there anyway around this?

Hi, @SarahESkells 

 

Sample data:

vzhangti_0-1660699455192.png

Measure:

All Teams = CALCULATE(SUM('Table'[Teams]),ALL('Table'))
Measure = poisson.dist(SUM('Table'[FT TG]),[All Teams],FALSE())

vzhangti_1-1660699528568.png

Does this match your situation?

 

Best Regards,

Community Support Team _Charlotte

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

Hello, thank you for your help.

The All Teams is 

All Teams = CALCULATE(sum('Table'[FT TG]),ALLSELECTED('Table'))
/CALCULATE(count('Table'[HomeTeam]),ALLSELECTED('Table'))
and the FTTG when used in the poisson.dist i don't want it used as a sum because in the table of data it there will (for example) be multiple FTTG = 1, but the poisson dist should use x = 1 not the sum of the 1's.
Hopefully that makes sense

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.