Quantcast
Channel: SCN : Popular Discussions - SAP BusinessObjects Desktop Intelligence
Viewing all articles
Browse latest Browse all 681

Count for distinct values ...

$
0
0

Dear Team,

I have following situation at hand...

 


COLUMN1      COLUMN2      COLUMN3      
TECH111      A11111      MATERAL1   
TECH111      A11112      MATERAL2
TECH111      A11112      MATERAL3
TECH111      A11113      MATERAL4
TECH111      A11113      MATERAL5
TECH111      A11114      MATERAL6
TECH111      A11115      MATERAL7
TECH111      A11116      MATERAL8 

 

The value in column1 is TECH111

Now i want to count the number of values appearing in column2

 

i.e.A11111 appears 1 time, A11112 and A11113 appears 2 time and so on..

 

So the final output i need is shown below..

 

COLUMN1      COLUMN2      COLUMN3   COLUMN4
TECH111      A11111      MATERAL1     1     
TECH111      A11112      MATERAL2   2     
TECH111      A11112      MATERAL3   2     
TECH111      A11113      MATERAL4   2     
TECH111      A11113      MATERAL5   2     
TECH111      A11114      MATERAL6   1     
TECH111      A11115      MATERAL7   1     
TECH111      A11116      MATERAL8   1      

 

kindly give me some tips to achieve this

 

Regards

nic...


Viewing all articles
Browse latest Browse all 681

Trending Articles



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