Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bradcusick
Contributor II
Contributor II

Max of three expressions

Hello,

I am working on an expression for Fire Department response:

I have three expressions in a table.  2 find the minimum response time of a type of vehicle and 1 finds the response time of the 4th arriving specific typo of vehicle.  These expressions work great.

Table1.JPG

What I need to do is build an expression that finds finds the Max of these three values.  In the above example it would be 0:05:24.

I have tried versions of the below, but it does not work...

=Max({<Supp4={'>0'},BCResMin={'>0'},AmbResMin={'>0'}>} ([Travel Time]))

I have also tried several versions of the following without success (these are the expressions behind the values in the three columns):

=RangeMax

(Min({<[Unit Type]={'Ambulance'},[Response (Excel)]={'>0'}>} (Travel Time),

(Sum({<[Scene Arrival Order (Pump Heavy Apparatus)]={'4'}>} ([Travel Time])),

(Min({<[Unit Type]={'BC'},[Response (Excel)]={'>0'}>} ([Travel Time]) ([Travel Time])

Any ideas?

2 Replies
sunny_talwar

This isn't working?

=RangeMax(

Min({<[Unit Type] = {'Ambulance'}, [Response (Excel)] = {'>0'}>} Travel Time),

Sum({<[Scene Arrival Order (Pump Heavy Apparatus)] = {'4'}>} [Travel Time]),

Min({<[Unit Type] = {'BC'}, [Response (Excel)] = {'>0'}>} [Travel Time])

)

bradcusick
Contributor II
Contributor II
Author

Looks like I had an extra parentheses.  It's working now!

Thanks