How to apply filter on creation date while creating report in rational insight
We have created WI query (All defects closed Today, All defects raised Today) and based on that we want to create report in rational insight with same query result and want to daily send mail to project manager.
We have created report by using report studio however stuck where we have to apply filter on creation date.
Please suggest us how do we can proceed with this.
Thanks and regards,
We have created report by using report studio however stuck where we have to apply filter on creation date.
Please suggest us how do we can proceed with this.
Thanks and regards,
Accepted answer
Hello Suyash,
to filter the query on the current date you can do the following:
to filter the query on the current date you can do the following:
- In report studio open the query that populates your report
- From the Toolbox drag and drop a Filter item to the Detail Filters section
- Use this expression for the filter: cast ([Creation Date], date) = current_date
Basically you transform the Creation Date from Timestamp to date format (using cast) and compare it with current_date that returns the date of Today.
Here a screenshot for reference:
Best Regards,
Francesco Chiossi
Comments
1 vote
1 vote
One other answer
Hello Brandy,
I'm glad you found it useful.
Yes, my was just a conceptual example, if you want to list both open and closed work items on the same query you would need an or condition.
Concerning my example:
I'm glad you found it useful.
Yes, my was just a conceptual example, if you want to list both open and closed work items on the same query you would need an or condition.
Concerning my example:
- [Creation Date] = [Business View].[Request].[Creation Date]
-
[Creation Date only] = cast ([Creation Date], date)
- [Today] = current_date
I found it useful to build my filters from pieces I create in separate data items, so I can see the values of the expressions that I want to compare, for debugging purpose. Of course [Creation Date only] and [Today] can be safely removed from the production report.
Best Regards,
Francesco Chiossi