Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I have a bar chart, and I want to limit it to a 4-month sliding window, current month and three previous months. I have assembled the following set expression via suggestions on here, but it does not filter at all.
Count ({1<date = {">=$(=MonthStart(AddMonths(Today()-3)))<=$(=MonthEnd(Today()))"}>} ticket_type)
My data essentially looks like this:
ID | Month-Year | date | ticket_type |
---|---|---|---|
I am trying to accomplish something similar to this:
I have finally gotten this to work.
I used
Count({<[Month-Year] = {">=$(v3MonthsAgo)"}>}JOB_ID)
where
v3MonthsAgo
is defined as
LET v3MonthsAgo = MonthStart(AddMonths(Today(),-3));
maybe a missing comma in the AddMonths function
Count ({1<date = {">=$(=MonthStart(AddMonths(Today(),-3)))<=$(=MonthEnd(Today()))"}>} ticket_type)
Well, not that ... lol now it is completely blank. so I apparently have done something wrong
I have finally gotten this to work.
I used
Count({<[Month-Year] = {">=$(v3MonthsAgo)"}>}JOB_ID)
where
v3MonthsAgo
is defined as
LET v3MonthsAgo = MonthStart(AddMonths(Today(),-3));