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
Anonymous
Not applicable

Measure to calculate the number of days between due event date and today date

Hi,

 

I have a task event date in the past. This task was not reported as done and it's on hold.

I can create a Column with Datediff (Due Date, Date(), but would like to create a Measure instead.

 

My Event table have muilty tasks open for muilty units.

 

Thank you!!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi Guys,

 

Just found the solution:

 

[ # Days] = SUMX(JOBSTABLE, DATEDIFF(JOBSTABLE[Date], [ZToday],DAY))

 

ZToday is a measure= TODAY()

 

Hope will help someone else.

 

Jose Milhazes

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi Guys,

 

Just found the solution:

 

[ # Days] = SUMX(JOBSTABLE, DATEDIFF(JOBSTABLE[Date], [ZToday],DAY))

 

ZToday is a measure= TODAY()

 

Hope will help someone else.

 

Jose Milhazes

 

Phil_Seamark
Employee
Employee

Hi @Anonymous

 

Why do you want to create it as a measure instead of a column


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Anonymous
Not applicable

Hi @Phil_Seamark,

 

Main reason is my dataset is reaching the PBI limits, and the file size is also growing fast.

Let me continue to investigate.

 

Regards

Jose Milhazes

 

 

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.