Skip to main content
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
Partner Ambassador/MVP
Partner Ambassador/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
Partner Ambassador/MVP
Partner Ambassador/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