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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
swaxman
New Member

DateDiff Errors

I am pretty new to PowerBI

 

I am trying to do a DateDiff between two tables (OnboardingExcel which has unique records and TroubleTicket which has multiple records related to one ONboardingExcel record).  I have poked around on the forums and amelessly tried a couple solutions, but keep running into errors.

 

DATEDIFF('OnboardingExcel'[StartDate],'TroubleTicket'[Created_Date],DAY)

Error: A single value for column 'Created_Date' in table 'TroubleTicket' cannot be determined...

 

Days Past Start = IF(SUM(OnboardingExcel[StartDate])>SUM(TroubleTicket[Created_Date]),
DATEDIFF(SUM(TroubleTicket[Created_Date]),SUM(OnboardingExcel[StartDate]),DAY)*0,
DATEDIFF(SUM('OnboardingExcel'[StartDate]),SUM('TroubleTicket'[Created_Date]),DAY))

 

Error:Getting An invalid numeric representation of a date value was encountered.

 

Help is greatly appreciated!

 

2 REPLIES 2
v-caliao-msft
Microsoft Employee
Microsoft Employee

@swaxman,

 

Please try the DAX below.
Days Past Start = 1*(SUM(TroubleTicket[Created_Date])-SUM(OnboardingExcel[StartDate]))

 

Regards,

Charlie Liao

I get a massive number 88309227309 and it is the same for every row.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors