The incorrect totals problem is a very common one in Power BI. Please check out the thread below, which includes two videos from @sam.mckay explaining how to fix this problem:
If you still have problems after taking a look, please just post your PBIX file and we can work through the specific solution for your data.
I hope this is helpful.
Brian
P.S. here’s another thread that provides more explanation as to why the incorrect total/subtotal problem occurs, with an additional useful video link on evaluation context: