cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

DATE

Good afternoon

I need to calculate the time that has elapsed from 1/01/2023 to today in PowerBi, what work should I do to obtain this calculation.

the idea is to calculate the LEADTime of a Purchase Order.

I appreciate it very much

1 ACCEPTED SOLUTION

You can try using values for a measure something like:

 

Measure = DATEDIFF(VALUES('Table'[ORDER DATE]),VALUES('Table' [TODAY- DATE or Delivery Date]),DAY)
 
or if you want a calculated column:
 
Column = DATEDIFF('Table'[ORDER DATE],'Table' [TODAY- DATE or Delivery Date],DAY)
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
 

View solution in original post

3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Is there any measure to do this?

I have column ORDER DATE, and another column TODAY- DATE or Delivery Date.

You can try using values for a measure something like:

 

Measure = DATEDIFF(VALUES('Table'[ORDER DATE]),VALUES('Table' [TODAY- DATE or Delivery Date]),DAY)
 
or if you want a calculated column:
 
Column = DATEDIFF('Table'[ORDER DATE],'Table' [TODAY- DATE or Delivery Date],DAY)
 
If I answered your question, please mark my post as solution, Appreciate your Kudos 👍
 
DOLEARY85
Resident Rockstar
Resident Rockstar

Hi,

 

Assuming your date is in a date field, you could create a calculated column with a date diff calc, such as:

 

Column = DATEDIFF('Table'[Date Field],today(),DAY)
 
DOLEARY85_1-1685567163799.png

 


If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors