Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Changing the format

Hi All,

  I have a column name by installed under which values are 0 and 1 , So when iam fetching the data in qlickview  i want to represent in table a  Yes for 1 and No for 0 , how can i make this into Edit Script , Becuase in dashboard i have to present the value as a straight table ,  under the column installed where it should show instead of 0 ans 1  as Yes and no ,

Thanks In Advance

5 Replies
alexandros17
Partner - Champion III
Partner - Champion III

When you load data:

LOAD

...

if(myField='1', 'YES', 'NO') as myField

....

Let me know

its_anandrjs

Try like

Load


installed,   //i assume it is field with values 1 and 0.


If(installed = 1,'Yes','No' ) as Detail_installed


From Location;



Ex:-

Load  installed, If(installed = 1,'Yes','No' ) as Detail_installed;

Load * inline

[

installed

1

1

1

0

1

0

];

Anonymous
Not applicable
Author

Hi,

Try below,

If(installed=1, 'Yes', If(installed=0, 'No', 'NA')) as installed

sasikanth
Master
Master

hi

Try like below

LOAD
if(column='1','YES',column='0','NO') as column,

.

.

.

From ....................table

jonathandienst
Partner - Champion III
Partner - Champion III

Hi

If you create dual values for Yes/1 and No/0, then you can store a countable value (1 or 0) and a Yes/No format in the same field. So something like this based on a field [column]:

     LOAD

          If([column], Dual('Yes', 1), Dual('No', 0)) As [column],

Now you can Sum(column) to get a count or use Only(column) or dimension to display Yes/No.

HTH

Jonathan

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