Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello! Sorry in advance for my english.
Here is my question: I would like to import data from an Excel file containing one column ("Siege") with leading spaces records.
But while loading data into qlikview, leading spaces are automatically suppressed even using Text() function:
...
Text(Siege) as Siege,
...
The workaround I found is to modify the "Verbatim" variable before loading data and it works fine :
Set Verbatim = 0;
To count spaces of each record, i created a new column using :
substringcount(Siege,' ') as Hierarchie,
I can retrieve the correct number of leading spaces for the first three records. It doesn't work for the last one because i don't want to count space between 'S4' and 'London' but only before 'S4'.
So how can I only count leading spaces in a string ??
Thank You for your help
( len(Siege) - (len( ltrim(Siege))))
( len(Siege) - (len( ltrim(Siege))))
Hello, it works fine and the solution more simple than I expected
Thank you !