Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Get min and max possible value in specific field based on current selections

Hi,

I was wondering if it is possible to get the minimum and the maximum possible value in a specific field (in which no selections have been made), based on applied filters on other fields.

Attached an example. The goal is to obtain the value 2014/03/01 for min and 2014/10/01 for max.

I tried with FieldValue, but that did not work as expected.

e.g. ='Lowest possible date value: '  &min(FieldValue(Date,1))

example.png

All suggestions are welcome!

Regards,

Maarten

1 Solution

Accepted Solutions
sebastianlettner
Partner - Creator
Partner - Creator

Hi,

the problem was, that Date was not a Date value.

Take a look an the script. Now Date is a Dual value so you can use the Max/Min function

View solution in original post

4 Replies
sebastianlettner
Partner - Creator
Partner - Creator

Hi,

the problem was, that Date was not a Date value.

Take a look an the script. Now Date is a Dual value so you can use the Max/Min function

awhitfield
Partner - Champion
Partner - Champion

Hi Maarten,

see attached version using a "real Calendar", works as expected with min and max

Regards

Andy

Not applicable
Author

Dear Sebastian,

Dear Andrew,

Thanks a lot! Didn't guess it was that simple... but seems indeed to solve the problem.

At a certain point one is no longer taking a look at the basics... . Luckily your focus was still very sharp

Have a nice day!

Maarten

awhitfield
Partner - Champion
Partner - Champion

No Problem,

it's very easy to make things too complicated and miss the obvious !

You have a good day too!

Regards

Andy