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

Announcements
Talend Cloud AWS EU Scheduled Outage: Starting Tues 26 May 21:00 CEST with expected completion Wed 27 May 01:00 CEST
cancel
Showing results for 
Search instead for 
Did you mean: 
hschultz
Partner - Creator
Partner - Creator

Min/Max per line

Hi all

I hope you can assist me please.

I want to get the minimum and maximum value difference out of all time sections that build up a specific line.

The time is for hours in the day.

The sheet is grouped by Day.

So it should look something like this (using basic calculations):

DayOutletCapacityQuantityMinimumMaximum
MonSite A242411
MonSite B242512
TueSite A24000
TueSite B244923

The problem is with my current code, Minimum = 0 in all lines, and Maximum = 3 in all lines. This is the code i am using:

Min(total aggr(sum(DATA1_Qty / INTERVAL_Capacity1), Time))

*Replacing Min with Max in the next colum

The plan is to use this in a traffic light display, where if 1 hour has abnormal capacity vs usage to be different colors. But it needs to show combined by day.

Any assistance will be greatly appreciated.

2 Replies
CELAMBARASAN
Partner - Champion
Partner - Champion

Hi,

     Did you tried without TOTAL

     Min(aggr(sum(DATA1_Qty / INTERVAL_Capacity1), Time))

     or

     Min(total<Day,Outlet> aggr(sum(DATA1_Qty / INTERVAL_Capacity1), Time))

Celambarasan

hschultz
Partner - Creator
Partner - Creator
Author

Help file was quite insistant in using total in your code.

It seems to be working better at least. However - 

There appears to be values of - (Null). But if i click on the Null then there is detail inside it. So surely can't be Null.