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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
kpangelinan
Helper I
Helper I

Win Rate

I am trying to calculate a win rate. I have two Columns (1) OldValue and (2) is Opportunity.IsWon.

 

The OldValue column contains Stages (i.e. stage 1, stage 2, stage 3). The Opportunity.IsWin column contains either True or False.

I want to be able to calculate the Grand Total of Opps where the old value is Stage1. Let's say, for example, that it comes out to 100 total opps.

I then need to calculate how many of those opps had an Opportunity.IsWon as True. And finally with that I want to calculate the % of wins based on how many opps were true / the total opps.

 

Thank you for your help!

Capture.PNG

1 ACCEPTED SOLUTION
Anonymous
Not applicable

I'll do this with 3 measures.

 Grand Total of Opps = CALCULATE(
	COUNTROWS('YourTable'),
	LEFT('YourTable'[OldValue], 7) = "Stage 1"
)
 Opps had an Opportunity = CALCULATE(
	COUNTROWS('YourTable'),
	LEFT('YourTable'[OldValue], 7) = "Stage 1",
	'YourTable'[Opportunity.IsWon]
)
WinRate = DIVIDE(
	[Opps had an Opportunity],
	[Grand Total of Opps]
)


Assumptions:
- Your field Opportunity.IsWin is of type boolean, rather than text

- You wanted to hardcode "Stage 1" into your measure.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

I'll do this with 3 measures.

 Grand Total of Opps = CALCULATE(
	COUNTROWS('YourTable'),
	LEFT('YourTable'[OldValue], 7) = "Stage 1"
)
 Opps had an Opportunity = CALCULATE(
	COUNTROWS('YourTable'),
	LEFT('YourTable'[OldValue], 7) = "Stage 1",
	'YourTable'[Opportunity.IsWon]
)
WinRate = DIVIDE(
	[Opps had an Opportunity],
	[Grand Total of Opps]
)


Assumptions:
- Your field Opportunity.IsWin is of type boolean, rather than text

- You wanted to hardcode "Stage 1" into your measure.

 

@Anonymous Thank you so much for the quick response and providing the breakdown. This worked.

win rate.PNG

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.