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

Announcements
Join us in Zurich on Sept 24th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
cbaqir
Specialist II
Specialist II

Set Analysis Syntax Help

I am trying to display a text box that shows a count of REQUEST_ID where CUR_WORKFLOW_STEP_NAME={'Project Initiation and Design' and where sum(WORKFLOW_DURATION)>=120. Thesum(WORKFLOW_DURATION) should just refer to WORKFLOW_DURATION for 'Project Initiation and Design. I keep getting an error. What am I doing wrong?

=Count(distinct {$<CUR_WORKFLOW_STEP_NAME={'Project Initiation and Design',sum(WORKFLOW_DURATION)={">=$(>=120)"}>}REQUEST_ID)

Thanks,

Cassandra

1 Solution

Accepted Solutions
ramoncova06
Partner - Specialist III
Partner - Specialist III

try with this

=Count(distinct {$<CUR_WORKFLOW_STEP_NAME={'Project Initiation and Design'},REQUEST_ID ={"=sum(WORKFLOW_DURATION)>=120"}>}REQUEST_ID)

View solution in original post

3 Replies
ramoncova06
Partner - Specialist III
Partner - Specialist III

try with this

=Count(distinct {$<CUR_WORKFLOW_STEP_NAME={'Project Initiation and Design'},REQUEST_ID ={"=sum(WORKFLOW_DURATION)>=120"}>}REQUEST_ID)

Not applicable

You can't use the Sum function directly in place of field.

Try like below:

=Count(distinct {$<CUR_WORKFLOW_STEP_NAME={'Project Initiation and Design', REQUEST_ID={"=sum(WORKFLOW_DURATION)>120"}>}REQUEST_ID)

swuehl
MVP
MVP

I assume you want to sum() per Request_ID:

=Count(distinct {$<CUR_WORKFLOW_STEP_NAME={'Project Initiation and Design', REQUEST_ID = {"=sum(WORKFLOW_DURATION)>=120)"}>}REQUEST_ID)