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
How to calculate the date difference between 2 date columns in Direct query? I tried DateDiff function, but this is not supporting in Direct Query mode
None of the above options work. I always get the "not supported in directquery mode" message.
Are there any other ways of addressing this Date Difference issue in Direct Query?
Hey,
You can try using ([Date A]-[Date B])*24.
@Karthikreddy523 Try:
( [Date 1] - [Date 2] ) * 1.
I tried it,but the results are not accurate and i need the difference in years.Please find the screenshot here
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
| User | Count |
|---|---|
| 40 | |
| 35 | |
| 34 | |
| 31 | |
| 27 |
| User | Count |
|---|---|
| 135 | |
| 102 | |
| 67 | |
| 65 | |
| 56 |