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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PBI_newuser
Post Prodigy
Post Prodigy

Binomial Distribution Cumulative error measure

Hi, I tried to follow this link to create a measure for Binomial Distribution Cumulative but it doesn't work. When I pull the "BINOM.DIST.CUMULATIVE" field to the table, it stated "Can't display the visual". How to modify the measure so that I can view the Binomial probability for each member by product? 

Here is the sample data.

 

BINOM.DIST.CUMULATIVE = 
    SUMX(
        ADDCOLUMNS(
            GENERATESERIES(0,[No. of successes]), // For range, change 0 and [x] to the range
            "B",DIVIDE(FACT([No. of trials]),FACT([No. of trials] - [Value])*FACT( [Value])) * POWER([Probability of success], [Value]) * POWER(1-[Probability of success],[No. of trials]- [Value])
        ),
        [B] )

PBI_newuser_0-1671533446580.png

PBI_newuser_1-1671533496997.png

 

 

2 REPLIES 2
v-jialluo-msft
Community Support
Community Support

Hi  @PBI_newuser ,

 

Please follow these steps:
(1) Create a new measure

BINOM.DIST = 

var _a=IF([Probability of success]=0&&[No. of successes]=0,0,POWER([Probability of success],[No. of successes]))

var _b=IF(1-[Probability of success]=0&&[No. of trials]-[No. of successes]=0,0,POWER(1-[Probability of success],[No. of trials]-[No. of successes]))

var _c=

IF(ISINSCOPE('Table'[Member]),

DIVIDE(FACT([No. of trials]),

FACT([No. of trials] - [No. of successes])*FACT([No. of successes])) * _a * _b)

return _c


(2)Final output

vjialluomsft_1-1671617204949.png

 

 

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

Hi @v-jialluo-msft , thank you for your help. Could you please help on "BINOM.DIST.CUMULATIVE" measure too? I need the cumulative measure to do some calculation. Below is the one I created but with error message.

BINOM.DIST.CUMULATIVE = 
    SUMX(
        ADDCOLUMNS(
            GENERATESERIES(0,[No. of successes]), // For range, change 0 and [x] to the range
            "B",DIVIDE(FACT([No. of trials]),FACT([No. of trials] - [Value])*FACT( [Value])) * POWER([Probability of success], [Value]) * POWER(1-[Probability of success],[No. of trials]- [Value])
        ),
        [B]
    )

 

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

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.

Top Solution Authors
Top Kudoed Authors