
Partner - Contributor
2013-08-01
11:21 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
How to count spaces at the beginning of each row?
Hi everyone,
I need to count how many space characters are at the beginning of every row, but qv automatically deletes them.
How can I do it?
Thanks for your answer.
Ferran.
1,473 Views
1 Solution
Accepted Solutions

Partner - Champion III
2013-08-01
01:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to set the Verbatim variable to 1 to prevent Qlikview from stripping the spaces. In the script you can add this line to prevent the trimming:
set Verbatim = 1;
talk is cheap, supply exceeds demand
4 Replies

.png)
Luminary Alumni
2013-08-01
11:35 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi, you can use this function
substringcount(yourField, ' ')
1,296 Views

Partner - Contributor
2013-08-01
11:39 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I doesn't work, it returns 0. QV automatically deletes the spaces from the beginning of the load and i need to not do this.
Any other solution?
1,296 Views

Partner - Champion III
2013-08-01
01:16 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You need to set the Verbatim variable to 1 to prevent Qlikview from stripping the spaces. In the script you can add this line to prevent the trimming:
set Verbatim = 1;
talk is cheap, supply exceeds demand

Partner - Contributor
2013-08-02
04:02 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks!!!!
1,296 Views
