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

Announcements
Note: You may notice some temporary visual or styling issues in the Community. Our vendor is actively investigating.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Null value

Hi,

I have a requirement, where i need to display the top users in a straight table. but issue here is some of the usename's are null and has userid's and in such case instead of username i have to display the user id in the table than showing null username.

Thanks in advance.

2 Replies
MK_QSL
MVP
MVP

In your script .. .use below instead of username

IF(Len(Trim(username))=0,'No Name' & [user id], usename) as username,

Now you can show it by username

its_anandrjs
Champion III
Champion III

If you dont want to show null values then use below script

if( Len(trim(username)) > 0 , userid )