Join 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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
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.
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 66 | |
| 46 | |
| 42 | |
| 26 | |
| 19 |
| User | Count |
|---|---|
| 196 | |
| 126 | |
| 101 | |
| 67 | |
| 49 |