Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
hopkinsc
Partner - Specialist III
Partner - Specialist III

Setting decimal places on a dimension

Hi, i need to set a value on a dimention to 2 decimal places. Its easy enough to do on an expression but i can't seem to set it on a dimension. Can anyone help please?>

1 Solution

Accepted Solutions
Not applicable

Hi

Only way I can think of at the moment is to make it a calculated dimension, then use something like:

=Num(YourValueField,"#,##0.00")


Good luck,

View solution in original post

7 Replies
Not applicable

Hi

Only way I can think of at the moment is to make it a calculated dimension, then use something like:

=Num(YourValueField,"#,##0.00")


Good luck,

Not applicable

hi,

Add the dimension Age and then select the same and then press EDIT tab once in the tab write the expression

=num ( Age , '0.00')

This would solve your problem

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Thanks very much, that worked. How would i get the £ symbol displayed also?

Not applicable

Use this formula instead = money ( Age , '£#,#0.00')

Not applicable

Hi

Simple, change the expression to Num( Age , '£0.00')

hopkinsc
Partner - Specialist III
Partner - Specialist III
Author

Excellent, thats worked great. thanks for your help everyone...

TS60
Contributor II
Contributor II

This solution does not work.  I have two calculated dimensions which are formatted as dollars with two decimal places, and they display correctly.  When I add those two dimensions to get a total (as a third dimension), it illogically displays a numeral with eleven decimal places and no dollar sign.