Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
3 years ago
Solved

Unique contract

Hi All, I don't know if I put this in the right forum now, but I hope you can help me.

 

I have a variable "Contract type" were I have all the contracts that a person can sign, four different ones. I only want to extract the latest of the two most recent "pre-contract" or "Rental agreement" for each unique person (CostumerId)

 

Costumer id Contract typ Contract dateWhat I wont have
1pre-contract2020-01-01No
1Rental agreement2020-02-01Yes
2pre-contract2020-03-01Yes
    

 

 

  • Hello Anonymous ,

    I'm sure there exist more optimize way to do that but a quick calculated column such as the following screen can do the trick.


    To do so I copy paste your data source, kept your column What I want have as reference and built a new calculated column called Dax_column

    Best regards,




1 Reply

  • Hello Anonymous ,

    I'm sure there exist more optimize way to do that but a quick calculated column such as the following screen can do the trick.


    To do so I copy paste your data source, kept your column What I want have as reference and built a new calculated column called Dax_column

    Best regards,