Forum Discussion

comish4lif2's avatar
comish4lif2
Advocate II
3 years ago
Solved

Date Hierarchy Not Available for Calculated Column

I have 2 columns in my data. CompletedVisitDate and ScheduledVisitDate. These both meet the status of Completed or Scheduled. To account for them together, I created a new column: 

MaxActionDate = MAX (DISPOSITION[DateOfService] , DISPOSITION[ScheduledVisitDate] )

The new column populates correctly and fully. The column has a data type of Date and permits the format of mmmm-yyyy.  Each row will have at least 1 date filled. The DateofService dates range from 3/29/2022 to 9/2/2022. And the ScheduledVisitDate ranges from 3/29/2022 to 11/1/2022.

But if I drop the new column onto a table, I do not get the Date Hierarchy options (Year, Quarter, Month, Day). I only get the date option. I want to aggregate these by Month and Year in a Line Chart.

I have a 1-to-Many relationship from Date in the Date Table to the MaxActionDate (calculated column) in my data.

 

Both DateofService and ScheduledVisitDate are formatted as date fields and behave like date fields. You can choose to display the date or the date hierarchy in a table visual.


So, why can I not use the calculated MaxActionDate like a hierarchical date column in a chart visual?

4 Replies