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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi,
I have a table with logging moments for service calls. I use two measures to find the first start date
Date Time Created = CALCULATE(MIN(PBI_SER_Doc_ref_point[Date_Time_Registrated]);FILTER(PBI_SER_Doc_ref_point; PBI_SER_Doc_ref_point[Reference_Point]="8"))
and the date when the call is closed
Date Time Function Recovered = CALCULATE(MAX(PBI_SER_Doc_ref_point[Date_Time_Registrated]);FILTER(PBI_SER_Doc_ref_point; PBI_SER_Doc_ref_point[Reference_Point]="10"))
Now I want the caluclate the difference between those measures. But when I use a measure to calculate the difference I get an date as awnser. I want the total difference in hours. I also added an example of my table which I extract.
Call date
Solved! Go to Solution.
Hi @YoussefN
Try the DateDiff function in DAX
https://msdn.microsoft.com/en-us/library/dn802538.aspx?f=255&MSPPError=-2147217396
Try this MEASURE
MEASURE = DATEDIFF ( [Date Time Created], [Date Time Function Recovered], HOUR )
Hi @YoussefN
Try the DateDiff function in DAX
https://msdn.microsoft.com/en-us/library/dn802538.aspx?f=255&MSPPError=-2147217396
Try this MEASURE
MEASURE = DATEDIFF ( [Date Time Created], [Date Time Function Recovered], HOUR )
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 |
|---|---|
| 50 | |
| 49 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |