cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tnarenderr
Frequent Visitor

Ageing analysis in the same column

Need ageninge analysis for ord 1 agenig of dispatched is 4 days (dispatcehd date - Ordered date)

please help me for the belwo samaple data

Order IDOrder DateStatusAgeing in days
Ord 18/11/2022Ordered 
Ord 18/15/2022Dispatched4
Ord 18/19/2022Delivered4
Ord 29/10/2022Ordered 
Ord 29/12/2022Dispatched2
1 REPLY 1
amitchandak
Super User
Super User

@tnarenderr ,

Try a new column like

 

=

var _max = maxx(filter(Table, [Order ID] = earlier([Order Id]) && [Date] < earlier([Order Date])) , [Order Date])

return

datediff(_max, [Order Date], day)

Helpful resources

Announcements
November 2022 Update

Check it Out!

Click here to read more about the November 2022 updates!

Power BI Dev Camp Session 27

Ted's Dev Camp

This session walks through creating a new Azure AD B2C tenant and configuring it with user flows and custom policies.

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.