Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Distinct count
Sankari
Hi all,<br />
<br />
Please help me out in the following issue..........<br />
<br />
I need to display detail count as well as a summary count of event name for one column....<br />
<br />
For eg)<br />
I m having the following events<br />
1)EMP_DC<br />
2)GRP_DC<br />
3)EB_DC<br />
4)BEN_DC<br />
<br />
and i m having one group called operator ID<br />
<br />
For each operator ID some events may be there.<br />
eg)<br />
operator ID:FYZ12<br />
1)EMP_DC<br />
2)GRP_DC<br />
3)EMP_DC<br />
<br />
operator ID:WER13<br />
1)EMP_DC<br />
2)EB_DC<br />
3)BEN_DC<br />
<br />
I want to calculate the total count for each operator ID<br />
For <strong class='bbc'>FYZ12</strong> operator ID there are 3 events<br />
but EMP_DC is same in 1st and 3rd.<br />
so<br />
my output should be<br />
<br />
operator ID:FYZ12 count<br />
1)EMP_DC 2<br />
2)GRP_DC 1<br />
<br />
Please help me....<br />
<br />
Thanks<br />
Sankari
Find more posts tagged with
Comments
jhelbling
Hi Sankari,
This sounds more like a SQL question ... However if you could provide the details of the tables you use this would help. Your SQL request will probably look more or less like :
SELECT OP_ID,EVENT_ID,COUNT(EVENT_ID)
FROM ....
GROUP BY OP_ID,EVENT_ID
Hope it helps ...
Hans_vd
Seems like you just need a second group.
You already have a group on OPERATOR ID, you need a second group on EVENT ID.
Succes!
mwilliams
I also think you just need another group on "Event". Then you'll just have to make an aggregation that counts the events in that group and place it in the second column of your event group header and you'll have what you want.
Sankari
Hi,
Thanks for the response.
But i am having some other pblm also.
Please find the sample design below.
Bl6--->Group1
Group1 Header:(display event name uniquely and count within the event name group)
eg)
EGL1_DC event is occuring 2 two times na it should display as
EGL1_DC 2
OperatorID---->Group2
Group2 Header:(display event name uniquely and count within the event name group)
eg)
EGL1_DC event is occuring 2 two times na it should display as
EGL1_DC 2
groupID->Group3
Group3 Header:(display event name uniquely and count within the event name group)
eg)
EGL1_DC event is occuring 2 two times na it should display as
EGL1_DC 2
Note:Detail row is present after the 3rd group "Group ID".So please help me how to bring detail row into the group header.
I have used table inside group header and it is working fine but it is taking more time.
Thanks In Advance
Sankari
Hans_vd
What data are you trying to bring into the group header?
As I suppose it is data that is the same for every row within the group, you can use a function in the group header. So if you want for example a "Group description" in the Group header, you can use the MAX function on row["GROUP DESCRIPTION"] as a column binding
Hope it helps
mwilliams
Sankari,
Can you attach some data how it looks in your dataSet(s) and your expected output from that data. I'll attempt to put together a report that does what you're wanting.