This is an interesting problem. I created a component in the attached app that shows one way of implementing this. To open it, save it locally, then go to https://create.powerapps.com, select Open, Browse, and find the file that you saved.
The idea is to make the height of the "current" rectangle the percentage of the height of the "total" rectangle:
rectTotal.Height * Parent.Current / Parent.Max
And make the Y property of that rectangle such that its bottom will alight with the bottom of the "total" rectangle:
rectTotal.Height + rectTotal.Y - Self.Height
Below is an example of that component. Currently its implementation is fairly simple (it doesn't handle well the cases where the current value is larger than the maximum, for example), but that should be a good starting point for you.

Hope this helps!