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 there,
I am struggling to find an efficient DAX formula to give me a column which contains the latest date from 2 date columns.
For example, the below table is my data source and the 2 columns I would like to use are "Lease End Date" & "Lease Secondary End Date":
I would like to add the below column highlighted as desired result in Power BI?
Please help me solve, I've been trying for the last 2 hours with no easy solution found yet.
Thank you,
Edward
Solved! Go to Solution.
Max([Lease End Date],[Lease Secoundary End Date])
Max([Lease End Date],[Lease Secoundary End Date])
Thank you.
For the rows which has a blank "Lease Secondary End Date" the result is returning me a blank instead of the "Lease End Date"?
when we use MAX , blank = 0. the result will be whatever non 0.
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 |
---|---|
10 | |
9 | |
9 | |
8 | |
8 |
User | Count |
---|---|
14 | |
12 | |
11 | |
11 | |
8 |