Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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")))))
Solved! Go to Solution.
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)
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
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)
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
24 | |
13 | |
11 | |
10 | |
9 |
User | Count |
---|---|
18 | |
14 | |
14 | |
12 | |
11 |