Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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 date | What I wont have |
1 | pre-contract | 2020-01-01 | No |
1 | Rental agreement | 2020-02-01 | Yes |
2 | pre-contract | 2020-03-01 | Yes |
Solved! Go to Solution.
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,
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,
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
14 | |
10 | |
10 | |
10 | |
9 |
User | Count |
---|---|
20 | |
13 | |
12 | |
11 | |
8 |