I want to display the results of this equation (B/A+B)*100
I dont want rows of stage=1 and state is open
A are the rows where stage=1 and state is lost
B are the rows where stage=2 or higher irrespective of status
------------------------------------
name |stage| state
------------------------------------
| ABC | 1 | open
| DEF | 1 | open
| ABB | 1 | lost
| ABD | 1 | lost
| PQR | 2 | won
| PQF | 3 | lost
| PQY | 4 | open
| PQN | 5 | won
| PQM | 6 | lost
| PQM | 7 | lost
The result should be (6/6+2)*100= 75 %