It could be tricky to resolve macros in a control’s parameters such as the WhereConditon of nested repeaters in your transformation code because of inner apostrophes which can’t be avoided, so you need to use following exact syntax:
WhereCondition=<%# "<columnName>='" + CMS.CMSHelper.CMSContext.CurrentResolver.ResolveMacros("<macro>") + "'" %>
-jh-