Forum Discussion
Need help with a measure
Hi,
If I understood issue correctly, you need the StatusEnd of each request where modified date is maximum.
This can be achived in Power Query and Dax both.
Power Query follow following steps:
1. Right click the query and create a reference/duplicate of the query
2. In the new Query (which is a duplicate of old one) , in home, go to Group by option
3. Group the query on Request id and create new column , choose operation "Max" , choose column "modified", click OK.
4. Now go old query and used "Merge Queries" transformation and innerjoin these to table based on request ID and Modified(Date) , you should get the desired output.
(note: joining on datetime column is inefficient better replace it with a key)
let me know if you want dax option as well.
Thanks,
Bhuvan