Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

AGGREGATE ERROR IN SCRIPT

CLAIMS_REPORT_DEC:

LOAD

  AutoNumber(AS_OF & '|' & CLAIM_NO) AS Claims_All_Link,

   Count (DISTINCT CLAIM_NO) as Count_Claims

  

FROM

$(V_Layer1_QVD)\CLAIMS_REPORT.qvd

(qvd)

where Month(Date#( AS_OF,'YYYYMM')) = 'Dec'

Group by  AS_OF  ;

Attached is the error  I am getting. What am I doing wrong here?

Labels (1)
3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

You will have to add CLAIM_NO to the group by clause as well.


talk is cheap, supply exceeds demand
sunny_talwar
MVP
MVP

May be this:

CLAIMS_REPORT_DEC:

LOAD

  AutoNumber(AS_OF & '|' & CLAIM_NO) AS Claims_All_Link,

   Count (DISTINCT CLAIM_NO) as Count_Claims

FROM

$(V_Layer1_QVD)\CLAIMS_REPORT.qvd

(qvd)

where Month(Date#( AS_OF,'YYYYMM')) = 'Dec'

Group By  AS_OF & '|'  & CLAIM_NO;

dinuwanbr
Creator III
Creator III

Hi,

Can you upload sample data sheet.

Rgds,

Dinu'1