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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
chaper
Creator III
Creator III

Round number when two digits after decimal is zero

I want to round the number during load when two digits after decimal are .00 if not don't round number.See below example

Thanks in advance

Round.JPG

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Maybe like

LOAD

     if(fabs(frac(Value)) < 0.005, Round(Value), Value) as Value,

     ...

FROM ...;

View solution in original post

2 Replies
MK_QSL
MVP
MVP

Load

  Product,

  If(Frac(Value)>0,Value,Floor(Value)) as Value

Inline

[

  Product, Value

  A, 1.08

  B, 12.00

  C, 3.40

  D, 6.00

  E, 3.45

];

swuehl
MVP
MVP

Maybe like

LOAD

     if(fabs(frac(Value)) < 0.005, Round(Value), Value) as Value,

     ...

FROM ...;