Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. 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
User | Count |
---|---|
59 | |
59 | |
56 | |
38 | |
29 |
User | Count |
---|---|
78 | |
62 | |
45 | |
40 | |
39 |