Skip to main content
Announcements
Do More with Qlik - Qlik Cloud Analytics Recap and Getting Started, June 19: REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Hot to use the num() function to round up

Hey,

I'm trying to round up a number in a text box using the num() function.

I'm currently using the script: num(sum(budget),'#.##0',',','.') and getting the result: 35.756.

How should the script be if I want the result to be: 35.8?


Thanks,

23 Replies
Not applicable
Author

Hey Colin,

If I use that script, I get 35756,4 😕

Not applicable
Author

Hey Saurabh,

If I use that script, I get 35756,4.

Thanks, Peter

Not applicable
Author

Hey Marco,

If I use the Ceil()-function I get 35756,4 😕

Anonymous
Not applicable
Author

Hi,

try this

=Round(Sum(budget),0.1)

With Regards,

Arryan

PrashantSangle

Hi,

just one question . is your thousand seperator or decimal seperator.

Regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
Not applicable
Author

Hey swuehl,

Thanks for the suggestions.

If I use =num(35768/1000,'#.0 k','.',',') I get 35756.4 k

and

If I use =num(35768/1000,'#.0','.',',') I get 35756.0

Peter

Not applicable
Author

Hi

. is my thousand seperator.

Regards

qlikmsg4u
Specialist
Specialist

Hi,

try this

ceil(num(sum(budget)/1000,'#.##0',',','.'),0.1)

prabhas277
Creator
Creator

Hi,

try it

=num(round(35.765,0.1))

Not applicable
Author

Hi K N,

Good suggestion, still got 35756,4 though.