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
Hello Community,
I am looking for a way to find the difference between two dates.
I tried te following example: Date1 - Date2
This does not give me the difference... this gives me a weird date value.
I tried to use DATEDIFF, but it does not work because Date 2 can have a lower date then date 1.
What are other options I can use?
Solved! Go to Solution.
There was just a recent thread on this. Depending on what you need to do there are several solutions.
My quick solution:
diff = 1.0*([Closed]-[TransactionDate])
Use this code in a new column:
how would this look if you want to calculate the average for eg products?
and how would this look if the dates are on two different columns?
thank you in advance,
Niki
There was just a recent thread on this. Depending on what you need to do there are several solutions.
My quick solution:
diff = 1.0*([Closed]-[TransactionDate])
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 | |
| 71 | |
| 39 | |
| 29 | |
| 27 |