Forum Discussion

Bfaws's avatar
Bfaws
Icon for Helper III rankHelper III
4 years ago
Solved

Creating a measure that looks at two date columns

Hello,    I hope someone can help.   I have a list of employees who have allowances.  It essenstially shows the start date and the end date.  If the end date if open ended it shows as 31/12/2099....
  • DataInsights's avatar
    DataInsights
    4 years ago

    Bfaws,

     

    The latest date in your calendar table is 19-May-2020. The visual uses Year from the date hierarchy of Date. It's best practice to mark your calendar table as a date table (see link below). This will remove the automatic date hierarchy for each date field. You can create a calculated column for Year using the YEAR function.

     

     

    https://www.sqlbi.com/articles/creating-a-simple-date-table-in-dax/