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

Announcements
Congratulations to the new Qlik Luminary and Partner Ambassador class! Meet them here
cancel
Showing results for 
Search instead for 
Did you mean: 
edg_baltazar
Partner - Creator
Partner - Creator

PEEK FUNCTION

Hi ! , i have some trouble using Peek Function ... it's possible to use a variable or field instead of a constant in de row parameter?... Something like this:

Peek(Date,RowNO()+1) ...or  Peek(Date,Index)    i need to get the next record of date in the script , but it doesn't work ... any idea? , Thanks in advance!

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

Yes, you can use expressions, variables and fields in the row parameter.

The most frequent error with peek is not putting quotes around the field or table names. ie

Peek('Date', RowNo()+1)

-Rob

View solution in original post

2 Replies
rwunderlich
MVP
MVP

Yes, you can use expressions, variables and fields in the row parameter.

The most frequent error with peek is not putting quotes around the field or table names. ie

Peek('Date', RowNo()+1)

-Rob

edg_baltazar
Partner - Creator
Partner - Creator
Author

If i use Peek('Date', RowNo()+1) it doesn't work , but with Peek('Date', RowNo()+1,'Table_Name') it works! , thank you!