Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
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 )
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
116 | |
102 | |
78 | |
76 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |