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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
speterson
Regular Visitor

Calculate & show average Time Elapsed?

Hi Team!


Can you please help me with this seeminly simple situation?


I first need to calculate the time elapsed between 2 different dates

speterson_0-1645813984943.png

 

and then have it displayed in such a way that will show me the average time elapsed in days

speterson_1-1645814012917.png

 

 

THANK YOU! 

1 ACCEPTED SOLUTION
lbendlin
Super User
Super User

Please specify what the time elapsed is between 20-Feb and 21-Feb.  Is it one day or two days?

 

You can use

Elapsed = AVERAGEX(Orders,Orders[Date Completed]-Orders[Date Assigned])

, for example.

View solution in original post

2 REPLIES 2
v-luwang-msft
Community Support
Community Support

HI @speterson ,

Test the below,create a new column,as your picture provided:

Timeelapsed = DATEDIFF('Table'[Date assigned],'Table'[Date Completed],DAY)

 

Then create a measure:

average = CALCULATE(SUM('Table'[Timeelapsed]),ALL('Table'))/CALCULATE(DISTINCTCOUNT('Table'[Order#]),ALL('Table'))

 

Output:

vluwangmsft_0-1646127424966.png

Did I answer your question? Mark my post as a solution!


Best Regards

Lucien

lbendlin
Super User
Super User

Please specify what the time elapsed is between 20-Feb and 21-Feb.  Is it one day or two days?

 

You can use

Elapsed = AVERAGEX(Orders,Orders[Date Completed]-Orders[Date Assigned])

, for example.

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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

Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.