Forum Discussion

LeeI's avatar
LeeI
Frequent Visitor
2 years ago
Solved

Creating A Calculated Field or Dax Measure for Hire date

I am struggling to come up with a way to Calculate a hire date with data from a table that I have been giving. Ultimately, I would like to be able to show the number of hires in a particular moment o...
  • Joe_Barry's avatar
    Joe_Barry
    2 years ago

    No worries

    Lets try a different approach.

    Create a custom column in your table

    HireDate = 
    VAR _FirstRecord = 
    CALCULATE (
        MIN ( 'Table'[Column1]),
        FILTER (
            'Table',
            'Table'[Name] = EARLIER ( 'Table'[Name] )
        )
    )
    
    RETURN
    EOMONTH(_FirstRecord, -2) +1