Forum Discussion
Power Query for Calculated Column - Last Review Date
- 3 years ago
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
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
PhilipTreacy Thank you, this works great. I had to explicitly state the relationship with USERELATIONSHIP as in my model it was an inactive relationship.