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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Add value out QV table in textbox

Hello all, in my QV application I have a table where I store a date for the most recent data of the different sources, this looks like this

2011-05-24 11.3601.gif

I also store a variable with the the last scriptload date, now i want a text box with the last loaded date en the most recent date (depending on the selected source, always only one selected!)

Now i have the following code;

='Last data load: '&$(vLastScriptLoad)&chr(10)&'Most recent data: '

Now I want a function te get the right value out of the table. I would say the peek functio but that one isn't available in a text box.

Can anyone help me out here, Thnx in advance!

1 Solution

Accepted Solutions
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     What you want to show after the Most Recent Data.

     If it is the date. Meaning is a user selects Source and you want to show the corresponding Date, then the statement will be

='Last data load: '&$(vLastScriptLoad)&chr(10)&'Most recent data:' & Date

Regards,

Kaushik Solanki

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

View solution in original post

4 Replies
kaushiknsolanki
Partner Ambassador/MVP
Partner Ambassador/MVP

Hi,

     What you want to show after the Most Recent Data.

     If it is the date. Meaning is a user selects Source and you want to show the corresponding Date, then the statement will be

='Last data load: '&$(vLastScriptLoad)&chr(10)&'Most recent data:' & Date

Regards,

Kaushik Solanki

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

Hi,

You can try Max(Date)

Not applicable
Author

Hi,

what you can do is this

Temp_CalendarRange:

Load Max(Datefield) as [vMaxDate]

Resident Table;

    

    

LET vMaxDate = Peek('vMaxDate', 0, 'Temp_CalendarRange');

Now use this variable in the text box like this

='Last data load: '&$(vLastScriptLoad)&chr(10)&'Most recent data: '$(VMaxDate)

Hope that helps

sravan

Not applicable
Author

Thnx!! Didn't expect it to be that simple!