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
romovaro
Post Partisan
Post Partisan

Create graph with average time between 2 tasks

HI

 

I need to create a graph showing CID with average time (Using the date in TAsk Completed Date) between 

task = Greenlight Checks (and task_status Closed)

&

task = IPM handoff (and task_status Closed)

 

The filter I need to use is that the Task = Pre engagement process had to be closed by the Pre Engagement Team.

 

The table look like this one below:

 

CIDINSTANCE_NUMBERTASKTASK_ASSIGNED_ONTASK_STATUSTASK_COMPLETED_DATETASKACTUALPERFORMER
10005221233917IPM HandOff18-FEB-22 Closed18-FEB-22 Will Smith
10005841234576IPM HandOff18-FEB-22 Closed18-FEB-22 Max Planck
10007811272914Greenlight Checks16-FEB-22 Closed18-FEB-22 Maahi Olenik
10007621271607Greenlight Checks15-FEB-22 Closed16-FEB-22 Nilesh Max
10005421231151IPM HandOff11-FEB-22 Closed11-FEB-22 Will Smith
10006621267552Greenlight Checks11-FEB-22 Closed11-FEB-22 Max Planck
10005011216751IPM HandOff09-FEB-22 Closed18-FEB-22 Maahi Olenik
10007221264204IPM HandOff08-FEB-22 Closed08-FEB-22 Nilesh Max
10007221264204Pre Engagement Process08-FEB-22 Closed08-FEB-22 Will Smith
10007221264204Greenlight Checks07-FEB-22 Closed08-FEB-22 Max Planck
10007211264253Greenlight Checks07-FEB-22 Closed08-FEB-22 Maahi Olenik
10006041263733Greenlight Checks07-FEB-22 Closed20-FEB-22 Nilesh Max
10006051261846Greenlight Checks04-FEB-22 Closed07-FEB-22 Will Smith
10002041153243IPM HandOff04-FEB-22 Closed04-FEB-22 Max Planck
10007021261811Pre Engagement Process04-FEB-22 Closed18-FEB-22 Maahi Olenik

 

I don't know how to create the formula to get that and combined the formula with the task completed month and get the average days. ANy help?

 

I started with the formula below....

 

GreenLights-IpmHandoff =
VAR MeetsFirstRequirement =
CALCULATE (
COUNT ( 'BPMS LOF Report'[CID] ),
FILTER (
'BPMS LOF Report',
'BPMS LOF Report'[TASK] = "Pre engagement Process"
&& 'BPMS LOF Report'[TASK_STATUS] = "Closed" )
&& 'BPMS LOF Report'[TASKACTUALPERFORMER] = "John Smith"
|| 'BPMS LOF Report'[TASKACTUALPERFORMER] = "Max Planck"
|| 'BPMS LOF Report'[TASKACTUALPERFORMER] = "Will SMith"
)
VAR MeetsBothRequirements =
CALCULATETABLE(
VALUES( 'BPMS LOF Report'[CID] ),
MeetsFirstRequirement,
'BPMS LOF Report'[TASK_STATUS] = "Closed",
'BPMS LOF Report'[TASK]
IN { "Greenlights Checks", "IPM HandOff" }
)
RETURN MeetsBothRequirements

 

 

Thanks,

1 REPLY 1
amitchandak
Super User
Super User

@romovaro ,

you can join close date with date table and can use slicer and time intelligence for current month

for Avg day

 

Avg days = average(Table, datediff(Table[Start date], Table[End Date], day) )

 

MTD  = calculate([Avg Days], datesmtd('Date'[Date])

 

Power BI — Month on Month with or Without Time Intelligence
https://medium.com/@amitchandak.1978/power-bi-mtd-questions-time-intelligence-3-5-64b0b4a4090e
https://www.youtube.com/watch?v=6LUBbvcxtKA

 

Time Intelligence, DATESMTD, DATESQTD, DATESYTD, Week On Week, Week Till Date, Custom Period on Period,
Custom Period till date: https://youtu.be/aU2aKbnHuWs

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.