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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Different Text Boxes to reflect different selections

I have 6 text boxes, and each have a different expression in them, i want it so that that expression is displayed constantly and does not change in all the boxes.

Here is an example of the 6 boxes which I would like 6 different numbers to display,

selection.PNG

Here is an example of the expressions:

=count(if([Severity] = 'Severe' and [Urgency] = 'High', ([Age] >= '7 Days'),'0'))

=count(if([Severity] = 'Moderate' and [Urgency] = 'Medium', ([Age] >= '60 Days'),'0'))

I believe i need to use something along the lines of:

count(aggr(only(if([Severity] = 'Severe' and [Urgency] = 'High', ([Age] >= '7 Days')),'0')))

Labels (1)
16 Replies
Anonymous
Not applicable
Author

Hi Mark,

This still did not seem to fix the issue, I am still getting an output of 1 for all boxes.

NUM(SUBFIELD([Age],' ' ,1)) AS AgeNo is what i placed in my script.

sasiparupudi1
Master III
Master III

May be try like this?

count(if([Severity] = 'Severe' and [Urgency] = 'High', (KeepChar([Age],'0123456789') >= 7),'0'))

sunny_talwar
MVP
MVP

Would you be able to share a sample to check this out?

Anonymous
Not applicable
Author

Sample Data attached

sunny_talwar
MVP
MVP

Is this what you want?

Capture.PNG

chinnuchinni
Creator III
Creator III

try this:

LOAD Age,

     Severity,

     Urgency,

    num( SubField(Age,' ',1)) as Age1

FROM

(biff, embedded labels, table is Sheet1$);

and

expression:

=Count({<Age1 = {">=60"},[Severity] = {'Severe'},[Urgency] = {'High'}>}Age)

Anonymous
Not applicable
Author

Thank you!! Perfect solution!