walterweberg Posted March 13, 2014 Share Posted March 13, 2014 I have a measure as Integer (it is seconds) and i would like convert this second in the format hh:mm:ss. I tried with TimeSerial(0,0,[Measures].[Tiempo De Permanencia]) but this doesn't work. If i try with TimeSerial(0,0,70) the result is 00:01:10. it is OK but the Measure is the problem. (i think) The [Measures].[Tiempo De Permanencia] was defined as datetype integer. The definition of TimeSerial is: <DateTime> TimeSerial(<Integer>, <Integer>, <Integer>) I need help. Link to comment Share on other sites More sharing options...
walterweberg Posted March 13, 2014 Author Share Posted March 13, 2014 I have this error: Mondrian Error:Internal error: argument type mismatch: parameters (int, int, int), actual (java.lang.Integer, java.lang.Integer, java.lang.Double) I don´t know why, because i did the cast: TimeSerial(0,0,Cast([Measures].[Tiempo De Permanencia] as INTEGER)) Link to comment Share on other sites More sharing options...
hozawa Posted March 13, 2014 Share Posted March 13, 2014 Integer is not the same as int. "int" is a primitive while "Integer" is an object. Should post your question to a Java forum in somewhere like stackoverflow. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now