Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217157

integer numbers for new column calculation

$
0
0

Hi,

I have a small issue: my dataframe contains two columns - OrderedQuantity and DeliveredQuantity which contains decimal and integer values. I need to make a new column like this:

=0 in those rows where OrderedQuantity and DeliveredQuantity has integer values

= OrderedQuantity-DeliveredQuantity where OrderedQuantity and DeliveredQuantity has decimal values.

 

I was thinking about using ROUND() function:

= if [OrderedQuantity]<>ROUND(OrderedQuantity,0) and ... then [OrderedQuantity]-[DeliveredQuantity]

But it is not working. Can someone suggest other solution?

 

Thank you a lot

 


Viewing all articles
Browse latest Browse all 217157

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>