Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateJoin 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.
Hello,
Can anyone help with the following?
I have a DIMtable like this:
ID | Name person |
1 | X |
2 | Y |
And a Fact table like this:
ID | Startdate |
1 | 10-10-2020 |
2 | 1-8-2022 |
2 | 27-1-2023 |
I want from everyone the most recent startdate in the DIM table. Person 1 had only one startdate (10-10-2020), so I want 10-10-2020 in the return as most recent start date. For person 2 I want 27-1-2023 returned as most recent startdate.
Thank you in advance!
Solved! Go to Solution.
Thank you for your answers. I cannot get it working, but I found another solution:
RecentStartDate = LASTDATE('Fact'[Start Date])
Thank you for your answers. I cannot get it working, but I found another solution:
RecentStartDate = LASTDATE('Fact'[Start Date])
Hi @Dmoetnogleren ,
I create two tables and create One-to-Many relationship.
Then I create a measure and here is the DAX code.
RecentDate =
CALCULATE(
MAX(FactTable[Startdate]),
FILTER(
FactTable,
FactTable[ID] = RELATED(DIMtable[ID])
)
)
Best Regards
Yilong Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Please create a measure as below and make sure to have a relationship between ID from two tables:
Regards,
Kaviraj
Proud to be a Super User! | |
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
15 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
22 | |
11 | |
10 | |
10 | |
8 |