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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rounding off numbers in charts


Hi Everyone

How can I round off my dimension and expression numbers in a straight table?

I have figures like "2.3478854785646" and I just need this to be "2.4".

10 Replies
Anonymous
Not applicable
Author

Assuming you always want to round up

     ceil(2.3478854785646,0.1)

Or for a normal rounding

     round(2.3478854785646,0.1)

danieloberbilli
Specialist II
Specialist II

Dimension tab - select the dimension - click on edit

Num(Field, '#.#')

Anonymous
Not applicable
Author

Hi ,

Use Round() function in expression

Ex : Round(Sum(Sales))

Not applicable
Author

Thanks everyone. I have used a Round() function and it works.

Now my Total does not have commas e.g "3045862147". How can I make it to include commas to in between to distinguish thousands, hundreds...etc?

Anonymous
Not applicable
Author

num ( 3045862147.3 , '#,##0.0')

jonathandienst
Partner - Champion III
Partner - Champion III

Be careful of using rounding. On large tables it will cause rounding differences in the totals. Better to use Num(...) as this formats it correctly without changing the data. Or better still, set the expression format in the Numbers tab of the chart properties

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
vardhancse
Specialist III
Specialist III

in chart properties->number<tab>, we can change the number format of expressions as required.

Not applicable
Author

Hi Jonathan

I want something like this but it doesnt work.

Num(Sum([Colour Cost],'#,##0.0'))

CELAMBARASAN
Partner - Champion
Partner - Champion

Specify format to Num expr not to Sum

Num(Sum([Colour Cost]),'#,##0.0')