First it would be good to have a read of How to Ask Questions in Developer Community Spaces ...
I guess you got your answers already yesterday in the other thread: grand total issue in obiee
You are not in Excel, things works in a given way, based on attributes and measures and by doing things based on these elements.
If you display a subtotal in a view for a given attribute the subtotal will be there for all the values of that attribute. So you will have a subtotal for "B" as well.
we can understand but would there be any workaround while playing with css statementas below:-
var tds = document.getElementsByTagName("td");
for(var i = 0; i < tds.length; i++)
if(tds.innerText == "Value Total")
tds[i].parentNode.style.display = "none";
but still it wont works for us.
Also a detail: your script is super slow and using tons of resources for nothing as you loop over all the <td> of the page, there must be few hundreds ...