Forum Discussion
NFL Win %
- 5 years ago
Hi mayenscb ,
Create a measure as below:
Home win% = var _winscore=CALCULATE(SUM('Table'[Score_home]),FILTER(ALL('Table'),'Table'[team_home]=MAX('Table'[team_home])&&'Table'[Home team outcome]="Win")) var _losescore=CALCULATE(SUM('Table'[Score_home]),FILTER(ALL('Table'),'Table'[team_home]=MAX('Table'[team_home])&&'Table'[Home team outcome]="Loss")) Return DIVIDE(_winscore,_winscore+_losescore)+0And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
mayenscb , Do you have meausre for Win and Loss.
Try like
divide([Win#],[Win#]+[loss#])
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thank you for your help, below is a screenshot of the data that I am using. Columns G&J are the ones that I want to interface with each other. I want to know if a team is the home team what is their win%.
- v-kelly-msft5 years agoCommunity Support
Hi mayenscb ,
Create a measure as below:
Home win% = var _winscore=CALCULATE(SUM('Table'[Score_home]),FILTER(ALL('Table'),'Table'[team_home]=MAX('Table'[team_home])&&'Table'[Home team outcome]="Win")) var _losescore=CALCULATE(SUM('Table'[Score_home]),FILTER(ALL('Table'),'Table'[team_home]=MAX('Table'[team_home])&&'Table'[Home team outcome]="Loss")) Return DIVIDE(_winscore,_winscore+_losescore)+0And you will see:
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!