Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |