Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
RMotta2408
Creator II
Creator II

tMap - replacing a null for a value

Hi everyone,

I'm trying to replace a NULL value for a different value on tMap, using the expression builder.

Something like this:

If row1.number is null then the number column on the output should be 1. Otherwise, the output number should be the same as the row1.number value.

Can anyone please help me?

Thanks in advance

Rui

Labels (3)
1 Solution

Accepted Solutions
anselmopeixoto
Partner - Creator III
Partner - Creator III

Hello @Rui Motta​ 

 

Try using the following expression on the output column:

 

row1.number == null? 1 : row1.number

View solution in original post

3 Replies
anselmopeixoto
Partner - Creator III
Partner - Creator III

Hello @Rui Motta​ 

 

Try using the following expression on the output column:

 

row1.number == null? 1 : row1.number

RMotta2408
Creator II
Creator II
Author

Hi @Anselmo Peixoto​ 

 

Yessir! That's it!

 

Thank you so much. I appreciate it.

 

Judging from you name, I better say muito obrigado. Serviu na perfeição. Abraço

anselmopeixoto
Partner - Creator III
Partner - Creator III

I'm glad it worked.

 

Abraços,

Anselmo