Forum Discussion

learner03's avatar
learner03
Icon for Post Partisan rankPost Partisan
2 years ago
Solved

MAX date based on another column

I have a column with values A & B and a date column which show when the data was updated for A & B. I need to make a new calculated column, which shows when A was last updated and when B was last up...
  • Anonymous's avatar
    Anonymous
    2 years ago

    Hi learner03 ,

    It could be a DAX measure that is causing the circular dependency.
    I tried to create data to reproduce your problem, here are my test steps:
    Test data

    Apply your calculate column

    Here's my modification of this dax to achieve your goal

    LastUpdateDate = 
    CALCULATE(
        MAX('Table'[Date update]),
        FILTER(
            'Table',
            'Table'[A&B] = EARLIER('Table'[A&B])
            && NOT(ISBLANK('Table'[Date update]))
        )
    )

    Final output

    You can refer to this link for more information on cyclic dependencies
    Avoiding circular dependency errors in DAX - SQLBI

     

    Best regards,

    Albert He

     

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly