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

Announcements
Qlik and ServiceNow Partner to Bring Trusted Enterprise Context into AI-Powered Workflows. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
nlucia
Contributor II
Contributor II

Networkdays as Dimmension (range)

Hello everyone I need help to put ranges of networkdays as dimension. I have to calculate how many days it takes to assign a ticket between when the ticket is opened and when it is assigned (in business days)

"0-3 days"

"4- more days"

As they are tickets that are assigned more than once, within the formula I have to take into account that the date is the first assignment.

I am using the following function, which is not working for me (as dimension)

if(NetWorkDays( date(date_submitted)+1 , Min(if((old_value='new') and (field_name='status') and ((new_value='asigned')), (DATE(timestamp(date_modified/ 86400 + 25569))-time#(3,'hh'))))) <4,'0 to 3 days','4 or more')

natalia_larrea_0-1658356246013.png

But in the editor expresion is "acepted"

Thank you for your help!

Labels (3)
1 Reply
edwin
Master II
Master II

you cant use the regular aggregation function in a dimension expression you need to use AGGR.  see pic:

edwin_0-1658518862427.png

table to the left i am using min of date as a measure.  in the right i am using aggr to get the min date as a dimension.

this is what it looks like if i use min as a dimension:

edwin_1-1658518942801.png

 

the expression builder will tell you the expression is correct as min(date) is a correct expression: min will accept date field as an argument.  syntactically right.