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

Give some idea to implement this logic in Qliksense

TableName: 
AB
NA2
2NA
34
NANA
4321
53
Logic: 
if(or(A="NA",B="NA"),"NA",Sum(A)-sum(B))
  
2 Replies
mato32188
Specialist
Specialist

Hi, 

if you want to create a new field (let's say "C") then in script editor:

Load

A,

B,

if(A='NA' OR B='NA', 'NA', A-B) as C

From YOUR FOLDER;

Then create simple sum(C) in your UI. 

 

ECG line chart is the most important visualization in your life.
kaviyarasan
Contributor
Contributor
Author

Hi, I already tried it. But its return "-" instead of "NA".Give some other options . Thanks