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

Labels (1)
1 Solution

Accepted Solutions
swuehl
Champion III
Champion III

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
Champion III
Champion III

Maybe like

LOAD

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

     ...

FROM ...;