Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to reference the current month in my expression, so that I can sum sales that are current month -1,-2 etc
Can this be done?
Sure,
like
sum({<DisburseDate={">=$(=monthstart(today(),-2))<$(=monthstart(today(),-1))"},Status = {'Active'}, Main = {1}, AgreementAgeDays = {">=45"} >} SaleAmout)
Stefan
Hi,
you can get the current month with the expression: month(today())
Hope this help
Regards!
Yes, should be possible.
you are talking about Sales month to date, previous month to date?
This can be done with set analysis, please have a look into
http://iqlik.wordpress.com/2010/11/27/the-magic-of-set-analysis-point-in-time-reporting/
Or also Set Analysis in the Help file.
Stefan
I have tried this but it doesnt work?
sum ({$<SalesDate = {$(=month(today()),-2))
I have tried this but it doesnt work?
sum
({$<SalesDate = {$(=month(today()),-2))
Is SalesDate a month number or a date? SalesDate cannot = Month# if its a date...
sorry missed some of the expression
sum ({$<DisburseDate = {$(=month(today()),-2)
},
= {Active}, Main = {1}, AgreementAgeDays = {'>=45'}>}Sales)
try Sum({$<SalesDate={'$(=something that returns a date in the same format as SalesDate)'}>} Field)
yes its a date
Hi,
your sum misses the expression to sum, and the limitiation of dates might need a change:
like this?
sum({<SalesDate={">=$(=monthstart(today()))"} >} Sales)