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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
AmirKilkr
Contributor
Contributor

Round function

Hi friends,

 

Can you help me, please?

How do I use the round function? I am unable to fix it

example: 137.585939387663 to 137.59

Sales:
LOAD
ItemID,
"Date",
CampaignID,
DocumentNumber,
StoreHanut,
TotalPriceBeforVat,
Round(TotalPriceBeforVat),
"Time",
SalesmanID,
Quantity,

 

thank you

 

 

 

Labels (1)
1 Solution

Accepted Solutions
rwunderlich
MVP
MVP

You need to specify the rounding step value

Round(TotalPriceBeforVat, .01) as TotalPriceBeforVat,

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

View solution in original post

4 Replies
anat
Master
Master

Num(sum(sales),'##.00')

AmirKilkr
Contributor
Contributor
Author

like this:

Round(Num(sum(TotalPriceBeforVat),'##.00')),

Doesn't work : invalid expression 

rwunderlich
MVP
MVP

You need to specify the rounding step value

Round(TotalPriceBeforVat, .01) as TotalPriceBeforVat,

-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com

AmirKilkr
Contributor
Contributor
Author

Worked perfectly and I understand what I did wrong

Thank you