Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
Solved! Go to Solution.
Hello @stvn43,
You can use the TIME function in DAX to create a duration value instead of using the FORMAT function.
Difference =
VAR EditTime =
IF([editbegintime] <= 0, TIME(0, 0, 0),
TimeToEdit[editendtime] - TimeToEdit[editbegintime])
RETURN EditTime
Time to Caption =
VAR TTC = AVERAGEX(FILTER(TimeToEdit, [service] = "Captioning"), [Difference])
RETURN FORMAT(TTC, "HH:MM:SS")
By using the TIME function, you can now use the AverageX function on the Difference column because it returns a duration value instead of a string.
I hope this helps! Let me know if you have any further questions.
Many thanks, Sahir!
Hello @stvn43,
You can use the TIME function in DAX to create a duration value instead of using the FORMAT function.
Difference =
VAR EditTime =
IF([editbegintime] <= 0, TIME(0, 0, 0),
TimeToEdit[editendtime] - TimeToEdit[editbegintime])
RETURN EditTime
Time to Caption =
VAR TTC = AVERAGEX(FILTER(TimeToEdit, [service] = "Captioning"), [Difference])
RETURN FORMAT(TTC, "HH:MM:SS")
By using the TIME function, you can now use the AverageX function on the Difference column because it returns a duration value instead of a string.
I hope this helps! Let me know if you have any further questions.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
98 | |
63 | |
45 | |
36 | |
35 |