Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I need to count process_id based on condition
Count(
DISTINCT
If(
Aggr(NODISTINCT Max(process_strt_tm), process_id) = process_strt_tm
AND process_status = 'Completed' ,
process_id
)
But before this, I need to add an extra condition that catalog_type='xyz'
How to do this?
Count(
DISTINCT
If(
Aggr(NODISTINCT Max({<catalog_type={'xyzzy'}>} process_strt_tm), process_id) = process_strt_tm
AND process_status = 'Completed',
process_id
)
)
Check This :
Count(
DISTINCT
If(
Aggr(NODISTINCT Max(process_strt_tm), process_id) = process_strt_tm
AND process_status = 'Completed'
AND catalog_type = 'xyzzy',
process_id
)
)
No. I need to choose catalog_type first and then apply rest of condition
Count(
DISTINCT
If(
Aggr(NODISTINCT Max({<catalog_type={'xyzzy'}>} process_strt_tm), process_id) = process_strt_tm
AND process_status = 'Completed',
process_id
)
)