Qlik Community

QlikView Scripting

Discussion Board for collaboration on QlikView Scripting.

simondachstr
Valued Contributor III

How to convert digital data information into a string upon loading

Hey,

I have a data set which solely consists of 0 and 1. On loading, I want those numbers to be converted into string information: 0 = High and 1 = Low
It should go into the following direction:

LOAD

     DATA

     if ( DATA = 0, "High", DATA) OR if( DATA= 1, "Low", DATA) as NewDATA

I would appreciate your help.

Martin

1 Solution

Accepted Solutions
MVP
MVP

How to convert digital data information into a string upon loading

Hi

use the following:

If(DATA = 0, 'High', 'Low') As NewDATA

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
1 Reply
MVP
MVP

How to convert digital data information into a string upon loading

Hi

use the following:

If(DATA = 0, 'High', 'Low') As NewDATA

Regards

Jonathan

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Community Browser