Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
qolkaram
Contributor III
Contributor III

syntax FOR SUBSET

Hi All

Can any one help me to fix syntax for below selection :

SELECT SUM ( OUTAGE_DURATION_MINUTE) 

WHERE  CAT={'Technical','NoneTech'}  AND  MAIN_CAUSE <> 'CR' 

here is my exercise but it is not working :

Sum({<CAT={'Technical','NoneTech'} , not match(MAIN_CAUSE, 'CR')  >}OUTAGE_DURATION_MINUTE)

thanks

Nassim

1 Solution

Accepted Solutions
Anil_Babu_Samineni

This should work, May be this

Sum({<CAT={'Technical','NoneTech'} , MAIN_CAUSE =- {'CR'}  >} OUTAGE_DURATION_MINUTE)

Or

Sum({<CAT={'Technical','NoneTech'} , MAIN_CAUSE = {'*'}-{'CR'}  >} OUTAGE_DURATION_MINUTE)



If not, Please post sample application

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful

View solution in original post

9 Replies
Anil_Babu_Samineni

May be this?

Sum({<CAT={'Technical','NoneTech'} , MAIN_CAUSE -= {'CR'}  >} OUTAGE_DURATION_MINUTE)

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qolkaram
Contributor III
Contributor III
Author

thanks for your reply but still there is an error

Anil_Babu_Samineni

Can you show image

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
qolkaram
Contributor III
Contributor III
Author

Capture.JPG

Anil_Babu_Samineni

This should work, May be this

Sum({<CAT={'Technical','NoneTech'} , MAIN_CAUSE =- {'CR'}  >} OUTAGE_DURATION_MINUTE)

Or

Sum({<CAT={'Technical','NoneTech'} , MAIN_CAUSE = {'*'}-{'CR'}  >} OUTAGE_DURATION_MINUTE)



If not, Please post sample application

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresesco
MVP
MVP

This is not an error but a warning. Ignore it. This improper warning with '-' (negation) sign in set analysis is known. It works fine with that warning.

qolkaram
Contributor III
Contributor III
Author

thanks ,it is working

Anil_Babu_Samineni

I am assuming, could be Version issue. Please correct me if i am wrong. I am working on QV 12

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
tresesco
MVP
MVP

Yes, perhaps this has just got corrected in QV12 and onward.