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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
DPatkos
Helper I
Helper I

Track status change over time between dates

Hi all,

 

I'm trying to calculate the status of certain records on a day-by-day basis between 2 dates (Opened and Closed). I also have a 3rd date column which helps us determining the actual status of a record. Here is the logic I'd like to apply:
- if close date > Expeceted close date --> the status should be Delayed

if close date <= Expeceted close date --> the status should be On Time

 

I'd like to end up with a graph (e.g.: linechart) where the X axis is Date and on the Y axis we can see the the sum of On Time and Delayed records separately over time. I recon I could create a new table with each day in it for each ID and calculate the actual status of that day on said ID, but I was looking for another solution, like 2 measures similar to this:


Number_of_OnTime =

CALCULATE(

COUNT('Table'[ID]),
'Table'[ExpectedCloseDate] >= Date_on_X-Axis)

 

Here is the link of the example file.

 

Thanks in advance!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@DPatkos , You can use the Active employee method of HR to plot open. And then you can check for date for delayed

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Yet to check the file

View solution in original post

2 REPLIES 2
DPatkos
Helper I
Helper I

Hi @amitchandak,

thanks, that's what I'd been looking for, very smart!

amitchandak
Super User
Super User

@DPatkos , You can use the Active employee method of HR to plot open. And then you can check for date for delayed

https://community.powerbi.com/t5/Community-Blog/HR-Analytics-Active-Employee-Hire-and-Termination-tr...

 

Yet to check the file

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.