Skip to main content

hello everyone,

 

Need help with the query below, I want to compute the fields that are empty and score that record based on the number of empty fields in the object. 

 

"q = load "Account_hygiene";

q = group q by rollup('Name','Website','ZI_Website__c');

q = foreach q generate 

    (case

        when grouping('Website') == null then "1"

        else "0"

    end) as 'Website',

    (case

        when grouping('ZI_Website__c') == null then "1"

        else "0"

    end) as 'ZI_Website__c',

     sum('Amount') as 'sum_Amount';" 

 

Error Message: Undefined identifier: "Amount". Make sure the "Amount" identifier exists and is spelled correctly without spaces

 

2 answers
0/9000