Forum Discussion
Report on two different date (Open date and closed date)
Hi
I have a dataset with projects and I would like report answering questions like:
for projects open in January, in which months did they close?
| ProjectID | Open Date | Close date |
| aaa | 01/01/2020 | 01/03/2020 |
| aab | 02/02/2020 | 01/03/2020 |
| aac | 02/01/2020 | 02/03/2020 |
Not sure if clear enough. It would be an aggregate, filtering by the projects open in January, the amount of those projects that closed in February, March, April, etc.
Thanks,
5 Replies
- amitchandak
Super User
Anonymous , I have blog on how to work with such two dates
- AnonymousNot applicable
Thanks, I saw that one. I forgot to mention that I have them linked to a date table, and I have two measures: one to count the projects open and one to count the project closed. The thing is that I don't know how to show on the same chart the projects open with the count of the closed date. But it has to count the closed projects based on the open project date if it makes sense...
- amitchandak
Super User
Anonymous , Try like
Closed project by open date = CALCULATE(COUNT(project[project Id ]), not(isblank(project[close date])) ,USERELATIONSHIP(project[Start Date],'Date'[Date]))