Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

EvanBarrick
Contributor

Do not load last row of data

My the last row of my data file is a totals row (working to get this excluded from the source) However in the interim, can I alter my script so that this row is excluded?

1 Solution

Accepted Solutions

Re: Do not load last row of data

Just do something like this

LOAD [Source/Medium],
  Campaign,
  Users,
  [New Users],
  ...
FROM ....
Where Len(Trim([Source/Medium])) <> 0;

 

6 Replies

Re: Do not load last row of data

Is there something unique about this row? Like does it say total in one of the column or is there a column which always have a value except for the total row?

EvanBarrick
Contributor

Re: Do not load last row of data

It is always the last row of the data. There are no labels that say total in any of the columns, just that the last row contains the sum of the columns that contain numerical data

Re: Do not load last row of data

Would you be able to share an image or a sample of your data to show what you have?

EvanBarrick
Contributor

Re: Do not load last row of data

Source / MediumCampaignUsersNew UsersSessionsAvg. Session DurationPages / SessionPayment (Goal 4 Completions)Make a payment (Goal 6 Completions)
 webIG616491665182.844.211307
referral(not set)62447497.993.15045
ESab / IGSAB23FeeFree53356039.731.87016
ESab / IGSAB23FeeFree112640294245.521.93019
ESab / RFMRG11311169.631.3801
ESab / RFMRG312101473.001.2100
ESab / RFMRG2108120.831.0800
SocSab / TWFeeFree6476.861.4301
(direct) / (none)(not set)333299.671.6700
  815635893151.483.691389
EvanBarrick
Contributor

Re: Do not load last row of data

The last row of data is default from the data source. They are totals

Re: Do not load last row of data

Just do something like this

LOAD [Source/Medium],
  Campaign,
  Users,
  [New Users],
  ...
FROM ....
Where Len(Trim([Source/Medium])) <> 0;