Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to delete last row

Hi All,

How to delete last row in straight table in qlikview and Xtable in Qliksense.

Header coming two times.How to restrict that.

Ex: Raw Data

Date

Time

Ext No

Name

State

TeamNo

7/27/2017

01:00:52PM

3108

A

Sign-Off

31

7/27/2017

01:01:29PM

3165

B

Sign-Off

31

Date

Time

Ext No

Name

State

TeamNo

7/27/2017

01:13:11PM

3109

C

Sign-Off

31

7/27/2017

01:17:58PM

3124

D

Sign-Off

31

Qlik out put:

Date

Time

Ext No

Name

State

TeamNo

7/27/2017

01:00:52PM

3108

A

Sign-Off

31

7/27/2017

01:01:29PM

3165

B

Sign-Off

31

7/27/2017

01:13:11PM

3109

C

Sign-Off

31

7/27/2017

01:17:58PM

3124

D

Sign-Off

31

Date

Time

Ext No

Name

State

TeamNo

Thanks,

Krishna

1 Solution

Accepted Solutions
Or
MVP
MVP

Don't read lines that are just repeat of the headers.

Load Date,

         Time,

         'Ext No'

          Name,

          State,

         TeamNo

FROM [lib:// data.xls]

(biff, embedded labels, table is Sheet1$)

WHERE Date <> 'Date';

View solution in original post

9 Replies
Anonymous
Not applicable
Author

Hello Krishna,

I think it is problem on script level. Could you present a sample?

Regards

Jacek.

Anonymous
Not applicable
Author

Hi Jacek,

Script:

Load Date,

         Time,

         'Ext No'

          Name,

          State,

         TeamNo

FROM [lib:// data.xls]

(biff, embedded labels, table is Sheet1$);



Thanks,

Krishna

Anonymous
Not applicable
Author

Could you add data.xls with Sheet1 ?


Regards

Jacek.

Anonymous
Not applicable
Author

Hi Jacek,

P F A.

Thanks,

Krishna

jpenuliar
Partner - Specialist III
Partner - Specialist III

Try this:

Temp1:
Load * Inline
[
Date,Time,Ext No,Name,State,TeamNo
7/27/2017,01:00:52PM,3108,A,Sign-Off,31
7/27/2017,01:01:29PM,3165,B,Sign-Off,31
Date,Time,Ext No,Name,State,TeamNo
7/27/2017,01:13:11PM,3109,C,Sign-Off,31
7/27/2017,01:17:58PM,3124,D,Sign-Off,31
];

temp2:
Load *
Where DeleteFlag = 0
;
Load *,
If([Date] = 'Date',1,0) as DeleteFlag
Resident Temp1;

Drop Table Temp1;
Drop Field DeleteFlag;

Or
MVP
MVP

Don't read lines that are just repeat of the headers.

Load Date,

         Time,

         'Ext No'

          Name,

          State,

         TeamNo

FROM [lib:// data.xls]

(biff, embedded labels, table is Sheet1$)

WHERE Date <> 'Date';

micheledenardi
Specialist II
Specialist II

LOAD Date,

     Time,

     [Ext No],

     Name,

     State,

     [Team No]

FROM

(ooxml, embedded labels, table is Sheet1)

where Date<>'Date' and Time<>'Time' and [Ext No]<>'Ext No' and Name<>'Name' and State<>'State' and [Team No]<>'Team No';


2017-11-09 15_53_11-QlikView x64 Personal Edition - [C__Users_Michele.Denardi_Desktop_test2.qvw_].png

Michele De Nardi
If a post helps to resolve your issue, please accept it as a Solution.
Anonymous
Not applicable
Author

Thanks All

Anonymous
Not applicable
Author

Yes, like Michele wrote, Krishna, you need to remove all possibilities.

Regard

Jacek.