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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
raadwiptec
Creator II
Creator II

Split issue

Hi have the following data below..

       
Reference Account No TypeACTPLIf(ACT<PL,'Yes','No)
24356 11709992ACT3545.440?
24356 11709992PL08745.44 
24359 11709992ACT4486.990 
24359 11709992PL01220.88 
24345 11709992PL05567.87 
24345 11709992ACT9874.550 
       
       
       
Reference Account No ACTPLIf(ACT<PL,'Yes','No) 
24356 117099923545.448745.44? 
24359 117099924486.991220.88  
24345 117099929874.555567.87  
       
 When Iam trying to make If(ACT<PL,'Yes','No)it does not consider 3545 < 8745  rather it takes 3545.44 < 0.   
Labels (1)
1 Reply
dplr-rn
Partner - Master III
Partner - Master III

you need to combine act and pl rows into a single row

try with script like this.

 

tempmaintable:
load Reference,AccountNo,ACT	
from yoursource
where Type='ACT'
;
outer join (tempmaintable)
load Reference,AccountNo,PL
from yoursource
where Type='PL'
;


maintable:
load *
, If(ACT<PL,'Yes','No) as PlGreaterFlag
resident 
tempmaintable;

drop table tempmaintable;