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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Min/Max for non-number field

Hi everyone,

In my dashboard, I want a % CAGR KPI that updates when I select a year range. However, my year field is not formatted as numbers e.g. 2011,2012, etc but is formatted as fiscal years, e.g. FY11, FY12, etc. This means that in the expression I cannot instruct it to look for the min and max values of the current selection.

Currently, I am using this qualifier:

{<[Fiscal Year]= {"$(=min([Fiscal Year]))"}>}

Does anyone know what I can do, instead, for example just to have it search for the '12' in 'FY12'? Or do I have to change the field to numbers, e.g. 2011, 2012.

Thanks!

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

You can format fiscal years as dual - see dual() function.

Or, take a look at maxstring() and minstring()

View solution in original post

4 Replies
Anonymous
Not applicable
Author

You can format fiscal years as dual - see dual() function.

Or, take a look at maxstring() and minstring()

sunny_talwar

Maybe create a new field like this in the script: Right([Fiscal Year], 2) as [Year of Fiscal Year] and use that in your set analysis.

Best,

S

Not applicable
Author

It worked, thanks!

Not applicable
Author

Do you mind if you put a snapshot of the chart and the expression behind it?  I'm trying to create a similar functionality and I could use some help right now .