Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
davidvikings198
Contributor
Contributor

Spaces in Fields of Chart being dropped.

I have a field being pulled out of a Sql DB.  The name of the field in Invoice.  It is stored in the DB as VarChar.  So I am loading it with the following:

load *

Select Ven_ID

,Invoice

From $(sDBName).dbo.Invoices i;

So in the SQL DB Invoice appears like 111 234  and when it is render in Chart it appears like 111234. 

Now I thought that Qlik Sense only removed the space on a Number field so you have to use the Text Function.  I cant find anything about VarChar or how to fix it.  Any help is welcome.

Thanks,

David

1 Solution

Accepted Solutions
Nicole-Smith

You can try loading it in and casting it as text in the load script:

LOAD Ven_ID, TEXT(Invoice) AS Invoice;

SELECT Ven_ID,

     Invoice

From $(sDBName).dbo.Invoices i;

View solution in original post

2 Replies
Nicole-Smith

You can try loading it in and casting it as text in the load script:

LOAD Ven_ID, TEXT(Invoice) AS Invoice;

SELECT Ven_ID,

     Invoice

From $(sDBName).dbo.Invoices i;

davidvikings198
Contributor
Contributor
Author

Thank you Nicole.  I was going to do that but thought it was only for a Number field. 

David