Forum Discussion
vijay22kar
Helper II
6 years agoGet projectwise first date and last date from date table
Hi All,
Sorry, for the inconvenience I'm asking the very basic question.
I want First date and last date from the two different columns
I'm trying below measures but it's not work
first date = FIRSTDATE(project baselines'[ProjectBaselineStartDate])
and
FirstDate1 = CALCULATE(FIRSTDATE('ProjectBaselines'[ProjectBaselineStartDate]), ALLSELECTED(AssignmentBaselines[AssignmentBaselineStartDate]))
dataset
| Project name | ProjectBaselineStartDate | ProjectBaselineEndDate | ProjectStartDate | ProjectendDate |
| HRMS | 2019-07-22 | 2019-11-16 | 2020-08-01 | 2020-05-25 |
| HRMS | 2019-07-22 | 2019-09-17 | 2020-08-01 | 2020-05-15 |
Expected result (unique project name)
| HRMS | 2019-07-22 | 2019-09-17 | 2020-08-01 | 2020-05-25 |
Thank You.
2 Replies
- camargos88
Community Champion
Hi vijay22kar ,
You can just change the aggregation mode to first or last on date columns.
Did I answer your question? Mark my post as a solution!
Ricardo - v-lili6-msft
Community Support
hi vijay22kar
Create four measure as below:
first date for ProjectBaselineStartDate = CALCULATE(FIRSTDATE(ProjectBaselines[ProjectBaselineStartDate])) first for ProjectBaselineEndDate = CALCULATE(FIRSTDATE(ProjectBaselines[ProjectBaselineEndDate])) Last date for ProjectendDate = CALCULATE(LASTDATE(ProjectBaselines[ProjectendDate])) Last date for ProjectStartDate = CALCULATE(LASTDATE(ProjectBaselines[ProjectStartDate]))Then drag Project name field and these four measure into a table visual
Regards,
Lin