Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
soniasweety
Master
Master

Show value

Hi all,

in my strighttable  i have  ID as column  but it showing blank  instead of that i want to show the  unknown there

how to do?

null.PNG

1 Solution

Accepted Solutions
sibin_jacob
Creator III
Creator III

Try This one

If(len(Trim(ID))=0,'UNKNOWN',ID)

If it is not working, try the below.

If(isnull(ID) or len(TRIM(ID))=0,'UNKNOWN',ID)

View solution in original post

5 Replies
sibin_jacob
Creator III
Creator III

Try This one

If(len(Trim(ID))=0,'UNKNOWN',ID)

If it is not working, try the below.

If(isnull(ID) or len(TRIM(ID))=0,'UNKNOWN',ID)

soniasweety
Master
Master
Author

i dont want to do in calucalted dimension how can i do into front end only?

MK9885
Master II
Master II

Maybe

If(Len(Trim(ID)) = 0, 'Unknown',ID)

same answer as Sibin gave

vishsaggi
Champion III
Champion III

You can use what Jacob suggested in your straight table Dim ID. Just click edit for your ID field then type like

Calculated dimension

= If(isnull(ID) or len(TRIM(ID))=0,'UNKNOWN',ID)


OR


= Aggr(If(isnull(ID) or len(TRIM(ID))=0,'UNKNOWN',ID), ID)

sibin_jacob
Creator III
Creator III

Sorry, I didn't get you. what you mean by front end?

Can you please explain little more on your requirement ?

The above formula will work in a script as well as calculated dimension.