I have a straight table, and I am writing below expression. but only first part of the expression where i used distinct gives the correct result, whereas in 2nd part its not showing correct value, i need to write it into a different fashion but am not able to.
PS: Am new to Qlik
num((sum(aggr(distinct max({$<Flag = {'Opportunity'},[Last Approved OBR Flag]={'Y'},[Approval Record Type]={'Opportunity Business Review'},[Sales Stage]-={'01 - Understand Customer','02 - Validate Opportunity',