This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
I have 2 tables, Task and Review. Task has TaskID as a primary key, and Review has TaskID as a foreign key. Each Task can have multiple Reviews.
I am wanting a column in the Task table to show the latest Review date, or null if there has been no review. Can anyone point me in the right direction in terms of the power query?
Thanks
Solved! Go to Solution.
Hi @rlymer
I know you have posted in the PQ forum but I think this is better off done in DAX as you don't have to add a new column to your dataset. And it'll be faster than doing a table joins if your data set is large.
Try this measure
Latest Review Date = CALCULATE(MAX('Review'[Review Date]), FILTER('Task', 'Task'[TaskID] = SELECTEDVALUE('Task'[TaskID])))
On this Review table
Giving this (the TaskID column is set to show items with no data)
Regards
Phil
Proud to be a Super User!
Hi @rlymer
I know you have posted in the PQ forum but I think this is better off done in DAX as you don't have to add a new column to your dataset. And it'll be faster than doing a table joins if your data set is large.
Try this measure
Latest Review Date = CALCULATE(MAX('Review'[Review Date]), FILTER('Task', 'Task'[TaskID] = SELECTEDVALUE('Task'[TaskID])))
On this Review table
Giving this (the TaskID column is set to show items with no data)
Regards
Phil
Proud to be a Super User!
@PhilipTreacy Thank you, this works great. I had to explicitly state the relationship with USERELATIONSHIP as in my model it was an inactive relationship.
NewStep=Table.TransformColumns(Table.NestedJoin(Task,"TaskID",Review,"TaskID","LastReviewDate",JoinKind.LeftOuter),{"LastReviewDate",each if _ is table then List.Max([ReviewDate]) else null})
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.