I have a report in which i have to calculate the metric first (some Max level) and then display only those records which satisfy a condition (some Id=1).
I have query given below:
select a11.fldApprovalId fldApprovalId,
a11.fldResponsibilityLevel fldResponsibilityLevel,
max(a11.fldRuleId) WJXBFS1
from uv_AdjustmentTasklist a11
where a11.fldTaskStatusId = 1
group by a11.fldApprovalId,
a11.fldResponsibilityLevel
in this case i am getting both fldresponsibiltylevel and max(fldruleid) same because fldtaskstatusId=1 is applied first and then the metric is being calculated.
how can achieve the results with first caluclating the max(fldruleid) and then display the records with fldtaskstatusid=1
Thank you,
I have query given below:
select a11.fldApprovalId fldApprovalId,
a11.fldResponsibilityLevel fldResponsibilityLevel,
max(a11.fldRuleId) WJXBFS1
from uv_AdjustmentTasklist a11
where a11.fldTaskStatusId = 1
group by a11.fldApprovalId,
a11.fldResponsibilityLevel
in this case i am getting both fldresponsibiltylevel and max(fldruleid) same because fldtaskstatusId=1 is applied first and then the metric is being calculated.
how can achieve the results with first caluclating the max(fldruleid) and then display the records with fldtaskstatusid=1
Thank you,