Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi!
I have an app where i want to show the number of Tickets for the current week no matter what other date filters that are used in the app.
E.g. the date filter could be set for the previous 3 months and the result is presented in a graph but I also want to present the value for the current week
**Note : filterToAvoid = use fieldName which you want to avoid, fieldToAvoid is not keyword.
And that solution is according to dates not according to week or month.
So it could be like,
=Count({<filterToAvoid=,yourDateFields={">=$(=weekStart(today()))<=$(=weekEnd(today()))"}>} wor_ticket_ID)
**yourDateFields = from which you are getting month /week.
Also if you want to show current week only then you don't need any filter value just go with today(), it will give you current week.
I tried this:
=Count({<filterToAvoid=,Period={">=$(=weekStart(today()))<=$(=weekEnd(today()))"}>} wor_ticket_ID)
It does not override the 'Period' filter (e.g selecting week '2019-6' with 'Period' filter shows the result for that week , not the current week).
I also tried your suggestion "don't need any filter value just go with today()" but I get no result. Is the syntax correct?
=Count(Year(Today()) &'-'& Week(Today()) wor_ticket_ID)
I was asking for this date wor_event_start_date, try this now
=Count({<Period=,wor_event_start_date={">=$(=weekStart(today()))<=$(=weekEnd(today()))"}>} wor_ticket_ID)