Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

Announcements
QlikView Fans! We’d love to hear from you.
Share your QlikView feedback with the product team… Click here to participate in our 5-minute survey.
Rules, plus terms and conditions, can be found here.
senarath
Contributor III

How to load Max(field) in load script

Hi,

I wanted to load Max(INVOICE_ID) as MaxID since my requirement is to get the DESCRIPTION of latest INVOICE_ID grouped by VENDOR_NAME.

Requirement is to get latest description of the invoice vendor wise.

LOAD

  INVOICE_ID,

  INVOICE_NUM,

     VENDOR_NAME,

     VENDOR_SITE_CODE,

     ADDRESS_LINE1,

     ADDRESS_LINE2,

     ADDRESS_LINE3,

     CITY,

     DESCRIPTION,

     Date(INVOICE_DATE,'DD/MM/YYYY') as INVOICE_DATE,

     Date(ACCOUNTING_DATE,'DD/MM/YYYY') as  ACCOUNTING_DATE,

Many thanks,

Senarath

1 Solution

Accepted Solutions
MVP
MVP

Re: How to load Max(field) in load script

Do it in the from end, like:

Chart: Straight table

Dimension: VENDOR_NAME

Expression: =FirstSortedValue(DESCRIPTION, - INVOICE_ID)              // Note, '-' sign

1 Reply
MVP
MVP

Re: How to load Max(field) in load script

Do it in the from end, like:

Chart: Straight table

Dimension: VENDOR_NAME

Expression: =FirstSortedValue(DESCRIPTION, - INVOICE_ID)              // Note, '-' sign

Community Browser