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

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
saimahasan
Partner - Creator III
Partner - Creator III

Rounding problem

Hi,

I am stuck with rounding off. Basically i am trying to get the sum and then take the rounding value but wherever there is 5 after decimal it does not round whereas for rest of the values it rounds.

Please find attached sample data.

Labels (1)
11 Replies
Anil_Babu_Samineni
MVP
MVP

Read this where we use floor() and ceil() in qlikview?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
swuehl
Champion III
Champion III

Have a look at

Rounding Errors

You could load your values in as cents, like

LOAD Round(MARKET_VALUE*100) as MARKET_VALUE_CENT,    

          ...

FROM ...;

Then do you sums, and only show the aggregated value divided by 100 to show your value in Dollar (or whatever your currency is)

=Round(Sum(MARKET_VALUE_CENT) /100, 0.01)