Create new formula in Main Report & have following text in that
shared numberVar manish1 :=111 ;
You have to drag & drop this formula somewhere in report
Create new formula in Sub Report & have following text in that
shared numberVar manish1;
manish1;
Hope it helps