Hi @Shruti1,
I share with you a useful documentation link, that can help you to clarify your issue.
Try with these two options inside the XML schema where you need the filter:
A:
<sysFilter>
<expr>
<![CDATA[
(@brand=0 and @branchId=999999) or (@brand!=0 and @branchId=table1.BRANCH_ID)
]]>
</expr>
</sysFilter>
B:
<sysFilter>
<expr>
<![CDATA[
([@brand=0] and 999999) or ([@brand!=0] and @branchId=table1.BRANCH_ID)
]]>
</expr>
</sysFilter>
Regards,
Celia