cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
frenchiedc87
Helper I
Helper I

Need help fixing my win rate formula

I am trying to create a win rate formula which should be win rate= win / (win+loss)

 

Thought, something is not working -- I am a novice

 

Win Rate = CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status]="won"))/ CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status] ="won" AND "lost)))))
 
Help will be much appreciated
 
Thanks
 
A
2 ACCEPTED SOLUTIONS
amitchandak
Super User IV
Super User IV

@frenchiedc87 , try

Win Rate = divide(CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status]="won")),
CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status] in {"won" , "lost"})))
or , In case there only two values won and lsot

Win Rate = divide(CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status]="won")),
CALCULATE(COUNT(CorpPipeline_ALL[Title])))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

az38
Super User II
Super User II

@frenchiedc87 

Win Rate = DIVIDE(
CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(ALL(CorpPipeline_ALL), CorpPipeline_ALL[Opportunity Status]="won")), 
CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(ALL(CorpPipeline_ALL), CorpPipeline_ALL[Opportunity Status] ="won" ||  CorpPipeline_ALL[Opportunity Status] ="lost)))))
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

2 REPLIES 2
az38
Super User II
Super User II

@frenchiedc87 

Win Rate = DIVIDE(
CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(ALL(CorpPipeline_ALL), CorpPipeline_ALL[Opportunity Status]="won")), 
CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(ALL(CorpPipeline_ALL), CorpPipeline_ALL[Opportunity Status] ="won" ||  CorpPipeline_ALL[Opportunity Status] ="lost)))))
)

do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

View solution in original post

amitchandak
Super User IV
Super User IV

@frenchiedc87 , try

Win Rate = divide(CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status]="won")),
CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status] in {"won" , "lost"})))
or , In case there only two values won and lsot

Win Rate = divide(CALCULATE(COUNT(CorpPipeline_ALL[Title]),FILTER(CorpPipeline_ALL, CorpPipeline_ALL[Opportunity Status]="won")),
CALCULATE(COUNT(CorpPipeline_ALL[Title])))



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

April Update

Check it Out!

Click here to read more about the April 2021 Updates!

MBAS Carousel

Sign up for our May 4th event!

May the fourth be with you, join us online!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.