Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to change text data to number in qvw?


HI,

I have data as below in chart.

437583804734805834

64732456045720483

9084323783034810238147

when I am sending data to csv the numbers are showing as below

4.37583E+14

6.47325E+13

4.08432E+17

how to change the csv general format into number. I have used Number under format cells. when I used format cells the data is showing as below

437583804734805830

64732456045720480

9084323783034810238140

Please can anyone suggest me is there any way to set this into correct number format.

Thanks.

1 Solution

Accepted Solutions
MK_QSL
MVP
MVP

Data:

LOAD ID,

  IF(Len(PurgeChar(StageData,'0123456789'))=0,Evaluate(StageData),StageData) as StageData

FROM

Test.xls

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

View solution in original post

16 Replies
MK_QSL
MVP
MVP

Test:

Load Evaluate(NumberField) as NumberField Inline

[

  NumberField

  437583804734805834

  64732456045720483

  9084323783034810238147

];

Evaluate() Function

Not applicable
Author

Thanks. I have checked Evaluate() function which you added in reply. Actually I have the above mentioned data in column StageData. the column StageDate have values more than 90,000 rows. how can I use Evaluate () function in column StageData. Please let me know.

MK_QSL
MVP
MVP

Use below in your script...

Evaluate(YourFieldName) as YourNewFieldName

robert_mika
Master III
Master III

Perhaps:

Evaluate(StageDate) as Stagedata

Not applicable
Author

sorry I should have mention earlier reply. I have used Evaluate on column name as below earlier.

Evaluate(StageDate) as Stagedata

when I used this and reload showing execution of script failed.

PrashantSangle

Hi,

I dont think so your script is failing because of Evaluate()

First Debug your script and also generate Document log where you find reason for script failure.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

I checked the log file . showing below messages

General Script Error

Execution failed

MK_QSL
MVP
MVP

Share you QVW please!

Not applicable
Author

Please see attached.