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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 Power BI update to learn about new features.

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors