Skip to main content
Announcements
July 15, NEW Customer Portal: Initial launch will improve how you submit Support Cases. IMPORTANT DETAILS
cancel
Showing results for 
Search instead for 
Did you mean: 
Syed17
Contributor II
Contributor II

Convert Sql query into Qliksense

Please help me to solve this query into qliksense script 

Where

(
 ( Nvl(pts7.actual_amount,0)>0 and nvl(PIs7.ACTUAL_AMOUNT,0)>0)
) and NVL(pis7.TRANSFERRED_TO_AP_FLAG,'N')='Y';

Labels (5)
2 Replies
igoralcantara
Partner - Specialist
Partner - Specialist

Try this:

 

WHERE 

(

    If(IsNull(pts7.actual_amount), 0, pts7.actual_amount) > 0
    and If(IsNull(PIs7.ACTUAL_AMOUNT), 0, PIs7.ACTUAL_AMOUNT) > 0

)
and If(IsNull(pis7.TRANSFERRED_TO_AP_FLAG), 'N', pis7.TRANSFERRED_TO_AP_FLAG) = 'Y'

;

Check out my latest posts at datavoyagers.net
qv_testing
Specialist II
Specialist II

Try this 

create one flag as newfield
IF(LEN(TRIM(pis7.TRANSFERRED_TO_AP_FLAG))=0,'N', 'Y') as Flag

 

and remaining should be in where condition to filter

LEN(TRIM(pts7.actual_amount))>0 and LEN(TRIM(PIs7.ACTUAL_AMOUNT))>0)