Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Naresh1
Contributor III
Contributor III

First value from field

Hi All, 

I have opening balance field in that opening balance  values are 10,000 & 22,000 & 33,000 &..... But I want to show opening balance field  first value(10,000) as separate field

How can I do this in script, can any one tell me

Regards,

naresh

1 Reply
Durgadevikumar
Partner - Contributor III
Partner - Contributor III

Hi Naresh,

Try this one,

A:
LOAD Id,
Date,
Sales,
[Opening balance]          // Your field already loaded
FROM
[C:\Users\770841\Desktop\top 10 sales.xlsx]
(ooxml, embedded labels, table is Sheet1);

Load
[Opening balance],
Peek([Opening balance],0) as new_Field   // Now it gives the first value
Resident A;

Hope you are understanding

Regards,

DurgadeviKumar