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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Super User
Super User

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.