I got to know this!!
Suppose if A is parent and its child is B. Then open B go to Hierachy --> Parent there you will see record for Project A change the Allocation 0 to 100% then open Project A --> Hierarchy Tab. you will notice amount instead of Zeros as I have asked the question above.
Thanks.