Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Timestamp Datatype predicate with .0

$
0
0
Hi,

I am stuck with one issue. with timestamp datatype.
My cube has few fields as timestamp data type and in UI it is coming as 22-01-2015 23:55:59.0, I wanted to omit the last ".0".
have tried.

<Level name="Created On" visible="true" column="CREATED_ON_DATE" type="Timestamp" uniqueMembers="false" levelType="Regular" hideMemberIf="Never" description="Created On updd">
<NameExpression>
<SQL dialect="generic">
<=!=[=C=D=A=T=A=[TO_TIMESTAMP(CREATED_ON_DATE,'DD-MM-YYYY HH:MM:SS')]=]=>
</SQL>
</NameExpression>
but it is not working and giving result with .0

<Level name="Created On" visible="true" column="CREATED_ON_DATE" type="Timestamp" uniqueMembers="false" levelType="Regular" hideMemberIf="Never" description="Created On updd">
<NameExpression>
<SQL dialect="generic">
<=!=[=C=D=A=T=A=[TO_CHAR(CREATED_ON_DATE,'DD-MM-YYYY HH:MM:SS')]=]=>
</SQL>


</NameExpression>

this is working but I wanted to be timestamp.
I am using Vertica as Database.

Is there a way I can achieve this.

Please suggest.

Thanks,
Malay

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>