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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
alec1982
Specialist II
Specialist II

Sum Sales for previous 12 months

Hi guys,

Anybody can help me on why this is not working. I am trying to get the sales for the last 12 months.

Num(sum({$<[Date]={'>=$(=AddMonths(Today(),-12)'}>}[Sales]),'#,##0')

Thxs,

Alec

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It's missing a ')' to close the AddMonths function:

Num(sum({$<[Date]={'>=$(=AddMonths(Today(),-12))'}>}[Sales]),'#,##0')


talk is cheap, supply exceeds demand

View solution in original post

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

It's missing a ')' to close the AddMonths function:

Num(sum({$<[Date]={'>=$(=AddMonths(Today(),-12))'}>}[Sales]),'#,##0')


talk is cheap, supply exceeds demand
alec1982
Specialist II
Specialist II
Author

Thxs sir!