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: 
hugomeuris
Contributor
Contributor

Find Max of a time

Hello every one,

I'm facing a problem with Qlik Sence I couldn't manage to fix for now, so I thought I should ask the community for some help 😃

What I'm looking for is following :

Everyday (column 2) I get a working time (column 4) for each line of production (column 3)

I would like to add a column thank to set analysis, which would give me the maximum of working time between the 2 lines of production.

(like shown on the picture)

Question Qlik.jpg

I tried to use the Max() function but I can't use it on the operator SUM => Max(Sum(TPSPASSE)) doesn't worked.

By looking through some docs and posts I got that I had to use Aggr(), but all I tried doesn't work...

Has please someone an idea what I should write in set analysis to get the wanted column ?

Thank for your time and consideration

13 Replies
hugomeuris
Contributor
Contributor
Author

Didn't know I could attach files like that

Hope it'll help to see better what I try to obtain ...

sunny_talwar
MVP
MVP

Is your field name called Ligne or PFC_Ligne de conditionnement??

You just need to use the exact field names to get it to work

Max(TOTAL <PFC_Jour, JOUR_PRODUCTION> Aggr(Sum(TPSPASSE),  PFC_Jour, JOUR_PRODUCTION, [PFC_Ligne de conditionnement]))

Similarly, use the right field names for PFC_Jour and JOUR_PRODUCTION

hugomeuris
Contributor
Contributor
Author

Thanks a lot Sunny , it's working 😃

sunny_talwar
MVP
MVP

Awesome, please close the thread by marking correct and helpful responses.

Qlik Community Tip: Marking Replies as Correct or Helpful

Best,

Sunny