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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
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.

11 Replies
Anil_Babu_Samineni

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
MVP
MVP

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)