Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Akash2k
Contributor III
Contributor III

Ignore a specific filter / column

Hi,

my measure is used to calculate latest distinct table names

here i dont the measure to calculate when job_status is selected

so i provided my measure like 

=Count(DISTINCT {<job_pattern={'BATCH'},job_status=> }If(Aggr(NODISTINCT Max(event_timestamp), job_id) = event_timestamp and (job_status ='FAILED' or job_status ='KILLED'), tb_name))

 

but its not working( i think since i am fetching the tb_name within the if statement)

FYI—-It is working if i am removing this if condition=Count(DISTINCT {<job_pattern={'BATCH'},job_status=> }tb_name)

Thanks for your help!

Labels (2)
1 Solution

Accepted Solutions
rubenmarin

Hi, I think you will need to ignore the job_satuts field in every field, maybe: 

=Count(DISTINCT {<job_pattern={'BATCH'},job_status=> }If(Aggr(NODISTINCT Max({<job_status=>} event_timestamp), job_id) = Only({<job_status={'FAILED','KILLED'}>} event_timestamp), tb_name))

Also I'm not sure if that 'If' would work in that syntax, maybe it needs to be enclosed in another aggr, a sample app would be nice to make some tests.

View solution in original post

2 Replies
rubenmarin

Hi, I think you will need to ignore the job_satuts field in every field, maybe: 

=Count(DISTINCT {<job_pattern={'BATCH'},job_status=> }If(Aggr(NODISTINCT Max({<job_status=>} event_timestamp), job_id) = Only({<job_status={'FAILED','KILLED'}>} event_timestamp), tb_name))

Also I'm not sure if that 'If' would work in that syntax, maybe it needs to be enclosed in another aggr, a sample app would be nice to make some tests.

Akash2k
Contributor III
Contributor III
Author

Hey it works when i use that within the aggr function

Aggr(NODISTINCT Max({<job_status=>} event_timestamp), job_id)

thank you