I checked your attached .qvw file and I the problem which I also encountered in my solution is that the records in the table with the whole hierarchy are always duplicated. See my attached .qvw with the selected agentID 10000082.
If you apply a time filter, e.g. Year 2015 AND Month Feb, in the hierarchy table only one record should be displayed.
In that period the supervisor of 10000082 were 11000000 only, not 1000000 too !