Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to delete the last row in a table

Hi All,

I want to know, how to delete the last row in a table.

Date:

Load    Date

          ,Time

          ,Year

from Somthing.qvd;

Here I want to know How to delete the last row of the Date table.?

Thanks in advance.

Regards,

Kabilan K

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you are loading from a qvd, you can use QvdNoOfRecords() to get the number of rows in a qvd.

Let vRows = QvdNoOfRecords('mydata.qvd) - 1;

First($vRows) Load .... From mydata.qvd;

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

2 Replies
fdelacal
Specialist
Specialist

always has the same number of rows or increase this number?
you could use ..
First (10) Load ...... from ABC.CSV

(10) REPLACE WITH YOUR NUMBERS OF ROWS.

or

if you know the date

WHERE date < 'YYYY-MM-DD'

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you are loading from a qvd, you can use QvdNoOfRecords() to get the number of rows in a qvd.

Let vRows = QvdNoOfRecords('mydata.qvd) - 1;

First($vRows) Load .... From mydata.qvd;

Hope that helps

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein