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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Christene
New Member

Win rate calc

Good day

 

I need help with calculating the win rate of opportunities in different stages.

It should be Won/Won+Lost

 

Here is my formula thus far:

Divide(Calculate(Count(LAH Opp[Stage]), Filter(All(LAH Opp[Stage], LAh Opp[Stage] = "Won",

Calculate(Count(LAH Opp[Stage], Filter(All(LAH Opp[Stage], LAH Opp[Stage] = "Won" || LAH Opp[Stage] = "Lost")))))

1 ACCEPTED SOLUTION
harshnathani
Community Champion
Community Champion

Hi @Christene ,

 

Pls try

 

Measure =
VAR won =
    CALCULATE (
        COUNT ( 'LAH Opp'[Stage] ),
        FILTER (
            ALL ( 'LAH Opp'[Stage] ),
            'LAH Opp'[Stage] = "Won"
        )
    )
VAR lost =
    CALCULATE (
        COUNT ( 'LAH Opp'[Stage] ),
        FILTER (
            ALL ( 'LAH Opp'[Stage] ),
            'LAH Opp'[Stage] = "Lost"
        )
    )
RETURN
    DIVIDE (
        won,
        ( won + lost )
    )

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

Incase it does not work pls share some sample data (not in image)

View solution in original post

2 REPLIES 2
AlB
Community Champion
Community Champion

@Christene 

DIVIDE (
    CALCULATE (
        COUNT ( 'LAH Opp'[Stage] ),
        FILTER ( ALL ( 'LAH Opp'[Stage] ), 'LAh Opp'[Stage] = "Won" )
    ),
    CALCULATE (
        COUNT ( 'LAH Opp'[Stage] ),
        FILTER (
            ALL ( 'LAH Opp'[Stage] ),
            'LAH Opp'[Stage] = "Won"
                || 'LAH Opp'[Stage] = "Lost"
        )
    )
)

Please mark the question solved when done and consider giving kudos if posts are helpful.

Contact me privately for support with any larger-scale BI needs, tutoring, etc

Cheers 

 

SU18_powerbi_badge

harshnathani
Community Champion
Community Champion

Hi @Christene ,

 

Pls try

 

Measure =
VAR won =
    CALCULATE (
        COUNT ( 'LAH Opp'[Stage] ),
        FILTER (
            ALL ( 'LAH Opp'[Stage] ),
            'LAH Opp'[Stage] = "Won"
        )
    )
VAR lost =
    CALCULATE (
        COUNT ( 'LAH Opp'[Stage] ),
        FILTER (
            ALL ( 'LAH Opp'[Stage] ),
            'LAH Opp'[Stage] = "Lost"
        )
    )
RETURN
    DIVIDE (
        won,
        ( won + lost )
    )

 

Regards,
Harsh Nathani

Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)

 

Incase it does not work pls share some sample data (not in image)

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.