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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

finding max & Min Month dynamically

Hi All,

   I am having a 2 list boxes such as Period 1 & Period 2. So when user selects different months in this list boxes I need to show the delta values between months. For Ex : If user selects Sep 2017 from Period 1 and Oct 2017 from Period 2 ,then I need to show the delta values between these two months.

However if any of the user selects multiple months, I need to show the Max (Month) from Period 2 and Min(Month) from Period 1.

I have attached sample file. Kindly let me know with your solution

Thanks,

Jai

2 Replies
Clever_Anjos
Employee
Employee

you should create your fields as numbers, not text, so you could use something like this

sum({<Month={">=$(=Max(Period1))"}*{"<=$(=Max(Period2))"}>}Value)

swuehl
MVP
MVP

Try like this:

Load your Month values as dates in the script.

Then replace GetFieldSelections() with MinString() resp. Maxstring() in your expressions.