Could someone please tell me what I might be doing wrong here?
I'm trying to write an if statement to calculate price gain and is being prompted with an error as below :

Formula is :
IF [Document Currency]='USD' then(([Unit Price In Backlog]-[ASP (USD)])*[Backlog Quantity in Base Unit])elseif( ([Unit Price In Backlog]-[ASP (Local) ])*[Backlog Quantity in Base Unit])
ENDif
Dataset used :
| Material | Unit Price In Backlog | Document Currency | ASP (Local) | ASP (USD) | Backlog Quantity in Base Unit |
| ABC | 600.00 | USD | 406.22 | 406.22 | 263 |
| BYA | 4,000.00 | INR | 3,467.13 | 3,467.13 | 4 |
| SJR | 120.00 | USD | 90.00 | 90.00 | 73 |
| QVY | 210.00 | SGD | 180.50 | 180.50 | 36 |