Report builder how to filter current month - reportbuilder3.0

In report builder how to filter a date field to get the current month?
I'm looking for something equivalent to the Today() function ( that gets you just today values.
Thanks a Lot for your help.

Related

Dynamic Date Selection Tableau

Here is a sample data that I am working with. I want to make it more dynamic. Meaning, if a user selects a date, I need to display the 7 day, 14 day change based on the selected date. I have created a parameter with the date filter and also created a formula for 7 day change like this : LOOKUP(SUM([Sample]),-7) and LOOKUP(SUM([Sample]),-14)
I tried using these formulas, but it wont work when I filter to a particular date. Any help is appreciated.
Date Sample
7/1/22 491,556
7/2/22 74,027
7/3/22 65,938
7/4/22 74,099
7/5/22 636,580
7/6/22 508,986
7/7/22 630,481
7/8/22 495,756
7/9/22 71,503
7/10/22 64,875
7/11/22 73,174
7/12/22 642,674
7/13/22 517,709
7/14/22 638,848
7/15/22 490,698
7/16/22 68,802

group by custom date

I want to "group by" my results by year and month using a field that has a format of
YYYY-MM-DD. I want to group them by month, so with a format of YYYY-MM . I tried with a Terms aggregation to group them but with no avail, so now I went and looked at the DateHistogram aggregation and tried the following but it still doesn't work.
$date_grp_agg = new \Elastica\Aggregation\DateHistogram('achats_date');
$date_grp_agg->setField('achats_date')->setFormat("MM-yyy")->setInterval('1');
Does any of you know how to correctly group my results using a formated date field?
The answer was simple
$date_grp_agg = new \Elastica\Aggregation\DateHistogram('achats_date');
$date_grp_agg->setField('achats_date')->setFormat("MM-yy")->setInterval('1M');
To group them by month, you'd need to set an interval of 1 month, that way the results would be filtered for each month.
Source : https://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html

RethinkDB: Can I group by day / week / month?

My table has a timestamp field, which is a standard RethinkDB date field.
Can I group rows by day / week / month using this timestamp field? Couldn't find any examples in the group() docs.
To group by month, day, or day of week individually:
r.table(...).group(r.row('timestamp').month())
r.table(...).group(r.row('timestamp').day())
r.table(...).group(r.row('timestamp').dayOfWeek())
Grouping by the week isn't as easy at the moment, because ReQL is currently missing a function to get the week number from a data (see https://github.com/rethinkdb/rethinkdb/issues/2055 ). You can probably work around that by using some custom JavaScript code through r.js(). Please let me know if this is important for you, so I can look into it.
If you want to group by combinations of multiple things, e.g. day and month:
r.table(...).group([r.row('timestamp').month(), r.row('timestamp').day()])

Report Builder Month Function

In report builder how to filter a date field to get the current month? I'm looking for something equivalent to the Today() function (that gets you just today values).
Actually when I use =field.date.value(Today()), I get today date returned. I would like something like that for the current month instead of the current date.
Try this ,where i am getting the month value from the date of birth field.
=Cstr(Month(Fields!DOB.Value))

Get Month, Year or Day from a Date and Time Field in Jira for a Filter Query

I'm trying to make a filter in Jira like this:
issueType = MyIssueType ORDER BY YearOfDate(dueDateAndTime), MonthOfDate(duDateAndTime), DayOfDate(duDateAndTime), priority, dueDateAndTime
This would order all the tasks by the day of year, then priority, then by the actual time of day of the due date.
dueDateAndTime is a "custom field" of type "date and time" where you can pick the day and the exact hour of day.
Is there a way to extract the day, year or month from that kind of field?
JQL doesn't provide a possibility to extract specific parts from a datetime.
Does issuetype = MyIssueType ORDER BY dueDateAndTime ASC not work?
It would be possible in SQL, There is a plugin for that:
https://marketplace.atlassian.com/plugins/com.kintosot.jira.jdbc4jql/server/overview
You would use regular SQL syntax:
SELECT * FROM ISSUES GROUP BY YEAR(dueDateAndTime), MONTH(dueDateAndTime), DAY(dueDateAndTime);
Hope it helps.

Resources