Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more
Hi All,
How to Calculate no.of days from two different dates. (e.g 2019-07-13 and 2020-01-10) There is the year changed.
Solved! Go to Solution.
Hi,
Please try to create three calculated columns:
Year difference = DATEDIFF('Table'[DateStart],'Table'[DateEnd],YEAR)Month difference = DATEDIFF('Table'[DateStart],'Table'[DateEnd],MONTH)Day difference = DATEDIFF('Table'[DateStart],'Table'[DateEnd],DAY)And the result shows:
Best Regards,
Giotto Zhi
Hi,
Please try to create three calculated columns:
Year difference = DATEDIFF('Table'[DateStart],'Table'[DateEnd],YEAR)Month difference = DATEDIFF('Table'[DateStart],'Table'[DateEnd],MONTH)Day difference = DATEDIFF('Table'[DateStart],'Table'[DateEnd],DAY)And the result shows:
Best Regards,
Giotto Zhi
Hi,
Try using DATEDIFF
Column = DATEDIFF('Table'[Startdate],'Table'[Enddate],DAY)
					
				
			
			
				
			
			
				
			
			
			
			
			
			
		I tried it but shown only difference from the days but there is a year and the month is different.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.