Lets say that P acquired S at 80%. Also, assume that Profit for the year of Consolidated Statetment of profit or loss is $10,000 and Profit for the year of subsidiary is $5000
Then, Attributable profit :
NCI : 5000*20%=1000
10,000(profit for the year of cosolidated ) – 1000 (of NCI) = 9,000 attributable to Shareholders
(sorry, its not from dec12 but I hope that it helps)