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

Announcements
FLASH SALE: Save $500! Use code FLASH2026 at checkout until Feb 14th at 11:59PM ET. Register Now!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Invalid Expression

Hi all,

Could someone explain why this expression isn't valid in the script.

if(max(UNIT.SOLD_DATE) > AddMonths(today(),-3), 'Active') as BUYER_BUYING_STATUS,

I'm trying to group buyers that have bought within the last 3 months if they have mark them as 'Active'.

Thanks

Gareth

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

Aggregations in the script like Max(UNIT.SOLD_DATE) need a GROUP BY clause.

View solution in original post

2 Replies
swuehl
Champion III
Champion III

Aggregations in the script like Max(UNIT.SOLD_DATE) need a GROUP BY clause.

sasiparupudi1
Master III
Master III

Please provide script with sample data so that we can help you