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

Announcements
Qlik Connect 2026 Agenda Now Available: Explore Sessions
cancel
Showing results for 
Search instead for 
Did you mean: 
CasperQlik
Creator
Creator

Min() function not working as expected

I am newt QS and the Min() function does return the values that I expect.

I need to find the earliest start date for all employees. Some employees can have multiple start dates for numerous reasons. See data structure below.

CasperQlik_0-1681808719662.png

What I need is :

CasperQlik_2-1681812200407.png

 

but when I create the field Min(start_date) this is what I get:

CasperQlik_1-1681808977835.png

Can someone explain how I get my desired result?

Thanks!

 

 

Labels (1)
1 Solution

Accepted Solutions
Or
MVP
MVP

What you're getting is correct - the minimum value for the matching dimension values, which are emp_id and start_date.

You can use the total qualifier to ignore dimension values, along with specifying with ones not to ignore, such as:

min(total <emp_id> start_date)

View solution in original post

3 Replies
Or
MVP
MVP

What you're getting is correct - the minimum value for the matching dimension values, which are emp_id and start_date.

You can use the total qualifier to ignore dimension values, along with specifying with ones not to ignore, such as:

min(total <emp_id> start_date)

CasperQlik
Creator
Creator
Author

Hi

Thank you! It works as intended. Can you explain how the total qualifier works, what gets ignored here and how?

Or
MVP
MVP

https://community.qlik.com/t5/Design/Totals-in-Charts/ba-p/1464797

https://community.qlik.com/t5/Design/What-does-the-TOTAL-qualifier-do/ba-p/1472990

https://help.qlik.com/en-US/qlikview/May2022/Subsystems/Client/Content/QV_QlikView/ChartFunctions/de...

https://community.qlik.com/t5/Design/The-Aggregation-Scope/ba-p/1467321

A heavily-covered subjects, albeit not necessarily the easiest to find if you don't know what you're looking for as "total" is kind of a common word. Understanding the aggregation scope in general is very helpful to using Qlik, though.