function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Bob AllenBob Allen 

Performing Count on SAQL CoGroup and received error: Type check pattern of function count is expected to have one of: ' but received: .

Lead = load "Lead_Opportunities";
Lead = filter Lead by 'StageName' == "Closed Won";
VMS = load "StarOpportunities";
VMS = filter VMS by 'StageName' == "07b_Closed Won";
Result = group Lead by 'all' full, VMS by 'all';
Result = foreach Result generate count(Lead.'Id') + count(VMS.'Id') as 'Closed / Won';