Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
dmxmikey
Creator
Creator

Need to return numbers to 2 decimal places

i have the below script but not returnung value to 2 dp

 

please help

 

(NUM(Round(SUM(If([o-wsv]<>0,[o-wsv] ,
([o-cost] * if([o-split]=0,[o-sentqty],[o-sentqty]/[p-pack])) -
([o-cost] * [o-sentqty] * [o-discpc] /100))),0.01))*-1) as Value

Labels (1)
2 Replies
mohitp
Contributor II
Contributor II

Hi,

Please try the below code:

(NUM(Round(SUM(If([o-wsv]<>0,[o-wsv] ,
([o-cost] * if([o-split]=0,[o-sentqty],[o-sentqty]/[p-pack])) -
([o-cost] * [o-sentqty] * [o-discpc] /100))),0.01), '#,###.00','.',',')*-1) as Value

dmxmikey
Creator
Creator
Author

Thanks for the code, have tried and still returns 1 dp