Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
neerajthakur
Creator III
Creator III

Error in count function

Hi, I am using below query and getting error of Invalid Expressions:

Load

count(distinct ID) as [Total ID],
count(if(sample_type='A','1')) as [Total A],
count(if(sample_type='B','1')) as [Total B],
count(if(sample_type='C','1')) as [Total C],

field1,

field2

Resident temp_table;

Thanks & Regards,
Please Accepts as Solution if it solves your query.
0 Replies