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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

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
Microsoft Employee
Microsoft 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.