Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Getting last record of a field in textbox

Hi,

I have a requirement for displaying the last value of the listbox in a text object.

The listbox have date range values. I tried max(Week-range) but it is not working.

I have attached the screenshot of date field for reference.

Thanks for your help in advance.

Capture1.PNG

1 Solution

Accepted Solutions
YoussefBelloum
Champion
Champion

Hi,

procede like this:

Create a Variable (vVariables, for example)

=MaxString(Week_range)

on your listbox, try this:

=if(Week_range=vVariable, Week_range)

View solution in original post

12 Replies
Anil_Babu_Samineni

Can you use MaxString instead of Max?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
YoussefBelloum
Champion
Champion

Hi,

procede like this:

Create a Variable (vVariables, for example)

=MaxString(Week_range)

on your listbox, try this:

=if(Week_range=vVariable, Week_range)

Anonymous
Not applicable
Author

Oh thank you. It worked.

can you please tell me how to get the last before value also

alis2063
Creator III
Creator III

I have tried but did not work around.

if(Week_Range=vVariable, Week_Range)

I am getting result but its not listed & performing at header as below,

Use as below

=MaxString(Week_Range)

exp.jpg

YoussefBelloum
Champion
Champion

Can you attach your app here please?

YoussefBelloum
Champion
Champion

Hi stalwar1‌ can you help on this please? to get the Before last value.. maybe starting with the solution I provided here

Thank you

alis2063
Creator III
Creator III

pfa

tamilarasu
Champion
Champion

Hello,

Not tested but try this and let us know.

MaxString({<Week_Range-={"$(=Maxstring(Week_Range))"}>}Week_Range)

sunny_talwar

I think this might have already been resolved

Last before value in textbox