Quantcast
Channel: SCN : All Content - Data Services and Data Quality
Viewing all articles
Browse latest Browse all 4013

aggregate functions ifthenelse divide missing decimals

$
0
0

I am having an issue all columns are defined as decimals (10,2)

 

after i use this ifthenelse, i am getting two zero's at the end, seems like it is getting whole number how can i make sure to take care of decimals portion also as part of division in the below:

 

 

ifthenelse((Query.Tot_Rev  = 0 or Query.Act_Count = 0), 0.00, Query.Tot_Rev / Query.Act_Count)

 

above calculation is showing all whole numbers ignoring decimal portion need to take care of it.

 

Thanks a lot for the helpful info.


Viewing all articles
Browse latest Browse all 4013

Trending Articles



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