Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Annemie19
Helper II
Helper II

Get latest date for certain task ID

Hi, 

 

I have the data as shown below:

 

Entity IdCovenant IDCovenant Sub TypeTaskIDLatest Comment Date
21632312108Net Interest Cover3849911/11/2020
21632312108Net Interest Cover3849902/11/2020
21632312109Leverage Ratio3850811/11/2020
21632312109Leverage Ratio3850802/11/2020
21632312110Capital Expenditure3851702/11/2020
21632312110Capital Expenditure3851711/11/2020

 

for each covenant ID and task ID I only want to show the last 'Latest Comment Date'. 

For instance if you look at Task ID 38499 I only want to see the 'Latest Comment Date' as 02/11/2020

 

What measure can I write for this?

 

Kind Re

3 REPLIES 3
Anonymous
Not applicable

Same problem with me I have project and each project have multiple task and its task completion date I want to show latest task based on latest date in power bi could any one help me

Annemie19
Helper II
Helper II

@amitchandak, Thanks for the help. 

 

However, this is the measure I used. 

 

LAST DATE =  calculate(max(VwCovenant[CovenantCommentsTimestamp]), filter(VwCovenant, VwCovenant[CovenantCommentsTimestamp] = calculate(max(VwCovenant[CovenantCommentsTimestamp]), allexcept(VwCovenant, VwCovenant[TaskID]))) )
 
And it is returning a blank column
Entity IdCovenant IDCovenant TypeCovenant Sub TypeTaskIDDays OverdueLatest CommentCovenantCommentsTimestampLAST DATE
21632312108Financial CovenantNet Interest Cover38500-26Covenant returned for amendments. Reason: Capture as Net interest cover, covenant sub type .11/11/2020 
21632312108Financial CovenantNet Interest Cover38500-26Covenant returned for amendments. Reason: Quarterly except FYE(march) .02/11/2020 
21632312108Financial CovenantNet Interest Cover38501-208Covenant returned for amendments. Reason: Capture as Net interest cover, covenant sub type .11/11/2020 
21632312108Financial CovenantNet Interest Cover38501-208Covenant returned for amendments. Reason: Quarterly except FYE(march) .02/11/2020 
amitchandak
Super User
Super User

@Annemie19 , Create a measure like

 

Last Date = calculate(max(Table[Latest Comment Date]), filter(Table, Table[Latest Comment Date] = calculate(max(Table[ Latest Comment Date]), allexcept(Table, Table[TaskID]))) )

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.