
The top image shows an example of 3 users entering in bought used and remaining items , I want to implement into my power apps where it automatically calculates the remaining amount and displays it onto the screen. So far ive tried subtracting bought from used but if bought has no value it returns a minus number.
I tried subtracting the datacards of Bought and used but after the purchase and putting a new record in where buy amount is not requiried it returns a minus number, how can i overcome this problem, need URGENT HELP.
Tried: Sum(ThisItem.boughtAmount - ThisItem.usedAmount) in data default for dataCard remaining
