Hey everyone,
I would like to start off with a thank you to everyone because I've been trolling these boards for awhile and they are of great help.
Let me set up what I am doing for you...
I am trying to return specific results from a list of tickets(taken from a SharePoint List) by Last Week(past seven days), this month(xxx/01/xxxx) and Year to date(Jan/01/xxxx).
I have had success with the "Last Week". I created a field(LastWeekReference) and entered this function "addDays(today(), -6)"
Then to return the number of tickets titled "SPOC Tickets" since last week. I used "count(@Origin[(@Origin = "SPOC Ticket") and (msxsl:string-compare(@DateCreated, LastWeekReference) > 0)])" and it works great.
What would the format for This Month's reference column be? I do not want to say "addDays(today(),-30)" because eventually the count will be off.
Is there something like the excel function "&DATE(YEAR(TODAY()),MONTH(TODAY()),1)"? <--- (in excel this returns the xxx/01/xxxx for whatever month you access it in.)
Thanks!
-M