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: 
Not applicable

Null Value Issue

Hi All,

I have below two tables brought in Qlik Sense. Then,  I am trying to put all three columns in a simple table Chart.  .

Employee IDName
1ABC
2CD
3EF
4GH
5IJ
6KL
7

MN

Employee IDSalary
1100
2200
3300
4400

Qlik Sense Table :

  

Employee IDNameSalary
1ABC100
2CD200
3EF300
4GH400
5IJ
6KL
7MN

If the salary is null in the above table chart, i want to display as "NULL". I tried to put the expression If(IsNull(Salary),'NULL',Salary).

But this expression is not working and not giving me the expected result.

Can you please help me to fix this issue?

Thanks

NV.

1 Solution

Accepted Solutions
lironbaram
Partner - Master III
Partner - Master III

hi

if you want the Salary field as dimension in the table you can use this

aggr(if(count(Salary)=0,'NULL',Salary),EmployeeID)

but i suggest to use it as a measure for better performance

so you can use this expression

if(count(Salary)=0,'NULL',sum(Salary))

View solution in original post

4 Replies
lironbaram
Partner - Master III
Partner - Master III

hi

if you want the Salary field as dimension in the table you can use this

aggr(if(count(Salary)=0,'NULL',Salary),EmployeeID)

but i suggest to use it as a measure for better performance

so you can use this expression

if(count(Salary)=0,'NULL',sum(Salary))

shraddha_g
Partner - Master III
Partner - Master III

try

If(len(Salary)=0,'NULL',Salary)

Not applicable
Author

Hi Nirmal,

You can try this :

=Pick((Sum(Salary)=0)+2,'Null',Sum(Salary))

Not applicable
Author

Thanks All. Its working now.