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

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

Reply
totem1248
Microsoft Employee
Microsoft Employee

New Measure: DAX DateDiff issue - Date Hierarchy?

I'm trying to create a MEASURE that will calculate the difference in dates between two date fields. (Start date & end date)

Both Start_date and end_Date have data hierarchies and are in 'date' format mm/dd/yyyy.

 

Delta = DATEDIFF('Table'[Start_date], 'Table'[End_Date], Day)

 

But I get the error:

 

"A single value for column 'Start_Date' in table 'Table' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result."

 

Both columns have the same date format. Does this issue have anything to do with both date columns having a hierarchy (day/month/quarter/year)?

1 ACCEPTED SOLUTION
totem1248
Microsoft Employee
Microsoft Employee

If you do a calculated column, I get the result that is needed. Solved!

View solution in original post

2 REPLIES 2
totem1248
Microsoft Employee
Microsoft Employee

If you do a calculated column, I get the result that is needed. Solved!

Hi , @totem1248 

Glad to hear that you have worked it out. Would you please  accept your reply as solution to close this thread so that other community members will easily find the solution when they get the same issue.

Best Regards,
Community Support Team _ Eason

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.