Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
I have a table with 15K rows, each of which is a potential order. Each row has a status of Open, Lost or Won. I've created three extra columns, one for each of those status, and populated them with:
Status Won = IF (Status = "Won", 1, 0)
and the same for Status Lost and Status Open. So I end up with values in the three columns in the thousands. Great.
I want to calculate the percentage of orders that were won - so, basically, Status Won / (Status Won + Status Lost)
I tried doing it with a calculated column, but of course it calculated it for each row, which was useless. I want the percentage of the total number of Won vs Won + Lost.
Solved! Go to Solution.
Would this work for you?:
measure = VAR countLost = CALCULATE(COUNTROWS(Table2),Table2[Status]="Lost") VAR countWon = CALCULATE(COUNTROWS(Table2),Table2[Status]="Won") VAR denominator = countWon + countLost RETURN DIVIDE(countWon, denominator, 0)
Proud to be a Super User!
Would this work for you?:
measure = VAR countLost = CALCULATE(COUNTROWS(Table2),Table2[Status]="Lost") VAR countWon = CALCULATE(COUNTROWS(Table2),Table2[Status]="Won") VAR denominator = countWon + countLost RETURN DIVIDE(countWon, denominator, 0)
Proud to be a Super User!
Thank you, perfect!
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 43 | |
| 35 | |
| 33 | |
| 21 | |
| 15 |
| User | Count |
|---|---|
| 64 | |
| 59 | |
| 31 | |
| 27 | |
| 25 |