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

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Value before Min Value

Hi

I have a list box with values in text , I need to display the value before minimum value , by usng minstring(column) I get the minimum value sorted alphabetically how do I get the value before that?

Thanks

17 Replies
avinashelite

try like this

min(column, 2) this will give the 2 min value of your column

Anonymous
Not applicable
Author

it is a string so I have to use minstring right? with min I am not getting values

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

You can try this.

=MinString({<Name -= {"$(=Minstring(Name))"}>}Name)

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
Anonymous
Not applicable
Author

This gives me a value but not picking the 1 value before minstring ..but 4 values before the minstring value

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

Can you share sample values. Also tell us what value you want as output.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!
avinashelite

please share the sample data ??

Digvijay_Singh

confusing, as nothing can be before minstring, I thought you wanted next minimum value which can be generated using Kaushik.solanki expression. Please elaborate further the req.

Anonymous
Not applicable
Author

With Kaushik's expression I get the value underlined in Red , I am looking for Yellow highlighted value , I guess the values being case sensitive is causing issue

kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

This is because the way minimum string is found is it gets converted into ASCII values and then as per the ASCII values the function gives you the minimum String.

If you look that way then the minimum string is AgentServiceCenter and then within that the Minimum will be AgentServiceCenter:M...... Because in ASCII table Capital latter have minimum ASCII values.

Regards,

Kaushik Solanki

Please remember to hit the 'Like' button and for helpful answers and resolutions, click on the 'Accept As Solution' button. Cheers!