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! It's time to submit your entry. Live now!
Hi, please assist with the following:
i want to subtract time in [2] from [1]. the result wont be a date obviously.
any assistance would be appreciated.
Hi @roninn75,
You can also use:
Calculates the fraction of the year represented by the number of whole days between two dates. Use the YEARFRAC worksheet function to identify the proportion of a whole year's benefits or obligations to assign to a specific term.
YEARFRAC(<start_date>, <end_date>, <basis>)
Hi @roninn75
Try the DATEDIFF formula
https://msdn.microsoft.com/en-us/library/dn802538.aspx
DATEDIFF(<start_date>, <end_date>, <interval>)
| User | Count |
|---|---|
| 56 | |
| 41 | |
| 38 | |
| 21 | |
| 21 |
| User | Count |
|---|---|
| 141 | |
| 103 | |
| 63 | |
| 36 | |
| 35 |