cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SBK52
Regular Visitor

Need Mesure to calculate average days

I have SharePoint list like below. I need an average days between CreatedDate and DueDate.

Like: first item difference 20days and second item difference 30days and third 40days..So on if 10 items are there 20+30+40+...so on÷10 items..caluculate need for new colomn measure in PowerBi. PLZ HELP

 

Title    CreatedDate  DueDate

Item1   13/12/2021    01/01/22

Item2    14/12/2021    02/01/22

Item3     15/12/2021    03/01/22

.               .

.

.....So On..

 

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@SBK52 add a new column and then a measure

 

Days Column = DATEDIFF ( Table[createddate], table[DueDate], day )


Avg Measure = AVERAGE ( table[Days Column] )

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@SBK52 add a new column and then a measure

 

Days Column = DATEDIFF ( Table[createddate], table[DueDate], day )


Avg Measure = AVERAGE ( table[Days Column] )

 

Follow us on LinkedIn

 

Learn about conditional formatting at Microsoft Reactor

My latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.






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

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors
Top Kudoed Authors