Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
I need to have total number of days after first operation. Thus I'm trying to use this formula
datediff(firstdate([datecolumn]),lastdate([datecolumn]),days) but its not working. am i doing something wrong?
Solved! Go to Solution.
I Used date format and it resolved problem (taking .date from date/time format)
DATEDIFF(FIRSTDATE([Datecolumn].[Date]),LASTDATE([Datecolumn].[Date]),DAY)
I Used date format and it resolved problem (taking .date from date/time format)
DATEDIFF(FIRSTDATE([Datecolumn].[Date]),LASTDATE([Datecolumn].[Date]),DAY)
Have you tried DAY instead of days as well?
datediff(firstdate([datecolumn]),lastdate([datecolumn]),DAY)
It is "Datediff" Formula Option.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 83 | |
| 70 | |
| 38 | |
| 28 | |
| 27 |