Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Number formatting

can any suggest me how to format numbers

for ex:- i have 45.5643678541315

I just want to round up to 3 decimal after .

like  45.564

I tried this expression =Sum((vAnnualusage), '##.##0')

16 Replies
MK_QSL
MVP
MVP

Num(YourFieldName,'#0.000') as YourFieldName

=NUM('45.5643678541315','#0.000')

=NUM(Sum((vAnnualusage),'#0.000'))

anbu1984
Master III
Master III

=Sum((vAnnualusage), '##.###')

Not applicable
Author

Hi ,

Try this ,

=num(sum(vAnnualusage),'##.###')

should work !!

Regards

Sahil

MayilVahanan

Hi

Try like this

Num(Sum($(vAnnualusage)), '##.###')

Hope that vAnnualusage is the variable name.

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Not applicable
Author

Hi,

Try like the following..


round(num(Sum($(vAnnualusage))), 0.001)

Hope it will work..

Not applicable
Author

Thanks Sahil it's work like a magic

Thanks

Amzad

Thank for Quick response Manish, anbu, Rama

Not applicable
Author

Yes shail it work SuperB, Thanks

its_anandrjs

Hi,

You have to use Round function

=Round('45.5643678541315', 0.001 )

or

=Round( Sum(vAnnualusage), 0.001 )

round.png

Regards

Anand

Not applicable
Author

Thanks Anand, it's work..