Quantcast
Channel: Service topics
Viewing all articles
Browse latest Browse all 61926

Distinct Count based on multiple column

$
0
0

Hi,

 

I want to display value which is as described below.

My calculation is like this

 

var a =Distinct count of value 1

var b= Count of Value 2

var ans=b/a

 

I want to display ans as my result.

 

But Problem is there I have multiple records for all records. That means for value 1 (distinct) I got multiple values. So my calculation is not properly set as my requirement. So please help me in this case. If Found Unique count that is based on multiple column(value 1 and value 2) for var b.

 

Thanks.

 

 

 

 


Viewing all articles
Browse latest Browse all 61926

Trending Articles



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