Having Clause in AX 2012

I have two tables, say T1 and T2.

I am using a having clause with one of the field of T2 and in group by field i add one field from T1…

Now i want to print that field in wich having clause is operating…

Is it possible?, If any one knows then please help me.