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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
antalva
Frequent Visitor

Turnaround Time

I'm looking to calculate average turnaround time in my dataset but need help in adding a criteria to only calculate based off a distinct column called (Request Description)

My turnaround time formula is

Turnaround Time = DateDIFF('Tracker'[Request Received On],'Tracker'[Completed Date], DAY) which breaks out the number of days

Right now my dataset has duplicate descriptions so when I do an average of these days it isn't accurate turnaround time since there are multiple of the same rows for each request 

I have 29 unique requests and am hoping to calc out:
average turnaround time for only these 29. Any help would be much appreciated!

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@antalva , Try using below mentioned method

 

AverageTurnaroundTime =
VAR DistinctRequests = DISTINCT('Tracker'[Request Description])
RETURN
AVERAGEX(
DistinctRequests,
CALCULATE(
DATEDIFF('Tracker'[Request Received On], 'Tracker'[Completed Date], DAY)
)
)

 

Please accept as solution and give kudos if it helps




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
bhanu_gautam
Super User
Super User

@antalva , Try using below mentioned method

 

AverageTurnaroundTime =
VAR DistinctRequests = DISTINCT('Tracker'[Request Description])
RETURN
AVERAGEX(
DistinctRequests,
CALCULATE(
DATEDIFF('Tracker'[Request Received On], 'Tracker'[Completed Date], DAY)
)
)

 

Please accept as solution and give kudos if it helps




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Thank you so much!

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors