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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
pnvenkat
Contributor III
Contributor III

Loading Script converts data that was True/False to 1/0

Hi,

I'm loading data into the Qlik Sense app from BigQuery using the following script:

[tests]:

SELECT ID, passed

FROM `db.table`;

 

In the original data, passed can be either True or False. After being loaded into the application, it shows up as 1 or 0. How do I change it back to True or False?

                

Labels (2)
3 Replies
dplr-rn
Partner - Master III
Partner - Master III

1 and 0 is qliks boolean type.
You can try Text(passed)
pnvenkat
Contributor III
Contributor III
Author

Hi,
I used the following, and it didn't work:

[tests]:

SELECT ID, Text(passed)

FROM `db.table`;
Seyko
Partner - Creator
Partner - Creator

Hello,

Try this following script:

[tests]:
LOAD
ID,
IF(passed=1,'True','False') AS passed;
SELECT
ID,
passed
FROM `db.table`;

 

Cordialy.

Excuse my english, i'm french!