Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
chhavi376
Creator II
Creator II

Rounding off to an integer using NUM

I was trying to round off all my numbers to integer but i came across this problem:

if i use '#,##0.00'  in num, i get these numbers:

Untitled.png

When we round this off, it should ideally be 16, 27 and 35

But when i use '#,##0'  in num, i get these numbers:

1.png

37 Replies
oknotsen
Master III
Master III

Maybe you can supply us with your QVW?

May you live in interesting times!
anushree1
Specialist II
Specialist II

Hi,

Check this

chhavi376
Creator II
Creator II
Author

I am attaching a sample

Anonymous
Not applicable

Hi,

Round function should work on those cases.

But, since it is not working, try something like this:

=if(mid(YourNumber, index(YourNumber, '.') + 1, 1) >=5, ceil(YourNumber), floor(YourNumber) )

swuehl
MVP
MVP

Maybe using a second round of integer values:

round(round(sum({<Flag={1}>} Value_N)*10),10)/10

Value_Type =Date(Date,'MMM''YY') Jul'16Jun'16May'16Apr'16Mar'16Feb'16Jan'16Dec'15Nov'15Oct'15Sep'15Aug'15Jul'15Jun'15May'15Apr'15Mar'15Feb'15Jan'15Dec'14Nov'14Oct'14Sep'14Aug'14Jul'14
Detail16181727273524181112321828292418193937403326112
Not applicable

PFA

I think the below output you want to seems.

chhavi376
Creator II
Creator II
Author

This works!

Thanks a lot !