Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin 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.
Hi
I want to make a column with difference between two date colums. I know i can use =duration.days(date1-date2), but the thing is that one of my date colums also contains time. When I enter in the function the new columns returns with an error.
Can I do something so the function only calculate the difference between the dates and ignores the time in one of the columns?
Solved! Go to Solution.
Hi @hans3400 , insert a custom column, and write this formule:
[Date 2]-Date.From([Date 1])
When Date 1 y the date with hours, and Date 2 is the normal date (without hours).
The result:
Best regards
Hi @hans3400 , insert a custom column, and write this formule:
[Date 2]-Date.From([Date 1])
When Date 1 y the date with hours, and Date 2 is the normal date (without hours).
The result:
Best regards
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.
User | Count |
---|---|
82 | |
42 | |
31 | |
27 | |
27 |