Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Rounding of percentage value

Hi

I have a senario where i have to round the values

the data is as below

country      value       output

a                12.56  %     13 %

b                 10.2   %     10 %

if the value after the point is >= 5 then it should make it as 13

if the value after the point is < 5 then it should make it as 10

Regards

14 Replies
Anonymous
Not applicable
Author

Probably?

I would think its the accumulation because the rounding occurs before the accumulation which results in +/- integer

Anonymous
Not applicable
Author

You know what you could do is just forget the rounding function and use the integer format in the number tab. That will do the rounding AFTER the accumulation.

Not applicable
Author

Hi Aron thanks a ton, it worked thank you so much

=round(sum({<IsSameMonth={'1'}>}TOT)/sum({<IsSameMonth={'1'}>}total(TOT)) * 100, 0.01)

i used the above expression and set the number format to integer

thank you so much

Not applicable
Author

I will have a try on this as well