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
joshua1990
Post Prodigy
Post Prodigy

CALCULATE average remaining spend time based on two tables

Hi community!

I would like to calculate the average time for each article that we should consider until the order is placed.

I have an order table that shows me for each order (2-year history) the date for each status.

Not every article has the same number of statuses.

Article Order Nr Date Status
A 1 01.01.2021 5
A 1 02.01.2021 10
B 2 02.01.2021 4

 

 

Then I have a second table that shows me if an order was completed and when:

Order Type Date
1 Ready 05.01.2021
2 Ready 04.01.2021

 

Now I would like to calculate the average time that was used to proceed an order from the beginning to the end.

Beside that I would also like to know the average time that is left based on the status.

In the end, I would like to get something like this as an output:

Article Status 5 Status 10 Status 15 Total Time
A 5 4 3 5
B   4 3 4

 

How would you build / calculate something like this?

 

2 REPLIES 2
v-rongtiep-msft
Community Support
Community Support

Hi @joshua1990 ,

How to get the desired output?

states 5 , states 10, states 15, and the result? Sorry, due to my ignorance, can you explain this result to me?

 

Best Regards
Community Support Team _ Polly

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

joshua1990
Post Prodigy
Post Prodigy

Any ideas?

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.

Top Solution Authors