Forum Discussion
Anonymous
4 years agoNot applicable
Datediff function seconds and minutes
Hi, When I calculate a datediff in hours I haven't any problem: *Countdown (hours) = IF(ISBLANK(RELATED(mysql_mail_log[created])),DATEDIFF(mysql_reports[*NU],mysql_reports[first_report_expecte...
Anonymous
4 years agoNot applicable
how I calculate 'hh:mm' or decimal hours with only measurement and without column? I want a value for every row without a calculation like sum, average, ...
tamerj1
Community Champion
4 years agoHi Anonymous
This might require further formatting
Countdown (minutes) =
VAR TimeDifference =
SUMX (
mysql_reports,
IF (
ISBLANK ( RELATED ( mysql_mail_log[created] ) ),
DATEDIFF ( mysql_reports[*NU], mysql_reports[first_report_expected], MINUTE )
)
)
RETURN
QUOTIENT ( TimeDifference, 60 ) & ":"
& MOD ( TimeDifference, 60 )Would be great if you can provide sample file
- tamerj14 years ago
Community Champion
Anonymous
Even more simple is just to substract and select "Short Time" data type manually.Countdown (minutes) = SUMX ( mysql_reports, IF ( ISBLANK ( RELATED ( mysql_mail_log[created] ) ), mysql_reports[first_report_expected] - mysql_reports[*NU] ) ) - Anonymous4 years agoNot applicable
I don't succeed 😞
Is it possible to mail you the file?
I hope you can give me the solution.
- tamerj14 years ago
Community Champion
Anonymous
I sent my email in a private message