Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8507

Re: Distinct count - need one more thing

$
0
0

If each trans code will have the same amount (total for the order) and assuming that you have a group on Order Number, you could try something like this:

 

If DistinctCount({TransCode Field}, {Order Number Field})  > 0 then

  Sum({Amount Field}, {Order Number Field}) / DistinctCount({TransCode Field}, {Order Number Field})

else 0

 

-Dell


Viewing all articles
Browse latest Browse all 8507

Trending Articles



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