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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
racer25
Creator
Creator

Peek Question

Hi All,

Peek is a function I have not used before so really not sure how it works or even if its correct in the scenario.

I am looking to load the highlighted data only (2nd newest R and newest R.

PLY_COVERNUMBER AND PLY_VERNO can be anything in the table.

Once I have this data I am looking to review billing quality within those dates.

Thanks in advance.


Rob

  

PLY_COVERNUMBERPLY_VERNOPLY_INVOICENOPLY_TRANSACTIONTYPEPLY_RENDATE
002388001900527256R16-Jan-12
002388002000589936R16-Jan-13
002388002100650189R16-Jan-14
002388002200650950R16-Jan-14
002388002300650953E16-Jan-14
002388002400702298R16-Jan-15
002388002500750819R16-Jan-16
002388002600752459R16-Jan-16
002388002700752463E16-Jan-16
002388002800794733R16-Jan-17
002388002900797027E16-Jan-17
002388003000797028E16-Jan-17
002388003100834423R16-Jan-18
002388003200752463E16-May-18
Labels (1)
1 Reply
marcus_sommer

The most important thing by using interrecord-functions like peek() or previous() is an appropriate sorting (only possible within a resident load) of the data - in your case probably the fields PLY_COVERNUMBER, PLY_TRANSACTIONTYPE, PLY_VERNO and/or PLY_RENDATE. A very good explanation how it worked is this one: Peek() or Previous() ?

- Marcus