I am using a dataset in PowerBI with many columns and has information on the incident tickets.
I am getting an error data for time format and I wrote an R Function which returns time
calculateHours <- function(hours) {
x <- trunc(hours/24)
rest <- mod(hours,24)
y <- trunc(rest/10)
z <- mod(rest,10)
result <- (((x+y)*10)+z)
return(result)
}
How can i solve this