Qlik Community

New to QlikView

Discussion board where members can get started with QlikView.

Announcements
Modernize Your QlikView Deployment webinar, Nov. 3rd. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Specialist
Specialist

SCRIPT ERROR

Dear Kush

Your script structure was applied & it is almost there but following script error coming while data is loaded. Please see what may causes this error?

Thanks for the reply

Invalid expression
LEFT JOIN (MAIN)

LOAD
BR_CODE,ME_CODE,

SUM(AMOUNT)/Age_in_month AS AVG_COMM

RESIDENT MAIN

GROUP BY ME_CODE,BR_CODE

1 Solution

Accepted Solutions
Highlighted
MVP
MVP

did you try below

LEFT JOIN (MAIN)

LOAD
BR_CODE,ME_CODE,

SUM(AMOUNT)/max(Age_in_month) AS AVG_COMM

RESIDENT MAIN

GROUP BY ME_CODE,BR_CODE

View solution in original post

4 Replies
Highlighted
MVP
MVP

did you try below

LEFT JOIN (MAIN)

LOAD
BR_CODE,ME_CODE,

SUM(AMOUNT)/max(Age_in_month) AS AVG_COMM

RESIDENT MAIN

GROUP BY ME_CODE,BR_CODE

View solution in original post

Highlighted
Specialist
Specialist

Yes but same error comes in!

Highlighted
Specialist
Specialist

This is right now. Small error from my end. If possible please let me know why Max is brought in front of the new field created.Once it is there only it is run with no errors.

Thank you very much

Highlighted
Specialist
Specialist

We created a new field for Age in Months with today function. If we specify a specific date like 07/31/2020, how the string to be amended. 

Thanks