Forum Discussion
sirros_iot
8 years agoHelper III
Convert time to seconds
Hello all! I have a column in the hour format( HH:mm: ss), and I want to show the average of this column, but, I'm connected by DirectQuery, so, no data modeling. I would like to solve this iss...
- 8 years ago
Give this a shot
Seconds_Measure = VAR myvalue = SELECTEDVALUE ( Table1[Column] ) RETURN ( myvalue - TRUNC ( myvalue ) ) * 86400
Zubair_Muhammad
8 years agoCommunity Champion
Give this a shot
Seconds_Measure =
VAR myvalue =
SELECTEDVALUE ( Table1[Column] )
RETURN
( myvalue - TRUNC ( myvalue ) )
* 86400sirros_iot
8 years agoHelper III
Thanks Zubair_Muhammad! It did work!
Best Regards,
Diego