Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 8150

Creation of distinct count without listing the Character

$
0
0

Hi Expert,

 

I would need to create a distinct count of a CHAR. Here in the below example I need unique count of login ID which has session in a month or year.

For e.g

 

CALDAY          LOGIN ID          SESSION ID           SUCCESS

01/01/2014     IOQEIU3991         OPUQE9310               1

01/01/2014     IOQEIU3991                                              0

01/01/2014     IOQEIU3991         OPUQE9310               1

01/02/2014     ABHU27378          POEUR7362               1

01/02/2014     ABHU27378                                               0

01/02/2014     KJHG26288                                               0

...................     .................              ...................                ...

...................     ..................                                                ...

 

Here the total number of Distinct login ID with session is 2.(IOQEIU3991 and ABHU27378). In the report output we need only 2 column e.g
CALMONTHYEAR          Login ID with Usage
01/2014                                   2
Or
CALYEAR                         Login ID with Usage
2014                                         2
a) In the requirement the user doesn't want to list the login ID but just count the total Distinct login ID that has usage in that month or whole year.
b) In addition to that the user wants to list the count of unique login ID with a threshold level. e.g Number of Login ID with session greater than 10.
Thankyou in advance.

Viewing all articles
Browse latest Browse all 8150

Trending Articles



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